gtksource.snippet_context
Module for [SnippetContext] class
Types 3
Context for expanding gtksource.snippet_chunk.SnippetChunk.
This class is currently used primary as a hashtable. However, the longer term goal is to have it hold onto a GjsContext as well as other languages so that gtksource.snippet_chunk.SnippetChunk can expand themselves by executing script within the context.
The gtksource.snippet.Snippet will build the context and then expand each of the chunks during the insertion/edit phase.
Methods
SnippetContextGidBuilder builder() static nothrowGet builder for [gtksource.snippet_context.SnippetContext] Returns: New builder objectstring expand(string input) nothrowvoid setLinePrefix(string linePrefix) nothrowvoid setTabWidth(int tabWidth) nothrowvoid setUseSpaces(bool useSpaces) nothrowgulong connectChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.snippet_context.SnippetContext)))
&& Parameters!T.length < 2) nothrowConnect to `Changed` signal.Fluent builder implementation template for gtksource.snippet_context.SnippetContext
Fluent builder for gtksource.snippet_context.SnippetContext
Methods