Class: Gtk::IconPaintable
- Inherits:
-
Object
- Object
- Gtk::IconPaintable
- Defined in:
- (unknown)
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.
-
#scale ⇒ Integer
Scale.
- #scale=(scale) ⇒ Integer
-
#size ⇒ Integer
Size.
- #size=(size) ⇒ Integer
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.
#is_symbolic=(is_symbolic) ⇒ Boolean
Whether the icon is symbolic or not.
#is_symbolic? ⇒ Boolean
Whether the icon is symbolic or not.
#scale ⇒ Integer
Returns scale.
#scale=(scale) ⇒ Integer
#size ⇒ Integer
Returns size.