Class: GtkSource::MarkAttributes
- Inherits:
-
Object
- Object
- GtkSource::MarkAttributes
- Defined in:
- lib/gtksourceview4/mark-attributes.rb
Instance Method Summary collapse
-
#background ⇒ Gdk::RGBA
A color used for background of a line.
-
#background=(background) ⇒ Gdk::RGBA
A color used for background of a line.
-
#background_raw ⇒ Gdk::RGBA
A color used for background of a line.
-
#get_background(background) ⇒ Boolean
Stores background color in background.
-
#get_tooltip_markup(mark) ⇒ String
Queries for a tooltip by emitting a [signalMarkAttributes::query-tooltip-markup] signal.
-
#get_tooltip_text(mark) ⇒ String
Queries for a tooltip by emitting a [signalMarkAttributes::query-tooltip-text] signal.
-
#gicon ⇒ Gio::Icon
A #GIcon that may be a base of a rendered icon.
-
#gicon=(gicon) ⇒ Gio::Icon
A #GIcon that may be a base of a rendered icon.
-
#icon_name ⇒ String
An icon name that may be a base of a rendered icon.
-
#icon_name=(icon_name) ⇒ String
An icon name that may be a base of a rendered icon.
-
#initialize ⇒ GtkSource::MarkAttributes
constructor
Creates a new source mark attributes.
-
#pixbuf ⇒ GdkPixbuf::Pixbuf
A Gdk::Pixbuf that may be a base of a rendered icon.
-
#pixbuf=(pixbuf) ⇒ GdkPixbuf::Pixbuf
A Gdk::Pixbuf that may be a base of a rendered icon.
-
#render_icon(widget, size) ⇒ Gdk::Paintable
Renders an icon of given size.
Constructor Details
#initialize ⇒ GtkSource::MarkAttributes
Creates a new source mark attributes.
Instance Method Details
#background ⇒ Gdk::RGBA
A color used for background of a line.
20 21 22 23 24 25 26 27 |
# File 'lib/gtksourceview4/mark-attributes.rb', line 20 def background set, rgba = background_raw if set rgba else nil end end |
#background=(background) ⇒ Gdk::RGBA
A color used for background of a line.
#background_raw ⇒ Gdk::RGBA
A color used for background of a line.
|
|
# File 'lib/gtksourceview4/mark-attributes.rb', line 19
|
#get_background(background) ⇒ Boolean
Stores background color in background.
#get_tooltip_markup(mark) ⇒ String
Queries for a tooltip by emitting a [signalMarkAttributes::query-tooltip-markup] signal.
The tooltip may contain a markup. using g_free() when done with it.
#get_tooltip_text(mark) ⇒ String
Queries for a tooltip by emitting a [signalMarkAttributes::query-tooltip-text] signal.
The tooltip is a plain text. using g_free() when done with it.
#gicon ⇒ Gio::Icon
A #GIcon that may be a base of a rendered icon.
#gicon=(gicon) ⇒ Gio::Icon
A #GIcon that may be a base of a rendered icon.
#icon_name ⇒ String
An icon name that may be a base of a rendered icon.
#icon_name=(icon_name) ⇒ String
An icon name that may be a base of a rendered icon.
#pixbuf ⇒ GdkPixbuf::Pixbuf
A Gdk::Pixbuf that may be a base of a rendered icon.
#pixbuf=(pixbuf) ⇒ GdkPixbuf::Pixbuf
A Gdk::Pixbuf that may be a base of a rendered icon.
#render_icon(widget, size) ⇒ Gdk::Paintable
Renders an icon of given size.
The base of the icon is set by the last call to one of:
- [methodMarkAttributes.set_pixbuf]
- [methodMarkAttributes.set_gicon]
- [methodMarkAttributes.set_icon_name]
size cannot be lower than 1. and should not be unreffed.