IconSize
Description:
[ CCode ( cprefix = "GTK_ICON_SIZE_" , type_id = "gtk_icon_size_get_type ()" ) ]
public enum IconSize
Built-in stock icon sizes.
Content:
Enum values:
- BUTTON - Size appropriate for buttons (16px
)
- DIALOG - Size appropriate for dialogs (48px
)
- DND - Size appropriate for drag and drop (32px
)
- INVALID - Invalid size.
- LARGE_TOOLBAR - Size appropriate for
large toolbars (24px)
- MENU - Size appropriate for menus (16px).
- SMALL_TOOLBAR - Size appropriate for
small toolbars (16px).
Static methods:
- public static int from_name (string name)
Looks up the icon size associated with name
.
- public static unowned string get_name (int size)
Gets the canonical name of the given icon size.
- public static bool lookup (int size, out int width, out int height)
Obtains the pixel size of a semantic icon size size
:
MENU, BUTTON
, etc.
- public static bool lookup_for_settings (Settings settings, int size, out int width, out int height)
Obtains the pixel size of a semantic icon size, possibly modified by user
preferences for a particular Settings.
- public static int register (string name, int width, int height)
Registers a new icon size, along the same lines as
MENU, etc.
- public static void register_alias (string alias, int target)
Registers alias
as another name for target
.