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 gtksource.snippet_chunk.SnippetChunk.focusPosition 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 [gtksource.snippet_chunk.SnippetChunk.focusPosition].string getSpec()Gets the specification for the chunk.string getText()Gets the [gtksource.snippet_chunk.SnippetChunk.text] property.bool getTextSet()Gets the [gtksource.snippet_chunk.SnippetChunk.textSet] property.string getTooltipText()void setContext(gtksource.snippet_context.SnippetContext context)void setFocusPosition(int focusPosition)Sets the [gtksource.snippet_chunk.SnippetChunk.focusPosition] 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 [gtksource.snippet_chunk.SnippetChunk.textSet] property.void setTooltipText(string tooltipText)Fluent builder implementation template for gtksource.snippet_chunk.SnippetChunk
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
SnippetChunk build()Create object from builder. Returns: New object