Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

Interface Gio.Icon

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GIcon
Interface : Icon
Implementations: GdkPixbuf.Pixbuf, Gio.Emblem, Gio.EmblemedIcon, Gio.FileIcon, Gio.ThemedIcon
GIcon is a very minimal interface for icons. It provides functions
for checking the equality of two icons, hashing of icons and
serializing an icon to and from strings.
GIcon does not provide the actual pixmap for the icon as this is out
of GIO's scope, however implementations of GIcon may contain the name
of an icon (see GThemedIcon), or the path to an icon (see GLoadableIcon).
To obtain a hash of a GIcon, see g_icon_hash().
To check if two GIcons are equal, see g_icon_equal().
For serializing a GIcon, use g_icon_to_string() and
g_icon_new_for_string().
If your application or library provides one or more GIcon
implementations you need to ensure that each GType is registered
with the type system prior to calling g_icon_new_for_string().
Properties
None
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk.AppLaunchContext
Method
set_icon (Icon icon) : none
Sets the icon for applications that are launched with this
context.
Gio
Method
Gio.content_type_get_icon (String type) : Gio.Icon
Gets the icon for a content type.
Gio
Method
Gio.icon_new_for_string (String str) : Gio.Icon
Generate a GIcon instance from str.
Gio
Method
Gio.unix_mount_guess_icon (UnixMountEntry mount_entry) : Gio.Icon
Guesses the icon of a Unix mount.
Gio.AppInfo
Method
get_icon () : Gio.Icon
Gets the icon for the application.
Gio.Drive
Method
get_icon () : Gio.Icon
Gets the icon for drive.
Gio.Emblem
Method
new Gio.Emblem.c_new (Icon icon) : Gio.Emblem
Create a new Gio.Emblem
Gio.Emblem
Method
new Gio.Emblem.with_origin (Icon icon, EmblemOrigin origin) : Gio.Emblem
Create a new Gio.Emblem
Gio.Emblem
Method
get_icon () : Gio.Icon
Gives back the icon from emblem.
Gio.EmblemedIcon
Property
gicon : Gio.Icon
Gio.EmblemedIcon
Method
Gio.EmblemedIcon.c_new (Icon icon, Emblem emblem) : Gio.Icon
Creates a new emblemed icon for icon with the emblem emblem.
Gio.EmblemedIcon
Method
get_icon () : Gio.Icon
Gets the main icon for emblemed.
Gio.File
Method
icon_new () : Gio.Icon
Creates a new icon for a file.
Gio.FileInfo
Method
get_icon () : Gio.Icon
Gets the icon for a file.
Gio.FileInfo
Method
set_icon (Icon icon) : none
Sets the icon for a given GFileInfo.
Gio.Mount
Method
get_icon () : Gio.Icon
Gets the icon for mount.
Gio.ThemedIcon
Method
Gio.ThemedIcon.c_new (String iconname) : Gio.Icon
Creates a new themed icon for iconname.
Gio.ThemedIcon
Method
Gio.ThemedIcon.new_from_names (Array iconnames, gint32 len) : Gio.Icon
Creates a new themed icon for iconnames.
Gio.ThemedIcon
Method
Gio.ThemedIcon.new_with_default_fallbacks (String iconname) : Gio.Icon
Creates a new themed icon for iconname, and all the names
that can be created by shortening iconname at '-' characters.
Gio.UnixMountPoint
Method
guess_icon () : Gio.Icon
Guesses the icon of a Unix mount point.
Gio.Volume
Method
get_icon () : Gio.Icon
Gets the icon for volume.
Gtk.Action
Property
gicon : Gio.Icon
The GIcon displayed in the GtkAction.
Gtk.Action
Method
get_gicon () : Gio.Icon
Gets the gicon of action.
Gtk.Action
Method
set_gicon (Icon icon) : none
Sets the icon of action.
Gtk.AppChooserButton
Method
append_custom_item (String name, String label, Icon icon) : none
Appends a custom item to the list of applications that is shown
in the popup; the item name must be unique per-widget.
Gtk.CellRendererPixbuf
Property
gicon : Gio.Icon
The GIcon representing the icon to display.
Gtk.Entry
Property
primary_icon_gicon : Gio.Icon
The GIcon to use for the primary icon for the entry.
Gtk.Entry
Property
secondary_icon_gicon : Gio.Icon
The GIcon to use for the secondary icon for the entry.
Gtk.Entry
Method
get_icon_gicon (EntryIconPosition icon_pos) : Gio.Icon
Retrieves the GIcon used for the icon, or NULL if there is
no icon or if the icon was set by some other method (e.g.
Gtk.Entry
Method
set_icon_from_gicon (EntryIconPosition icon_pos, Icon icon) : none
Sets the icon shown in the entry at the specified position
from the current icon theme.
Gtk.IconTheme
Method
lookup_by_gicon (Icon icon, gint32 size, IconLookupFlags flags) : Gtk.IconInfo
Looks up an icon and returns a structure containing
information such as the filename of the icon.
Gtk.Image
Property
gicon : Gio.Icon
The GIcon displayed in the GtkImage.
Gtk.Image
Method
new Gtk.Image.from_gicon (Icon icon, gint32 size) : Gtk.Widget
Create a new Gtk.Image
Gtk.Image
Method
get_gicon () : Object
Gets the GIcon and size being displayed by the GtkImage.
Gtk.Image
Method
set_from_gicon (Icon icon, gint32 size) : none
See gtk_image_new_from_gicon() for details.
Gtk.NumerableIcon
Property
background_icon : Gio.Icon
Gtk.NumerableIcon
Method
Gtk.NumerableIcon.c_new (Icon base_icon) : Gio.Icon
Creates a new unthemed GtkNumerableIcon.
Gtk.NumerableIcon
Method
Gtk.NumerableIcon.new_with_style_context (Icon base_icon, StyleContext context) : Gio.Icon
Creates a new GtkNumerableIcon which will themed according
to the passed GtkStyleContext.
Gtk.NumerableIcon
Method
get_background_gicon () : Gio.Icon
Returns the GIcon that was set as the base background image, or
NULL if there's none.
Gtk.NumerableIcon
Method
set_background_gicon (Icon icon) : none
Updates the icon to use icon as the base background image.
Gtk.RecentInfo
Method
get_gicon () : Gio.Icon
Retrieves the icon associated to the resource MIME type.
Gtk.StatusIcon
Property
gicon : Gio.Icon
The GIcon displayed in the GtkStatusIcon.
Gtk.StatusIcon
Method
new Gtk.StatusIcon.from_gicon (Icon icon) : Gtk.StatusIcon
Create a new Gtk.StatusIcon
Gtk.StatusIcon
Method
get_gicon () : Gio.Icon
Retrieves the GIcon being displayed by the GtkStatusIcon.
Gtk.StatusIcon
Method
set_from_gicon (Icon icon) : none
Makes status_icon display the GIcon.
Gtk.Tooltip
Method
set_icon_from_gicon (Icon gicon, gint32 size) : none
Sets the icon of the tooltip (which is in front of the text)
to be the icon indicated by gicon with the size indicated
by size.
GtkSource.GutterRendererPixbuf
Property
gicon : Gio.Icon
GtkSource.GutterRendererPixbuf
Method
get_gicon () : Gio.Icon
GtkSource.GutterRendererPixbuf
Method
set_gicon (Icon icon) : none
GtkSource.MarkAttributes
Property
gicon : Gio.Icon
GtkSource.MarkAttributes
Method
get_gicon () : Gio.Icon
GtkSource.MarkAttributes
Method
set_gicon (Icon gicon) : none
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:22 GMT+0800 (HKT)