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 _getGType() static nothrow
GType _gType() @property nothrow
SnippetChunk self() nothrowReturns `this`, for use in `with` statements.
SnippetChunkGidBuilder builder() static nothrowGet builder for [gtksource.snippet_chunk.SnippetChunk] Returns: New builder object
void context(gtksource.snippet_context.SnippetContext propval) @property nothrow
int focusPosition() @property nothrow
void focusPosition(int propval) @property nothrow
string spec() @property nothrow
void spec(string propval) @property nothrow
string text() @property nothrow
void text(string propval) @property nothrow
bool textSet() @property nothrow
void textSet(bool propval) @property nothrow
string tooltipText() @property nothrow
void tooltipText(string propval) @property nothrow
gtksource.snippet_chunk.SnippetChunk copy() nothrowCopies the source snippet. Returns: A #GtkSourceSnippetChunk
gtksource.snippet_context.SnippetContext getContext() nothrowGets the context for the snippet insertion. Returns: A #GtkSourceSnippetContext
int getFocusPosition() nothrowGets the [gtksource.snippet_chunk.SnippetChunk.focusPosition].
string getSpec() nothrowGets the specification for the chunk.
string getText() nothrowGets the [gtksource.snippet_chunk.SnippetChunk.text] property.
bool getTextSet() nothrowGets the [gtksource.snippet_chunk.SnippetChunk.textSet] property.
string getTooltipText() nothrow
void setFocusPosition(int focusPosition) nothrowSets the [gtksource.snippet_chunk.SnippetChunk.focusPosition] property.
void setSpec(string spec) nothrowSets the specification for the chunk.
void setText(string text) nothrowSets the text for the snippet chunk.
void setTextSet(bool textSet) nothrowSets the [gtksource.snippet_chunk.SnippetChunk.textSet] property.
void setTooltipText(string tooltipText) nothrow
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) nothrow
T spec(string propval) nothrow
T text(string propval) nothrow
T textSet(bool propval) nothrow
T tooltipText(string propval) nothrow
Methods
SnippetChunk build() nothrowCreate object from builder. Returns: New object