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
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 `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.
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)
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new [gtksource.snippet_chunk.SnippetChunk] that can be added to a `classSnippet`. Returns:
Methods
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]