Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkIconSet |
Struct : | IconSet |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.IconSet.c_new
()
:
Gtk.IconSet
Create a new Gtk.IconSet
Create a new Gtk.IconSet
|
||
Create a new Gtk.IconSet
Create a new Gtk.IconSet
|
||
add_source
(IconSource source)
:
none
Icon sets have a list of GtkIconSource, which they use as base icons for rendering icons in different states and sizes.
Icon sets have a list of GtkIconSource, which they use as base icons for rendering icons in different states and sizes. Icons are scaled, made to look insensitive, etc. in gtk_icon_set_render_icon(), but GtkIconSet needs base images to work with. The base images and when to use them are described by a GtkIconSource. This function copies source, so you can reuse the same source immediately without affecting the icon set. to Previous Page" icon might point in a different direction in Hebrew and in English; it might look different when insensitive; and it might change size depending on toolbar mode (small/large icons). So a single icon set would contain all those variants of the icon, and you might add a separate source for each one. You should nearly always add a "default" icon source with all fields wildcarded, which will be used as a fallback if no more specific source matches. GtkIconSet always prefers more specific icon sources to more generic icon sources. The order in which you add the sources to the icon set does not matter. gtk_icon_set_new_from_pixbuf() creates a new icon set with a default icon source based on the given pixbuf.
|
Gtk.IconSet | |
copy
()
:
Gtk.IconSet
Copies icon_set by value.
Copies icon_set by value.
|
Gtk.IconSet | |
get_sizes
()
:
Object
|
Gtk.IconSet | |
render_icon
(Style style, TextDirection direction, StateType state, Number size, Widget widget, String detail)
:
GdkPixbuf.Pixbuf
Renders an icon using gtk_style_render_icon().
Renders an icon using gtk_style_render_icon(). In most cases, gtk_widget_render_icon() is better, since it automatically provides most of the arguments from the current widget settings. This function never returns NULL; if the icon can't be rendered (perhaps because an image file fails to load), a default "missing image" icon will be returned instead.
|
Gtk.IconSet |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.IconFactory
Method |
Looks for an icon in the list of default icon factories.
|
Gtk.IconFactory
Method |
Adds the given icon_set to the icon factory, under the name e.g.
|
Gtk.IconFactory
Method |
lookup
(String stock_id)
:
Gtk.IconSet
Looks up stock_id in the icon factory, returning an icon set if found, otherwise NULL.
|
Gtk.Image
Property |
icon_set : Gtk.IconSet
|
Gtk.Image
Method |
Create a new Gtk.Image
|
Gtk.Image
Method |
See gtk_image_new_from_icon_set() for details.
|
Gtk.Image
Method |
get_icon_set
()
:
Object
Gets the icon set and size being displayed by the GtkImage.
|
Gtk.Style
Method |
lookup_icon_set
(String stock_id)
:
Gtk.IconSet
Looks up stock_id in the icon factories associated with style and the default icon factory, returning an icon set if found, otherwise NULL.
|