Class: GtkSource::SnippetChunk

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

Instance Method Summary collapse

Constructor Details

#initialize ⇒ GtkSource::SnippetChunk

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

Instance Method Details

#context ⇒ GtkSource::SnippetContext

Returns context.

Returns:

#context=(context) ⇒ GtkSource::SnippetContext

Parameters:

Returns:

#copy ⇒ GtkSource::SnippetChunk

Copies the source snippet.

Returns:

#focus_position ⇒ Integer

Returns focus-position.

Returns:

  • (Integer) —

    focus-position

#focus_position=(focus_position) ⇒ Integer

Parameters:

  • focus_position (Integer)

Returns:

  • (Integer) —

    focus-position

  • (Integer) —

    focus-position

#spec ⇒ String

Returns spec.

Returns:

  • (String) —

    spec

#spec=(spec) ⇒ String

Parameters:

  • spec (String)

Returns:

  • (String) —

    spec

  • (String) —

    spec

#text ⇒ String

Returns text.

Returns:

  • (String) —

    text

#text=(text) ⇒ String

Parameters:

  • text (String)

Returns:

  • (String) —

    text

  • (String) —

    text

#text_set ⇒ Boolean

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_text ⇒ String

Returns tooltip-text.

Returns:

  • (String) —

    tooltip-text

#tooltip_text=(tooltip_text) ⇒ String

Parameters:

  • tooltip_text (String)

Returns:

  • (String) —

    tooltip-text

  • (String) —

    tooltip-text