![]() |
![]() |
Public Member Functions | |
TextDirection | get_direction () const |
Obtains the text direction this icon source applies to. | |
bool | get_direction_wildcarded () const |
Gets the value set by gtk_icon_source_set_direction_wildcarded(). | |
Glib::ustring | get_filename () const |
Retrieves the source filename, or 0 if none is set. | |
Glib::ustring | get_icon_name () const |
Retrieves the source icon name, or 0 if none is set. | |
Glib::RefPtr<const Gdk::Pixbuf> | get_pixbuf () const |
Retrieves the source pixbuf, or 0 if none is set. | |
Glib::RefPtr<Gdk::Pixbuf> | get_pixbuf () |
Retrieves the source pixbuf, or 0 if none is set. | |
IconSize | get_size () const |
Obtains the icon size this source applies to. | |
bool | get_size_wildcarded () const |
Gets the value set by gtk_icon_source_set_size_wildcarded(). | |
Gtk::StateType | get_state () const |
Obtains the widget state this icon source applies to. | |
bool | get_state_wildcarded () const |
Gets the value set by gtk_icon_source_set_state_wildcarded(). | |
const GtkIconSource* | gobj () const |
Provides access to the underlying C instance. | |
GtkIconSource* | gobj () |
Provides access to the underlying C instance. | |
GtkIconSource* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
IconSource (const IconSource& other) | |
IconSource (GtkIconSource* gobject, bool make_a_copy=true) | |
IconSource () | |
IconSource& | operator= (const IconSource& other) |
void | set_direction (TextDirection direction) |
Sets the text direction this icon source is intended to be used with. | |
void | set_direction_wildcarded (bool setting=true) |
If the text direction is wildcarded, this source can be used as the base image for an icon in any Gtk::TextDirection. | |
void | set_filename (const Glib::ustring& filename) |
Sets the name of an image file to use as a base image when creating icon variants for Gtk::IconSet. | |
void | set_icon_name (const Glib::ustring& icon_name) |
Sets the name of an icon to look up in the current icon theme to use as a base image when creating icon variants for Gtk::IconSet. | |
void | set_pixbuf (const Glib::RefPtr<Gdk::Pixbuf>& pixbuf) |
Sets a pixbuf to use as a base image when creating icon variants for Gtk::IconSet. | |
void | set_size (IconSize size) |
Sets the icon size this icon source is intended to be used with. | |
void | set_size_wildcarded (bool setting=true) |
If the icon size is wildcarded, this source can be used as the base image for an icon of any size. | |
void | set_state (Gtk::StateType state) |
Sets the widget state this icon source is intended to be used with. | |
void | set_state_wildcarded (bool setting=true) |
If the widget state is wildcarded, this source can be used as the base image for an icon in any Gtk::StateType. | |
void | swap (IconSource& other) |
~IconSource () | |
Protected Attributes | |
GtkIconSource* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (IconSource& lhs, IconSource& rhs) |
Gtk::IconSource | wrap (GtkIconSource* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
Obtains the text direction this icon source applies to. The return value is only useful/meaningful if the text direction is not wildcarded.
|
|
Gets the value set by gtk_icon_source_set_direction_wildcarded().
|
|
Retrieves the source filename, or The filename is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source.
|
|
Retrieves the source icon name, or The icon_name is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source.
|
|
Retrieves the source pixbuf, or 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.
|
|
Retrieves the source pixbuf, or 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.
|
|
Obtains the icon size this source applies to. The return value is only useful/meaningful if the icon size is not wildcarded.
|
|
Gets the value set by gtk_icon_source_set_size_wildcarded().
|
|
Obtains the widget state this icon source applies to. The return value is only useful/meaningful if the widget state is not wildcarded.
|
|
Gets the value set by gtk_icon_source_set_state_wildcarded().
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
|
|
|
|
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.
|
|
If the text direction is wildcarded, this source can be used as the base image for an icon in any Gtk::TextDirection. 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. Gtk::IconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible.
|
|
Sets the name of an image file to use as a base image when creating icon variants for Gtk::IconSet. The filename must be absolute.
|
|
Sets the name of an icon to look up in the current icon theme to use as a base image when creating icon variants for Gtk::IconSet.
|
|
Sets a pixbuf to use as a base image when creating icon variants for Gtk::IconSet.
|
|
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.
|
|
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. Gtk::IconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. Gtk::IconSet 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.
|
|
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.
|
|
If the widget state is wildcarded, this source can be used as the base image for an icon in any Gtk::StateType. 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. Gtk::IconSet prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. Gtk::IconSet 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.
|
|
|
|
|
|
|
|
|