Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkIconInfo |
Struct : | IconInfo |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
Create a new Gtk.IconInfo
Create a new Gtk.IconInfo
|
||
copy
()
:
Gtk.IconInfo
Make a copy of a GtkIconInfo.
Make a copy of a GtkIconInfo.
|
Gtk.IconInfo | |
free
()
:
none
Free a GtkIconInfo and associated information
Free a GtkIconInfo and associated information
|
Gtk.IconInfo | |
Gtk.IconInfo | ||
get_base_size
()
:
Number
Gets the base size for the icon.
Gets the base size for the icon. The base size is a size for the icon that was specified by the icon theme creator. This may be different than the actual size of image; an example of this is small emblem icons that can be attached to a larger icon. These icons will be given the same base size as the larger icons to which they are attached. size is known for the icon.
|
Gtk.IconInfo | |
get_builtin_pixbuf
()
:
GdkPixbuf.Pixbuf
Gets the built-in image for this icon, if any.
Gets the built-in image for this icon, if any. To allow GTK+ to use built in icon images, you must pass the GTK_ICON_LOOKUP_USE_BUILTIN to gtk_icon_theme_lookup_icon(). extra reference is added to the returned pixbuf, so if you want to keep it around, you must use g_object_ref(). The returned image must not be modified.
|
Gtk.IconInfo | |
get_display_name
()
:
String
Gets the display name for an icon.
Gets the display name for an icon. A display name is a string to be used in place of the icon name in a user visible context like a list of icons. the icon doesn't have a specified display name. This value is owned icon_info and must not be modified or free.
|
Gtk.IconInfo | |
Gets the coordinates of a rectangle within the icon that can be used for display of information such as a preview of the contents of a text file.
Gets the coordinates of a rectangle within the icon that can be used for display of information such as a preview of the contents of a text file. See gtk_icon_info_set_raw_coordinates() for further information about the coordinate system.
|
Gtk.IconInfo | |
get_filename
()
:
String
Gets the filename for the icon.
Gets the filename for the icon. If the GTK_ICON_LOOKUP_USE_BUILTIN flag was passed to gtk_icon_theme_lookup_icon(), there may be no filename if a builtin icon is returned; in this case, you should use gtk_icon_info_get_builtin_pixbuf(). if gtk_icon_info_get_builtin_pixbuf() should be used instead. The return value is owned by GTK+ and should not be modified or freed.
|
Gtk.IconInfo | |
load_icon
()
:
GdkPixbuf.Pixbuf
Renders an icon previously looked up in an icon theme using gtk_icon_theme_lookup_icon(); the size will be based on the size passed to gtk_icon_theme_lookup_icon().
Renders an icon previously looked up in an icon theme using gtk_icon_theme_lookup_icon(); the size will be based on the size passed to gtk_icon_theme_lookup_icon(). Note that the resulting pixbuf may not be exactly this size; an icon theme may have icons that differ slightly from their nominal sizes, and in addition GTK+ will avoid scaling icons that it considers sufficiently close to the requested size or for which the source image would have to be scaled up too far. (This maintains sharpness.). This behaviour can be changed by passing the GTK_ICON_LOOKUP_FORCE_SIZE flag when obtaining the GtkIconInfo. If this flag has been specified, the pixbuf returned by this function will be scaled to the exact size. or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon.
|
Gtk.IconInfo | |
set_raw_coordinates
(Boolean raw_coordinates)
:
none
Sets whether the coordinates returned by gtk_icon_info_get_embedded_rect() and gtk_icon_info_get_attach_points() should be returned in their original form as specified in the icon theme, instead of scaled appropriately for the pixbuf returned by gtk_icon_info_load_icon().
Sets whether the coordinates returned by gtk_icon_info_get_embedded_rect() and gtk_icon_info_get_attach_points() should be returned in their original form as specified in the icon theme, instead of scaled appropriately for the pixbuf returned by gtk_icon_info_load_icon(). Raw coordinates are somewhat strange; they are specified to be with respect to the unscaled pixmap for PNG and XPM icons, but for SVG icons, they are in a 1000x1000 coordinate space that is scaled to the final size of the icon. You can determine if the icon is an SVG icon by using gtk_icon_info_get_filename(), and seeing if it is non-NULL and ends in '.svg'. This function is provided primarily to allow compatibility wrappers for older API's, and is not expected to be useful for applications.
|
Gtk.IconInfo |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.IconTheme
Method |
Looks up a named icon and returns a structure containing information such as the filename of the icon.
|
Gtk.IconTheme
Method |
Looks up a named icon and returns a structure containing information such as the filename of the icon.
|
Gtk.IconTheme
Method |
Looks up an icon and returns a structure containing information such as the filename of the icon.
|