gtk.icon_size
Module for [IconSize] enum namespace
struct IconSize
Types 1
structIconSize
Namespace for [IconSize] enum
Methods
string getName(gtk.types.IconSize size) static nothrowGets the canonical name of the given icon size. The returned string is statically allocated and should not be freed.bool lookup(gtk.types.IconSize size, out int width, out int height) static nothrowObtains the pixel size of a semantic icon size size: #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_BUTTON, etc. This function isn’t normally needed, [gtk.icon_theme.IconTheme.loadIcon] is the usual way to...bool lookupForSettings(gtk.settings.Settings settings, gtk.types.IconSize size, out int width, out int height) static nothrowObtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular #GtkSettings. Normally size would be #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_BUTTON, etc. This fu...gtk.types.IconSize register(string name, int width, int height) static nothrowRegisters a new icon size, along the same lines as #GTK_ICON_SIZE_MENU, etc. Returns the integer value for the size.void registerAlias(string alias_, gtk.types.IconSize target) static nothrowRegisters alias as another name for target. So calling [gtk.global.iconSizeFromName] with alias as argument will return target.