Class: Gtk::IconPaintable
- Inherits:
-
Object
- Object
- Gtk::IconPaintable
- Defined in:
- (unknown)
Overview
Contains information found when looking up an icon in GtkIconTheme.
GtkIconPaintable implements GdkPaintable.
Instance Method Summary collapse
-
#file ⇒ Gio::File
The file representing the icon, if any.
-
#file=(file) ⇒ Gio::File
The file representing the icon, if any.
-
#icon_name ⇒ String
The icon name that was chosen during lookup.
-
#icon_name=(icon_name) ⇒ String
The icon name that was chosen during lookup.
-
#initialize(file, size, scale) ⇒ Gtk::IconPaintable
constructor
Creates a
GtkIconPaintablefor a file with a given size and scale. -
#is_symbolic ⇒ Boolean
Checks if the icon is symbolic or not.
-
#is_symbolic=(is_symbolic) ⇒ Boolean
Whether the icon is symbolic or not.
-
#is_symbolic? ⇒ Boolean
Whether the icon is symbolic or not.
Constructor Details
#initialize(file, size, scale) ⇒ Gtk::IconPaintable
Creates a GtkIconPaintable for a file with a given size and scale.
The icon can then be rendered by using it as a GdkPaintable.
Instance Method Details
#file ⇒ Gio::File
The file representing the icon, if any.
#file=(file) ⇒ Gio::File
The file representing the icon, if any.
#icon_name ⇒ String
The icon name that was chosen during lookup.
#icon_name=(icon_name) ⇒ String
The icon name that was chosen during lookup.
#is_symbolic ⇒ Boolean
Checks if the icon is symbolic or not.
This currently uses only the file name and not the file contents for determining this. This behaviour may change in the future.
Note that to render a symbolic GtkIconPaintable properly (with
recoloring), you have to set its icon name on a GtkImage.
#is_symbolic=(is_symbolic) ⇒ Boolean
Whether the icon is symbolic or not.
#is_symbolic? ⇒ Boolean
Whether the icon is symbolic or not.