Class: GtkSource::SnippetManager
- Inherits:
-
Object
- Object
- GtkSource::SnippetManager
- Defined in:
- (unknown)
Class Method Summary collapse
-
.default ⇒ GtkSource::SnippetManager
Returns the default Gtk::SourceSnippetManager instance.
Instance Method Summary collapse
-
#get_snippet(group, language_id, trigger) ⇒ GtkSource::Snippet
Queries the known snippets for the first matching group, language_id, and/or trigger.
-
#list_all ⇒ Gio::ListModel
Gets a [ifaceGio.ListModel] of all snippets.
-
#list_groups ⇒ Array<String>
List all the known groups within the snippet manager.
-
#list_matching(group, language_id, trigger_prefix) ⇒ Gio::ListModel
Queries the known snippets for those matching group, language_id, and/or trigger_prefix.
-
#search_path ⇒ GtkSource::
Contains a list of directories to search for files containing snippets (*.snippets).
-
#search_path=(search_path) ⇒ GtkSource::
Contains a list of directories to search for files containing snippets (*.snippets).
Class Method Details
.default ⇒ GtkSource::SnippetManager
Returns the default Gtk::SourceSnippetManager instance.
Instance Method Details
#get_snippet(group, language_id, trigger) ⇒ GtkSource::Snippet
Queries the known snippets for the first matching group, language_id, and/or trigger.
If group or language_id are nil, they will be ignored.
#list_all ⇒ Gio::ListModel
Gets a [ifaceGio.ListModel] of all snippets.
This can be used to get an unfiltered list of all of the snippets known to the snippet manager.
#list_groups ⇒ Array<String>
List all the known groups within the snippet manager.
The result should be freed with g_free(), and the individual strings are owned by self and should never be freed by the caller.
#list_matching(group, language_id, trigger_prefix) ⇒ Gio::ListModel
Queries the known snippets for those matching group, language_id, and/or trigger_prefix.
If any of these are nil, they will be ignored when filtering the available snippets.
The [ifaceGio.ListModel] only contains information about the available snippets until [methodGio.ListModel.get_item] is called for a specific snippet. This helps reduce the number of [classGObject.Object]'s that are created at runtime to those needed by the calling application.
#search_path ⇒ GtkSource::
Contains a list of directories to search for files containing snippets (*.snippets).
#search_path=(search_path) ⇒ GtkSource::
Contains a list of directories to search for files containing snippets (*.snippets).