Class: GtkSource::SnippetChunk

Inherits:
GObject::InitiallyUnowned
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initializeGtkSource::SnippetChunk

Create a new GtkSourceSnippetChunk that can be added to a [classSnippet].

Instance Method Details

#contextGtkSource::SnippetContext

Returns context.

Returns:

#context=(context) ⇒ GtkSource::SnippetContext

Parameters:

Returns:

#copyGtkSource::SnippetChunk

Copies the source snippet.

Returns:

#focus_positionInteger

Returns focus-position.

Returns:

  • (Integer)

    focus-position

#focus_position=(focus_position) ⇒ Integer

Parameters:

  • focus_position (Integer)

Returns:

  • (Integer)

    focus-position

  • (Integer)

    focus-position

#specString

Returns spec.

Returns:

  • (String)

    spec

#spec=(spec) ⇒ String

Parameters:

  • spec (String)

Returns:

  • (String)

    spec

  • (String)

    spec

#textString

Returns text.

Returns:

  • (String)

    text

#text=(text) ⇒ String

Parameters:

  • text (String)

Returns:

  • (String)

    text

  • (String)

    text

#text_setBoolean

Gets the [propertySnippetChunk:text-set] property.

This is typically set when the user has edited a snippet chunk.

Returns:

  • (Boolean)

#text_set=(text_set) ⇒ Boolean

Parameters:

  • text_set (Boolean)

Returns:

  • (Boolean)

    text-set

  • (Boolean)

    text-set

#text_set?Boolean

Returns text-set.

Returns:

  • (Boolean)

    text-set

#tooltip_textString

Returns tooltip-text.

Returns:

  • (String)

    tooltip-text

#tooltip_text=(tooltip_text) ⇒ String

Parameters:

  • tooltip_text (String)

Returns:

  • (String)

    tooltip-text

  • (String)

    tooltip-text