SnippetManager
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_source_snippet_manager_get_type ()" ) ]
public class SnippetManager : Object
Provides access to [class@Snippet].
`GtkSourceSnippetManager` is an object which processes snippet description files and creates [class@Snippet] objects.
Use [[email protected]_default] to retrieve the default instance of `GtkSourceSnippetManager`.
Use [[email protected]_snippet] to retrieve snippets for a given snippets.
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public unowned string[] get_search_path ()
Gets the list directories where this
looks for snippet files.
- public Snippet? get_snippet (string? group, string? language_id, string trigger)
Queries the known snippets for the first matching group
,
language_id
, and/or trigger
.
- public unowned ListModel list_all ()
Gets a [iface@Gio.
- public (unowned string)[] list_groups ()
List all the known groups within the snippet manager.
- public ListModel list_matching (string? group, string? language_id, string? trigger_prefix)
Queries the known snippets for those matching group
,
language_id
, and/or trigger_prefix
.
- public void set_search_path (string[]? dirs)
Sets the list of directories in which the `GtkSourceSnippetManager`
looks for snippet files.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref