hildon-defines

hildon-defines — A collection of useful defines.

Synopsis

#define             HILDON_ICON_SIZE_XSMALL
#define             HILDON_ICON_SIZE_SMALL
#define             HILDON_ICON_SIZE_STYLUS
#define             HILDON_ICON_SIZE_FINGER
#define             HILDON_ICON_SIZE_THUMB
#define             HILDON_ICON_SIZE_LARGE
#define             HILDON_ICON_SIZE_XLARGE
#define             HILDON_ICON_SIZE_TOOLBAR
#define             HILDON_ICON_SIZE_WIZARD
#define             HILDON_ICON_SIZE_BIG_NOTE
#define             HILDON_ICON_SIZE_NOTE
#define             HILDON_ICON_PIXEL_SIZE_XSMALL
#define             HILDON_ICON_PIXEL_SIZE_SMALL
#define             HILDON_ICON_PIXEL_SIZE_STYLUS
#define             HILDON_ICON_PIXEL_SIZE_FINGER
#define             HILDON_ICON_PIXEL_SIZE_THUMB
#define             HILDON_ICON_PIXEL_SIZE_LARGE
#define             HILDON_ICON_PIXEL_SIZE_XLARGE
#define             HILDON_ICON_PIXEL_SIZE_TOOLBAR
#define             HILDON_ICON_PIXEL_SIZE_WIZARD
#define             HILDON_ICON_PIXEL_SIZE_BIG_NOTE
#define             HILDON_ICON_PIXEL_SIZE_NOTE
#define             HILDON_MARGIN_HALF
#define             HILDON_MARGIN_DEFAULT
#define             HILDON_MARGIN_DOUBLE
#define             HILDON_MARGIN_TRIPLE
#define             HILDON_HARDKEY_UP
#define             HILDON_HARDKEY_LEFT
#define             HILDON_HARDKEY_RIGHT
#define             HILDON_HARDKEY_DOWN
#define             HILDON_HARDKEY_SELECT
#define             HILDON_HARDKEY_MENU
#define             HILDON_HARDKEY_HOME
#define             HILDON_HARDKEY_ESC
#define             HILDON_HARDKEY_FULLSCREEN
#define             HILDON_HARDKEY_INCREASE
#define             HILDON_HARDKEY_DECREASE
gint                hildon_get_icon_pixel_size          (GtkIconSize size);

Description

Details

HILDON_ICON_SIZE_XSMALL

#define HILDON_ICON_SIZE_XSMALL                  gtk_icon_size_from_name ("hildon-xsmall")


HILDON_ICON_SIZE_SMALL

#define HILDON_ICON_SIZE_SMALL                   gtk_icon_size_from_name ("hildon-small")


HILDON_ICON_SIZE_STYLUS

#define HILDON_ICON_SIZE_STYLUS                  gtk_icon_size_from_name ("hildon-stylus")


HILDON_ICON_SIZE_FINGER

#define HILDON_ICON_SIZE_FINGER                  gtk_icon_size_from_name ("hildon-finger")


HILDON_ICON_SIZE_THUMB

#define HILDON_ICON_SIZE_THUMB                   gtk_icon_size_from_name ("hildon-thumb")


HILDON_ICON_SIZE_LARGE

#define HILDON_ICON_SIZE_LARGE                   gtk_icon_size_from_name ("hildon-large")


HILDON_ICON_SIZE_XLARGE

#define HILDON_ICON_SIZE_XLARGE                  gtk_icon_size_from_name ("hildon-xlarge")


HILDON_ICON_SIZE_TOOLBAR

#define             HILDON_ICON_SIZE_TOOLBAR


HILDON_ICON_SIZE_WIZARD

#define             HILDON_ICON_SIZE_WIZARD


HILDON_ICON_SIZE_BIG_NOTE

#define             HILDON_ICON_SIZE_BIG_NOTE


HILDON_ICON_SIZE_NOTE

#define             HILDON_ICON_SIZE_NOTE


HILDON_ICON_PIXEL_SIZE_XSMALL

#define             HILDON_ICON_PIXEL_SIZE_XSMALL


HILDON_ICON_PIXEL_SIZE_SMALL

#define             HILDON_ICON_PIXEL_SIZE_SMALL


HILDON_ICON_PIXEL_SIZE_STYLUS

#define             HILDON_ICON_PIXEL_SIZE_STYLUS


HILDON_ICON_PIXEL_SIZE_FINGER

#define             HILDON_ICON_PIXEL_SIZE_FINGER


HILDON_ICON_PIXEL_SIZE_THUMB

#define             HILDON_ICON_PIXEL_SIZE_THUMB


HILDON_ICON_PIXEL_SIZE_LARGE

#define             HILDON_ICON_PIXEL_SIZE_LARGE


HILDON_ICON_PIXEL_SIZE_XLARGE

#define             HILDON_ICON_PIXEL_SIZE_XLARGE


HILDON_ICON_PIXEL_SIZE_TOOLBAR

#define             HILDON_ICON_PIXEL_SIZE_TOOLBAR


HILDON_ICON_PIXEL_SIZE_WIZARD

#define             HILDON_ICON_PIXEL_SIZE_WIZARD


HILDON_ICON_PIXEL_SIZE_BIG_NOTE

#define             HILDON_ICON_PIXEL_SIZE_BIG_NOTE


HILDON_ICON_PIXEL_SIZE_NOTE

#define             HILDON_ICON_PIXEL_SIZE_NOTE


HILDON_MARGIN_HALF

#define                                         HILDON_MARGIN_HALF 4


HILDON_MARGIN_DEFAULT

#define                                         HILDON_MARGIN_DEFAULT 8


HILDON_MARGIN_DOUBLE

#define                                         HILDON_MARGIN_DOUBLE 16


HILDON_MARGIN_TRIPLE

#define                                         HILDON_MARGIN_TRIPLE 24


HILDON_HARDKEY_UP

#define                                         HILDON_HARDKEY_UP GDK_Up


HILDON_HARDKEY_LEFT

#define                                         HILDON_HARDKEY_LEFT GDK_Left


HILDON_HARDKEY_RIGHT

#define                                         HILDON_HARDKEY_RIGHT GDK_Right


HILDON_HARDKEY_DOWN

#define                                         HILDON_HARDKEY_DOWN GDK_Down


HILDON_HARDKEY_SELECT

#define                                         HILDON_HARDKEY_SELECT GDK_Return


HILDON_HARDKEY_MENU

#define                                         HILDON_HARDKEY_MENU GDK_F4


HILDON_HARDKEY_HOME

#define                                         HILDON_HARDKEY_HOME GDK_F5


HILDON_HARDKEY_ESC

#define                                         HILDON_HARDKEY_ESC GDK_Escape


HILDON_HARDKEY_FULLSCREEN

#define                                         HILDON_HARDKEY_FULLSCREEN GDK_F6


HILDON_HARDKEY_INCREASE

#define                                         HILDON_HARDKEY_INCREASE GDK_F7


HILDON_HARDKEY_DECREASE

#define                                         HILDON_HARDKEY_DECREASE GDK_F8


hildon_get_icon_pixel_size ()

gint                hildon_get_icon_pixel_size          (GtkIconSize size);

Returns the icon size (height) for the given, named icon. In most cases it's much more convienient to call one of the predefined macros instead of this function directly.

size : the icon size to get pixel size for
Returns : the height/width of icon to use. O if icon could not be found.