Expand description
Re-exports§
pub use ffi;
Modules§
Structs§
- Annotation
- Represents an annotation added to
View
, it has aline
property,description
, icon and a style. - Annotation
Provider - It is used to provide annotations and display them on
View
and also populateHoverDisplay
when the user hovers over an annotation. - Annotations
- Use this object to manage
Annotation
s. EachView
has a single annotation manager and it is guaranteed to be the same for the lifetime ofView
. - Buffer
- Subclass of
gtk::TextBuffer
. - Completion
- Main Completion Object.
- Completion
Cell - Widget for single cell of completion proposal.
- Completion
Context - The context of a completion.
- Completion
Proposal - Interface for completion proposals.
- Completion
Provider - Completion provider interface.
- Completion
Snippets - A
CompletionProvider
for the completion of snippets. - Completion
Words - A
CompletionProvider
for the completion of words. - Encoding
- Character encoding.
- File
- On-disk representation of a
Buffer
. - File
Loader - Load a file into a GtkSourceBuffer.
- File
Saver - Save a
Buffer
into a file. - File
Saver Flags - Flags to define the behavior of a
FileSaverFlags
. - Gutter
- Gutter object for
View
. - Gutter
Lines - Collected information about visible lines.
- Gutter
Renderer - Gutter cell renderer.
- Gutter
Renderer Pixbuf - Renders a pixbuf in the gutter.
- Gutter
Renderer Text - Renders text in the gutter.
- Hover
- Interactive tooltips.
- Hover
Context - Context for populating
HoverDisplay
contents. - Hover
Display - Display for interactive tooltips.
- Hover
Provider - Interface to populate interactive tooltips.
- Indenter
- Auto-indentation interface.
- Language
- Represents a syntax highlighted language.
- Language
Manager - Provides access to
Language
s. - Map
- Widget that displays a map for a specific
View
. - Mark
- Mark object for
Buffer
. - Mark
Attributes - The source mark attributes object.
- Print
Compositor - Compose a
Buffer
for printing. - Region
- Region utility.
- Region
Iter - An opaque datatype.
- Search
Context - Search context.
- Search
Settings - Search settings.
- Snippet
- Quick insertion code snippets.
- Snippet
Chunk - A chunk of text within the source snippet.
- Snippet
Context - Context for expanding
SnippetChunk
. - Snippet
Manager - Provides access to
Snippet
. - Sort
Flags - Space
Drawer - Represent white space characters with symbols.
- Space
Location Flags - #GtkSourceSpaceLocationFlags contains flags for white space locations.
- Space
Type Flags - #GtkSourceSpaceTypeFlags contains flags for white space types.
- Style
- Represents a style.
- Style
Scheme - Controls the appearance of
View
. - Style
Scheme Chooser - Interface implemented by widgets for choosing style schemes.
- Style
Scheme Chooser Button - A button to launch a style scheme selection dialog.
- Style
Scheme Chooser Widget - A widget for choosing style schemes.
- Style
Scheme Manager - Provides access to
StyleScheme
s. - Style
Scheme Preview - A preview widget for
StyleScheme
. - Tag
- A tag that can be applied to text in a
Buffer
. - View
- Subclass of
gtk::TextView
. - VimIM
Context - Vim emulation.
Enums§
- Annotation
Style - Background
Pattern Type - Bracket
Match Type - Change
Case Type - Completion
Activation - Completion
Column - Compression
Type - File
Loader Error - An error code used with the
GTK_SOURCE_FILE_LOADER_ERROR
domain. - File
Saver Error - An error code used with the
GTK_SOURCE_FILE_SAVER_ERROR
domain. - Gutter
Renderer Alignment Mode - The alignment mode of the renderer, when a cell spans multiple lines (due to text wrapping).
- Newline
Type - Smart
Home EndType - View
Gutter Position
Functions§
- check_
version - Like GTK_SOURCE_CHECK_VERSION, but the check for gtk_source_check_version is at runtime instead of compile time. This is useful for compiling against older versions of GtkSourceView, but using features from newer versions.
- finalize
- Free the resources allocated by GtkSourceView. For example it unrefs the singleton objects.
- init
- Initializes the GtkSourceView library (e.g. for the internationalization).
- major_
version - Returns the major version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 3.)
- micro_
version - Returns the micro version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 0.)
- minor_
version - Returns the minor version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 20.)
- scheduler_
add - Simplified version of
scheduler_add_full()
. - scheduler_
add_ full - Adds a new callback that will be executed as time permits on the main thread.
- scheduler_
remove - Removes a scheduler callback previously registered with
scheduler_add()
orscheduler_add_full()
. - utils_
escape_ search_ text - Use this function to escape the following characters:
\n
,\r
,\t
and\
. - utils_
unescape_ search_ text - Use this function before
SearchSettingsExt::set_search_text()
, to unescape the following sequences of characters:\n
,\r
,\t
and\\
. The purpose is to easily write those characters in a search entry.