Gtk.IconSource – gtk+-2.0 Reference Manual
Packages
gtk+-2.0
Gtk
IconSource
IconSource
copy
get_direction
get_direction_wildcarded
get_filename
get_icon_name
get_pixbuf
get_size
get_size_wildcarded
get_state
get_state_wildcarded
set_direction
set_direction_wildcarded
set_filename
set_icon_name
set_pixbuf
set_size
set_size_wildcarded
set_state
set_state_wildcarded
IconSource
Object Hierarchy:
Description:
[
CCode
( copy_function =
"gtk_icon_source_copy"
, type_id =
"gtk_icon_source_get_type ()"
) ]
[
Compact
]
public
class
IconSource
Namespace:
Gtk
Package:
gtk+-2.0
Content:
Creation methods:
public
IconSource
()
Creates a new
IconSource
.
Methods:
public
IconSource
copy
()
Creates a copy of
this
; mostly useful for language bindings.
public
TextDirection
get_direction
()
Obtains the text direction this icon source applies to.
public
bool
get_direction_wildcarded
()
Gets the value set by
set_direction_wildcarded
.
public
unowned
string
get_filename
()
Retrieves the source filename, or
null
if none is set.
public
unowned
string
get_icon_name
()
Retrieves the source icon name, or
null
if none is set.
public
unowned
Pixbuf
get_pixbuf
()
Retrieves the source pixbuf, or
null
if none is set.
public
IconSize
get_size
()
Obtains the icon size this source applies to.
public
bool
get_size_wildcarded
()
Gets the value set by
set_size_wildcarded
.
public
StateType
get_state
()
Obtains the widget state this icon source applies to.
public
bool
get_state_wildcarded
()
Gets the value set by
set_state_wildcarded
.
public
void
set_direction
(
TextDirection
direction)
Sets the text direction this icon source is intended to be used with.
public
void
set_direction_wildcarded
(
bool
setting)
If the text direction is wildcarded, this source can be used as the base image for an icon in any
TextDirection
.
public
void
set_filename
(
string
filename)
Sets the name of an image file to use as a base image when creating icon variants for
IconSet
.
public
void
set_icon_name
(
string
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
IconSet
.
public
void
set_pixbuf
(
Pixbuf
pixbuf)
Sets a pixbuf to use as a base image when creating icon variants for
IconSet
.
public
void
set_size
(
IconSize
size)
Sets the icon size this icon source is intended to be used with.
public
void
set_size_wildcarded
(
bool
setting)
If the icon size is wildcarded, this source can be used as the base image for an icon of any size.
public
void
set_state
(
StateType
state)
Sets the widget state this icon source is intended to be used with.
public
void
set_state_wildcarded
(
bool
setting)
If the widget state is wildcarded, this source can be used as the base image for an icon in any
StateType
.