SnippetChunk

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.

Constructors

this
this()

Create a new gtksource.snippet_chunk.SnippetChunk that can be added to a classSnippet.

Members

Functions

copy
gtksource.snippet_chunk.SnippetChunk copy()

Copies the source snippet.

getContext
gtksource.snippet_context.SnippetContext getContext()

Gets the context for the snippet insertion.

getFocusPosition
int getFocusPosition()

Gets the propertySnippetChunk:focus-position.

getSpec
string getSpec()

Gets the specification for the chunk.

getText
string getText()

Gets the propertySnippetChunk:text property.

getTextSet
bool getTextSet()

Gets the propertySnippetChunk:text-set property.

getTooltipText
string getTooltipText()
setContext
void setContext(gtksource.snippet_context.SnippetContext context)
setFocusPosition
void setFocusPosition(int focusPosition)

Sets the propertySnippetChunk:focus-position property.

setSpec
void setSpec(string spec)

Sets the specification for the chunk.

setText
void setText(string text)

Sets the text for the snippet chunk.

setTextSet
void setTextSet(bool textSet)

Sets the propertySnippetChunk:text-set property.

setTooltipText
void setTooltipText(string tooltipText)