gtk.icon_info

Module for [IconInfo] class

Types 3

Contains information found when looking up an icon in an icon theme.

Methods
GType _gType() @property
IconInfo self()Returns `this`, for use in `with` statements.
IconInfoGidBuilder builder()Get builder for [gtk.icon_info.IconInfo] Returns: New builder object
gtk.icon_info.IconInfo newForPixbuf(gtk.icon_theme.IconTheme iconTheme, gdkpixbuf.pixbuf.Pixbuf pixbuf)Creates a #GtkIconInfo for a #GdkPixbuf.
bool getAttachPoints(out gdk.types.Point[] points)This function is deprecated and always returns false.
int getBaseScale()Gets the base scale for the icon. The base scale is a scale for the icon that was specified by the icon theme creator. For instance an icon drawn for a high-dpi screen with window scale 2 for a bas...
int getBaseSize()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 ...
gdkpixbuf.pixbuf.Pixbuf getBuiltinPixbuf()Gets the built-in image for this icon, if any. To allow GTK+ to use built in icon images, you must pass the [gtk.types.IconLookupFlags.UseBuiltin] to [gtk.icontheme.IconTheme.lookupIcon]. Returns: ...
string getDisplayName()This function is deprecated and always returns null. Returns: null
bool getEmbeddedRect(out gdk.rectangle.Rectangle rectangle)This function is deprecated and always returns false.
string getFilename()Gets the filename for the icon. If the [gtk.types.IconLookupFlags.UseBuiltin] flag was passed to [gtk.icontheme.IconTheme.lookupIcon], there may be no filename if a builtin icon is returned; in thi...
bool isSymbolic()Checks if the icon is symbolic or not. This currently uses only the file name and not the file contents for determining this. This behaviour may change in the future. Returns: true if the icon is s...
gdkpixbuf.pixbuf.Pixbuf loadIcon()Renders an icon previously looked up in an icon theme using [gtk.icontheme.IconTheme.lookupIcon]; the size will be based on the size passed to [gtk.icontheme.IconTheme.lookupIcon]. Note that the re...
void loadIconAsync(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously load, render and scale an icon previously looked up from the icon theme using [gtk.icon_theme.IconTheme.lookupIcon].
gdkpixbuf.pixbuf.Pixbuf loadIconFinish(gio.async_result.AsyncResult res)Finishes an async icon load, see [gtk.icon_info.IconInfo.loadIconAsync].
cairo.surface.Surface loadSurface(gdk.window.Window forWindow = null)Renders an icon previously looked up in an icon theme using [gtk.icontheme.IconTheme.lookupIcon]; the size will be based on the size passed to [gtk.icontheme.IconTheme.lookupIcon]. Note that the re...
gdkpixbuf.pixbuf.Pixbuf loadSymbolic(gdk.rgba.RGBA fg, gdk.rgba.RGBA successColor, gdk.rgba.RGBA warningColor, gdk.rgba.RGBA errorColor, out bool wasSymbolic)Loads an icon, modifying it to match the system colours for the foreground, success, warning and error colors provided. If the icon is not a symbolic one, the function will return the result from [...
void loadSymbolicAsync(gdk.rgba.RGBA fg, gdk.rgba.RGBA successColor, gdk.rgba.RGBA warningColor, gdk.rgba.RGBA errorColor, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously load, render and scale a symbolic icon previously looked up from the icon theme using [gtk.icon_theme.IconTheme.lookupIcon].
gdkpixbuf.pixbuf.Pixbuf loadSymbolicFinish(gio.async_result.AsyncResult res, out bool wasSymbolic)Finishes an async icon load, see [gtk.icon_info.IconInfo.loadSymbolicAsync].
gdkpixbuf.pixbuf.Pixbuf loadSymbolicForContext(gtk.style_context.StyleContext context, out bool wasSymbolic)Loads an icon, modifying it to match the system colors for the foreground, success, warning and error colors provided. If the icon is not a symbolic one, the function will return the result from [g...
void loadSymbolicForContextAsync(gtk.style_context.StyleContext context, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously load, render and scale a symbolic icon previously looked up from the icon theme using [gtk.icon_theme.IconTheme.lookupIcon].
gdkpixbuf.pixbuf.Pixbuf loadSymbolicForContextFinish(gio.async_result.AsyncResult res, out bool wasSymbolic)Finishes an async icon load, see [gtk.icon_info.IconInfo.loadSymbolicForContextAsync].
gdkpixbuf.pixbuf.Pixbuf loadSymbolicForStyle(gtk.style.Style style, gtk.types.StateType state, out bool wasSymbolic)Loads an icon, modifying it to match the system colours for the foreground, success, warning and error colors provided. If the icon is not a symbolic one, the function will return the result from [...
void setRawCoordinates(bool rawCoordinates)Sets whether the coordinates returned by [gtk.iconinfo.IconInfo.getEmbeddedRect] and [gtk.iconinfo.IconInfo.getAttachPoints] should be returned in their original form as specified in the icon theme...
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gtk.icon_info.IconInfo]

Methods