![]() |
![]() |
![]() |
hildon-extras Reference Manual | |
---|---|---|---|---|
void he_helper_vibrate (osso_context_t *context, const gchar *vibration_pattern, const gboolean activate); void he_helper_led (osso_context_t *context, const gchar *led_pattern, const gboolean activate); void he_helper_accelerometer_enable (osso_context_t *context); void he_helper_accelerometer_disable (osso_context_t *context); gboolean he_helper_request_orientation (osso_context_t *context); void he_helper_show_cursor (GtkWidget *widget); void he_helper_hide_cursor (GtkWidget *widget); void he_helper_tap_and_hold_setup (GtkWidget *widget, gulong *tap_and_hold_id, gulong *button_press_event_id); #define HE_FONT_SYSTEM_FONT #define HE_FONT_EMP_SYSTEM_FONT #define HE_FONT_SMALL_SYSTEM_FONT #define HE_FONT_EMP_SMALL_SYSTEM_FONT #define HE_FONT_LARGE_SYSTEM_FONT #define HE_FONT_X_LARGE_SYSTEM_FONT #define HE_FONT_XX_LARGE_SYSTEM_FONT #define HE_FONT_XXX_LARGE_SYSTEM_FONT #define HE_FONT_HOME_SYSTEM_FONT gchar* he_helper_get_logical_font_desc (const gchar *name); #define HE_COLOR_DEFAULT_BACKGROUND #define HE_COLOR_DEFAULT_TEXT #define HE_COLOR_SECONDARY_TEXT #define HE_COLOR_ACTIVE_TEXT #define HE_COLOR_SELECTION #define HE_COLOR_PAINTED_TEXT #define HE_COLOR_DISABLED_TEXT #define HE_COLOR_DEFAULT_BACKGROUND_REVERSED #define HE_COLOR_DEFAULT_TEXT_REVERSED #define HE_COLOR_SECONDARY_TEXT_REVERSED #define HE_COLOR_ACTIVE_TEXT_REVERSED #define HE_COLOR_SELECTION_REVERSED #define HE_COLOR_PAINTED_TEXT_REVERSED #define HE_COLOR_DISABLED_TEXT_REVERSED #define HE_COLOR_CONTENT_BACKGROUND #define HE_COLOR_CONTENT_FRAME #define HE_COLOR_CONTENT_SELECTION #define HE_COLOR_TITLE_TEXT #define HE_COLOR_BUTTON_TEXT #define HE_COLOR_BUTTON_TEXT_PRESSED #define HE_COLOR_BUTTON_TEXT_DISABLED #define HE_COLOR_ACCENT_1 #define HE_COLOR_ACCENT_2 #define HE_COLOR_ACCENT_3 #define HE_COLOR_ATTENTION #define HE_COLOR_NOTIFICATION_BACKGROUND #define HE_COLOR_NOTIFIACTION_TEXT #define HE_COLOR_NOTIFICATION_SECONDARY_TEXT gchar* he_helper_get_logical_font_color (const gchar *name);
void he_helper_vibrate (osso_context_t *context, const gchar *vibration_pattern, const gboolean activate);
Tells MCE (Mode Control Entity) to activate/deactivate a vibration pattern.
context : |
An osso_initialize() d osso_context_t.
|
vibration_pattern : |
A vibration pattern from /etc/mce/mce.ini. |
activate : |
Activate pattern if TRUE; deactivate pattern if FALSE. |
void he_helper_led (osso_context_t *context, const gchar *led_pattern, const gboolean activate);
Tells MCE (Mode Control Entity) to activate/deactivate an LED pattern.
context : |
An osso_initialize() d osso_context_t.
|
led_pattern : |
An LED pattern from /etc/mce/mce.ini. Required for both activation/deactivation. |
activate : |
Activate pattern if TRUE; deactivate pattern if FALSE. |
void he_helper_accelerometer_enable (osso_context_t *context);
Tells MCE (Mode Control Entity) to enable the accelerometer so that you can listen for the sig_device_orientation_ind signal to be notified of orientation changes.
context : |
An osso_initialize() d osso_context_t.
|
void he_helper_accelerometer_disable (osso_context_t *context);
Tells MCE (Mode Control Entity) to disable the accelerometer.
context : |
An osso_initialize() d osso_context_t.
|
gboolean he_helper_request_orientation (osso_context_t *context);
Returns the current physical orientation of the device.
context : |
An osso_initialize() d osso_context_t.
|
Returns : | TRUE if in portrait; FALSE if otherwise. |
void he_helper_show_cursor (GtkWidget *widget);
Shows a cursor on the screen, for a window. Its method of getting the x and y coordinate is dodgy - please fix...
widget : |
void he_helper_hide_cursor (GtkWidget *widget);
Hides a cursor on the screen, for a window.
widget : |
void he_helper_tap_and_hold_setup (GtkWidget *widget, gulong *tap_and_hold_id, gulong *button_press_event_id);
Fakes a 3rd-button press when tap-and-hold is done on widget
.
widget : |
A GtkWidget for which to activate tap-and-hold for. |
tap_and_hold_id : |
location to store the tap-and-hold signal handler's ID; pass NULL if the value is to be discarded |
button_press_event_id : |
location to store the button-press-event signal handler's ID; pass NULL if the value is to be discarded |
gchar* he_helper_get_logical_font_desc (const gchar *name);
name : |
The logical font name (see he-helper.h for possible values) |
Returns : | a newly-allocated string that contains the string representation
of the Pango font description for the given logical string. This can be
used in the font_desc attribute of span elements in Pango markup.
This function should be used to get the font desc for Pango markup in
special use cases (e.g. GtkTreeView, mixed-content GtkLabel). If you
want to set a logical font directly on a widget, you can use
hildon_helper_set_logical_font (from Hildon 2.2) for this.
The return value should be freed with g_free() after use.
|
#define HE_COLOR_DEFAULT_BACKGROUND_REVERSED "ReversedDefaultBackgroundColor"
#define HE_COLOR_SECONDARY_TEXT_REVERSED "ReversedSecondaryTextColor"
#define HE_COLOR_NOTIFICATION_BACKGROUND "NotificationBackgroundColor"
#define HE_COLOR_NOTIFICATION_SECONDARY_TEXT "NotificationSecondaryTextColor"
gchar* he_helper_get_logical_font_color (const gchar *name);
name : |
The logical font color (see he-helper.h for possible values) |
Returns : | a newly-allocated string that contains the color value for the
requested logical color. This can be used in the foreground attribute of
span elements in Pango markup.
This function should be used to get the font color for Pango markup in
special use cases (e.g. GtkTreeView, mixed-content GtkLabel). If you
want to set a logical color directly on a widget, you can use
hildon_helper_set_logical_color (from Hildon 2.2) for this.
The return value should be freed with g_free() after use.
|