gtksource.snippet_manager

Module for [SnippetManager] class

Types 3

Provides access to gtksource.snippet.Snippet.

gtksource.snippet_manager.SnippetManager is an object which processes snippet description files and creates gtksource.snippet.Snippet objects.

Use gtksource.snippet_manager.SnippetManager.getDefault to retrieve the default instance of gtksource.snippet_manager.SnippetManager.

Use gtksource.snippet_manager.SnippetManager.getSnippet to retrieve snippets for a given snippets.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
SnippetManager self() nothrowReturns `this`, for use in `with` statements.
SnippetManagerGidBuilder builder() static nothrowGet builder for [gtksource.snippet_manager.SnippetManager] Returns: New builder object
gtksource.snippet_manager.SnippetManager getDefault() static nothrowReturns the default #GtkSourceSnippetManager instance. Returns: a #GtkSourceSnippetManager which is owned by GtkSourceView library and must not be unref'd.
string[] getSearchPath() nothrowGets the list directories where self looks for snippet files. Returns: null-terminated array containing a list of snippet files directories. The array is owned by lm and must not be modified.
gtksource.snippet.Snippet getSnippet(string group, string languageId, string trigger) nothrowQueries the known snippets for the first matching group, language_id, and/or trigger.
gio.list_model.ListModel listAll() nothrowGets a [gio.list_model.ListModel] of all snippets.
string[] listGroups() nothrowList all the known groups within the snippet manager.
gio.list_model.ListModel listMatching(string group = null, string languageId = null, string triggerPrefix = null) nothrowQueries the known snippets for those matching group, language_id, and/or trigger_prefix.
void setSearchPath(string[] dirs = null) nothrowSets the list of directories in which the [gtksource.snippet_manager.SnippetManager] looks for snippet files.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
SnippetManager build() nothrowCreate object from builder. Returns: New object