Class: GtkSource::Annotation

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

Instance Method Summary collapse

Constructor Details

#initialize(description, icon, line, style) ⇒ GtkSource::Annotation

Returns a new [classAnnotation].

Parameters:

  • description (String) —

    the text to display or nil.

  • icon (Gio::Icon) —

    the icon name to display or nil.

  • line (Integer) —

    the line where to display the annotation.

  • style (GtkSource::AnnotationStyle) —

    Gtk::SourceAnnotationStyle

Instance Method Details

#description ⇒ String

The text description displayed at [propertyAnnotation:line]

Returns:

  • (String) —

    description

#description=(description) ⇒ String

The text description displayed at [propertyAnnotation:line]

Parameters:

  • description (String)

Returns:

  • (String) —

    description

  • (String) —

    description

#icon ⇒ Gio::Icon

The icon displayed at [propertyAnnotation:line]

It will be displayed before the text description

Returns:

  • (Gio::Icon) —

    icon

#icon=(icon) ⇒ Gio::Icon

The icon displayed at [propertyAnnotation:line]

It will be displayed before the text description

Parameters:

  • icon (Gio::Icon)

Returns:

  • (Gio::Icon) —

    icon

  • (Gio::Icon) —

    icon

#line ⇒ Integer

The line where to display the annotation

Returns:

  • (Integer) —

    line

#line=(line) ⇒ Integer

The line where to display the annotation

Parameters:

  • line (Integer)

Returns:

  • (Integer) —

    line

  • (Integer) —

    line

#style ⇒ GtkSource::AnnotationStyle

The style of the annotation

Returns:

#style=(style) ⇒ GtkSource::AnnotationStyle

The style of the annotation

Parameters:

Returns: