SnippetChunk

open class SnippetChunk(pointer: <Error class: unknown class><<Error class: unknown class>>)

A chunk of text within the source snippet.

The GtkSourceSnippetChunk 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.

Skipped during bindings generation

  • method spec: Property TypeInfo of getter and setter do not match

Constructors

Link copied to clipboard
constructor()

Create a new GtkSourceSnippetChunk that can be added to a class@Snippet.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open var focusPosition: Int
Link copied to clipboard
val gtksourceSnippetChunkPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var text: String
Link copied to clipboard
open var textSet: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
open fun copy(): SnippetChunk

Copies the source snippet.

Link copied to clipboard

Gets the context for the snippet insertion.

Link copied to clipboard
open fun getFocusPosition(): Int

Gets the property@SnippetChunk:focus-position.

Link copied to clipboard
open fun getSpec(): String?

Gets the specification for the chunk.

Link copied to clipboard
open fun getText(): String

Gets the property@SnippetChunk:text property.

Link copied to clipboard
open fun getTextSet(): Boolean

Gets the property@SnippetChunk:text-set property.

Link copied to clipboard
Link copied to clipboard
open fun setContext(context: SnippetContext)
Link copied to clipboard
open fun setFocusPosition(focusPosition: Int)

Sets the property@SnippetChunk:focus-position property.

Link copied to clipboard
open fun setSpec(spec: String)

Sets the specification for the chunk.

Link copied to clipboard
open fun setText(text: String)

Sets the text for the snippet chunk.

Link copied to clipboard
open fun setTextSet(textSet: Boolean)

Sets the property@SnippetChunk:text-set property.

Link copied to clipboard
open fun setTooltipText(tooltipText: String)