gtksource.snippet_chunk
Module for [SnippetChunk] class
Types 3
A chunk of text within the source snippet.
The [gtksource.snippet_chunk.SnippetChunk] represents a single chunk of text that may or may not be an edit point within the snippet. Chunks that are an edit point (also called a tab stop) have the property@SnippetChunk:focus-position property set.
Methods
SnippetChunk self()Returns `this`, for use in `with` statements.SnippetChunkGidBuilder builder()Get builder for [gtksource.snippet_chunk.SnippetChunk] Returns: New builder objectgtksource.snippet_context.SnippetContext context() @propertyvoid context(gtksource.snippet_context.SnippetContext propval) @propertyint focusPosition() @propertyvoid focusPosition(int propval) @propertystring spec() @propertyvoid spec(string propval) @propertystring text() @propertyvoid text(string propval) @propertybool textSet() @propertyvoid textSet(bool propval) @propertystring tooltipText() @propertyvoid tooltipText(string propval) @propertygtksource.snippet_chunk.SnippetChunk copy()Copies the source snippet. Returns: A #GtkSourceSnippetChunkgtksource.snippet_context.SnippetContext getContext()Gets the context for the snippet insertion. Returns: A #GtkSourceSnippetContextint getFocusPosition()Gets the `propertySnippetChunk:focus-position`.string getSpec()Gets the specification for the chunk.string getText()Gets the `propertySnippetChunk:text` property.bool getTextSet()Gets the `propertySnippetChunk:text-set` property.string getTooltipText()void setContext(gtksource.snippet_context.SnippetContext context)void setFocusPosition(int focusPosition)Sets the `propertySnippetChunk:focus-position` property.void setSpec(string spec)Sets the specification for the chunk.void setText(string text)Sets the text for the snippet chunk.void setTextSet(bool textSet)Sets the `propertySnippetChunk:text-set` property.void setTooltipText(string tooltipText)Methods
T context(gtksource.snippet_context.SnippetContext propval)T focusPosition(int propval)T spec(string propval)T text(string propval)T textSet(bool propval)T tooltipText(string propval)Fluent builder for [gtksource.snippet_chunk.SnippetChunk]
Methods