Basics
Guides
API Reference
Basics
Guides
API Reference
[219:14] static extends: object
Generated metadata helpers for IconPaintable class surfaces.
properties ()
Returns property metadata for
IconPaintable.
A list.[14:7] extends: object
Contains information found when looking up an icon in GtkIconTheme or
loading it from a file. GtkIconPaintable implements GdkPaintable and
GtkSymbolicPaintable.
IconPaintable (file = null, size = null, scale = null)
Creates a
GtkIconPaintablefor a file with a given size and scale. The icon can then be rendered by using it as aGdkPaintable.
file is a GFile.size is desired icon size, in application pixels.scale is the desired scale.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.asPaintable ()
Wraps this handle as
Paintable.
A Paintable object.asSymbolicPaintable ()
Wraps this handle as
SymbolicPaintable.
A SymbolicPaintable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setIssymbolic (bool Value)
Whether the icon is symbolic or not.
Value is the new property value.None.setScale (int Value)
Writes the
scaleproperty.
Value is the new property value.None.setSize (int Value)
Writes the
sizeproperty.
Value is the new property value.None.get_file ()
Gets the
GFilethat was used to load the icon. Returns %NULL if the icon was not loaded from a file.
get_icon_name ()
Get the icon name being used for this icon. When an icon looked up in the icon theme was not available, the icon theme may use fallback icons - either those specified to gtk_icon_theme_lookup_icon() or the always-available "image-missing". The icon chosen is returned by this function. If the icon was created without an icon theme, this function returns %NULL.
is_symbolic ()
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.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.