SnippetManager

open class SnippetManager(pointer: <Error class: unknown class><<Error class: unknown class>>)

Provides access to class@Snippet.

GtkSourceSnippetManager is an object which processes snippet description files and creates class@Snippet objects.

Use func@SnippetManager.get_default to retrieve the default instance of GtkSourceSnippetManager.

Use method@SnippetManager.get_snippet to retrieve snippets for a given snippets.

Skipped during bindings generation

  • method search-path: Property TypeInfo of getter and setter do not match

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtksourceSnippetManagerPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Gets the list directories where @self looks for snippet files.

Link copied to clipboard
open fun getSnippet(group: String? = null, languageId: String? = null, trigger: String): Snippet?

Queries the known snippets for the first matching @group, @language_id, and/or @trigger.

Link copied to clipboard
open fun listAll(): <Error class: unknown class>

Gets a iface@Gio.ListModel of all snippets.

Link copied to clipboard
open fun listGroups(): List<String>

List all the known groups within the snippet manager.

Link copied to clipboard
open fun listMatching(group: String? = null, languageId: String? = null, triggerPrefix: String? = null): <Error class: unknown class>

Queries the known snippets for those matching @group, @language_id, and/or

Link copied to clipboard
open fun setSearchPath(dirs: List<String>? = null)

Sets the list of directories in which the GtkSourceSnippetManager looks for snippet files.