include/alp/max.h File Reference


Detailed Description

Header file for miscellaneous UI APIs.

#include <gtk/gtk.h>
#include <hiker/sysclass.h>

Go to the source code of this file.

Defines

#define ALP_STATUS_MAX_BAD_PARAMETER   ((alp_status_t)ALP_CLASS_MAX_WIDGETS | 0x00030000)
 An API parameter failed validation.
#define ALP_STATUS_REGISTER_CALLBACK_ERROR   ((alp_status_t)ALP_CLASS_MAX_WIDGETS | 0x00020000)
#define ALP_STATUS_REGISTER_POPUP_ERROR   ((alp_status_t)ALP_CLASS_MAX_WIDGETS | 0x00010000)

Typedefs

typedef void(* AlpLongPressCallback )(gpointer data, gint x, gint y, gint x_root, gint y_root)
typedef void(* AlpMaxWindowShownCallback )(gpointer data)

Enumerations

enum  AlpMaxActivationMethodType { ALP_MAX_ACTIVATE_DEFAULT = 0, ALP_MAX_ACTIVATE_BY_SINGLE, ALP_MAX_ACTIVATE_BY_DOUBLE }
 How to activate GtkTreeView and GtkIconView item by pointing devivce. More...

Functions

void alp_max_dialog_cancel_all (void)
 Cancel all active dialogs in the current process running via alp_max_dialog_run().
gint alp_max_dialog_run (GtkDialog *dialog)
 Runs a dialog using gtk_dialog_run, while tracking it for later cancellation.
void alp_max_gtk_init (void)
 Called by launchpads to initialize the UI-specific parts of GTK+.
void alp_max_set_window_shown_callback (GtkWindow *window, AlpMaxWindowShownCallback func, gpointer data)
 Register a handler to be called after a window is on-screen, to populate the window's contents.
alp_status_t alp_vol_set_strm_cls_vol_controlled (gchar *stream_type, gboolean vol_controlled)
 application use this interface to set which audio stream's volume expected to be controlled by "volume side key".
AlpMaxActivationMethodType alp_widget_get_activation_method (GtkWidget *widget)
 Get how to activate items.
alp_status_t alp_widget_register_long_press_callback (GtkWidget *widget, AlpLongPressCallback func, gpointer data)
 Register a generic callback function to be invoked whenever the user "long presses" on the specified widget. The function should be called once to register a callback that will be invoked whenever a long press occurs on the specified widget. The callback will be invoked anytime a long press occurs unless the function is called a second time with the func parameter set to NULL. Calling the function more than once with the func parameter set to a non-NULL value replaces the old callback function with a new one. The callback function is of type AlpLongPressCallback and receives two sets of coordinates, x and y, that provide the x and y location of the press event in the widget's window, and x_root and y_root, that provide the x and y location of the press event relative to the device's root window.
alp_status_t alp_widget_register_long_press_popup (GtkWidget *widget, GtkMenu *popup)
 Register a pop-up menu to be invoked whenever the user "long presses" on the specified widget. The function should be called once to register a pop-up menu that will be invoked whenever a long press occurs on the specified widget. The pop-up will be displayed anytime a long press occurs unless the function is called a second time with the menu parameter set to NULL. Calling the function more than once with the menu parameter set to a non-NULL value replaces the old pop-up menu with a new one.
void alp_widget_set_activation_method (GtkWidget *widget, AlpMaxActivationMethodType activation)
 Set how to activate items.


Generated on Wed Jul 30 07:06:40 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.