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
GType _gType() @property
SnippetChunk self()Returns `this`, for use in `with` statements.
SnippetChunkGidBuilder builder()Get builder for [gtksource.snippet_chunk.SnippetChunk] Returns: New builder object
int focusPosition() @property
void focusPosition(int propval) @property
string spec() @property
void spec(string propval) @property
string text() @property
void text(string propval) @property
bool textSet() @property
void textSet(bool propval) @property
string tooltipText() @property
void tooltipText(string propval) @property
gtksource.snippet_chunk.SnippetChunk copy()Copies the source snippet. Returns: A #GtkSourceSnippetChunk
gtksource.snippet_context.SnippetContext getContext()Gets the context for the snippet insertion. Returns: A #GtkSourceSnippetContext
int 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.
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)
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new [gtksource.snippet_chunk.SnippetChunk] that can be added to a [gtksource.snippet.Snippet]. Returns:

Fluent builder implementation template for gtksource.snippet_chunk.SnippetChunk

Methods
T focusPosition(int propval)
T spec(string propval)
T text(string propval)
T textSet(bool propval)
T tooltipText(string propval)
Methods
SnippetChunk build()Create object from builder. Returns: New object