Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkIconSource |
Struct : | IconSource |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.IconSource.c_new
()
:
Gtk.IconSource
Create a new Gtk.IconSource
Create a new Gtk.IconSource
|
||
copy
()
:
Gtk.IconSource
Creates a copy of source; mostly useful for language bindings.
Creates a copy of source; mostly useful for language bindings.
|
Gtk.IconSource | |
free
()
:
none
Frees a dynamically-allocated icon source, along with its filename, size, and pixbuf fields if those are not NULL.
Frees a dynamically-allocated icon source, along with its filename, size, and pixbuf fields if those are not NULL.
|
Gtk.IconSource | |
get_direction
()
:
Gtk.TextDirection
Obtains the text direction this icon source applies to.
Obtains the text direction this icon source applies to. The return value is only useful/meaningful if the text direction is
|
Gtk.IconSource | |
get_direction_wildcarded
()
:
Boolean
Gets the value set by gtk_icon_source_set_direction_wildcarded().
Gets the value set by gtk_icon_source_set_direction_wildcarded().
|
Gtk.IconSource | |
get_filename
()
:
String
Retrieves the source filename, or NULL if none is set.
Retrieves the source filename, or NULL if none is set. The filename is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source. or freed.
|
Gtk.IconSource | |
get_icon_name
()
:
String
Retrieves the source icon name, or NULL if none is set.
Retrieves the source icon name, or NULL if none is set. The icon_name is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source.
|
Gtk.IconSource | |
get_pixbuf
()
:
GdkPixbuf.Pixbuf
Retrieves the source pixbuf, or NULL if none is set.
Retrieves the source pixbuf, or NULL if none is set. In addition, if a filename source is in use, this function in some cases will return the pixbuf from loaded from the filename. This is, for example, true for the GtkIconSource passed to the GtkStyle::render_icon() virtual function. The reference count on the pixbuf is not incremented.
|
Gtk.IconSource | |
get_size
()
:
Number
Obtains the icon size this source applies to.
Obtains the icon size this source applies to. The return value is only useful/meaningful if the icon size is
|
Gtk.IconSource | |
get_size_wildcarded
()
:
Boolean
Gets the value set by gtk_icon_source_set_size_wildcarded().
Gets the value set by gtk_icon_source_set_size_wildcarded().
|
Gtk.IconSource | |
get_state
()
:
Gtk.StateType
Obtains the widget state this icon source applies to.
Obtains the widget state this icon source applies to. The return value is only useful/meaningful if the widget state is
|
Gtk.IconSource | |
get_state_wildcarded
()
:
Boolean
Gets the value set by gtk_icon_source_set_state_wildcarded().
Gets the value set by gtk_icon_source_set_state_wildcarded().
|
Gtk.IconSource | |
set_direction
(TextDirection direction)
:
none
Sets the text direction this icon source is intended to be used with.
Sets the text direction this icon source is intended to be used with. Setting the text direction on an icon source makes no difference if the text direction is wildcarded. Therefore, you should usually call gtk_icon_source_set_direction_wildcarded() to un-wildcard it in addition to calling this function.
|
Gtk.IconSource | |
set_direction_wildcarded
(Boolean setting)
:
none
If the text direction is wildcarded, this source can be used as the base image for an icon in any GtkTextDirection.
If the text direction is wildcarded, this source can be used as the base image for an icon in any GtkTextDirection. If the text direction is not wildcarded, then the text direction the icon source applies to should be set with gtk_icon_source_set_direction(), and the icon source will only be used with that text direction. GtkIconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible.
|
Gtk.IconSource | |
set_filename
(String filename)
:
none
Sets the name of an image file to use as a base image when creating icon variants for GtkIconSet.
Sets the name of an image file to use as a base image when creating icon variants for GtkIconSet. The filename must be absolute.
|
Gtk.IconSource | |
set_icon_name
(String icon_name)
:
none
|
Gtk.IconSource | |
set_pixbuf
(Pixbuf pixbuf)
:
none
Sets a pixbuf to use as a base image when creating icon variants for GtkIconSet.
Sets a pixbuf to use as a base image when creating icon variants for GtkIconSet.
|
Gtk.IconSource | |
set_size
(Number size)
:
none
Sets the icon size this icon source is intended to be used with.
Sets the icon size this icon source is intended to be used with. Setting the icon size on an icon source makes no difference if the size is wildcarded. Therefore, you should usually call gtk_icon_source_set_size_wildcarded() to un-wildcard it in addition to calling this function.
|
Gtk.IconSource | |
set_size_wildcarded
(Boolean setting)
:
none
If the icon size is wildcarded, this source can be used as the base image for an icon of any size.
If the icon size is wildcarded, this source can be used as the base image for an icon of any size. If the size is not wildcarded, then the size the source applies to should be set with gtk_icon_source_set_size() and the icon source will only be used with that specific size. GtkIconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. GtkIconSet will normally scale wildcarded source images to produce an appropriate icon at a given size, but will not change the size of source images that match exactly.
|
Gtk.IconSource | |
set_state
(StateType state)
:
none
Sets the widget state this icon source is intended to be used with.
Sets the widget state this icon source is intended to be used with. Setting the widget state on an icon source makes no difference if the state is wildcarded. Therefore, you should usually call gtk_icon_source_set_state_wildcarded() to un-wildcard it in addition to calling this function.
|
Gtk.IconSource | |
set_state_wildcarded
(Boolean setting)
:
none
If the widget state is wildcarded, this source can be used as the base image for an icon in any GtkStateType.
If the widget state is wildcarded, this source can be used as the base image for an icon in any GtkStateType. If the widget state is not wildcarded, then the state the source applies to should be set with gtk_icon_source_set_state() and the icon source will only be used with that specific state. GtkIconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. GtkIconSet will normally transform wildcarded source images to produce an appropriate icon for a given state, for example lightening an image on prelight, but will not modify source images that match exactly.
|
Gtk.IconSource |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.IconSet
Method |
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.
|
Gtk.Style
Method |
render_icon
(IconSource source, TextDirection direction, StateType state, Number size, Widget widget, String detail)
:
GdkPixbuf.Pixbuf
Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.
|