00001 /****************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2007 ACCESS Systems Americas, Inc. All rights reserved. 00004 *****************************************************************************/ 00010 #ifndef __ALP_TAPANDHOLDBUTTON_H__ 00011 #define __ALP_TAPANDHOLDBUTTON_H__ 00012 00013 #include <gdk/gdk.h> 00014 #include <gtk/gtk.h> 00015 #include <gtk/gtkbin.h> 00016 00017 G_BEGIN_DECLS 00018 00026 #define ALP_TYPE_TAPANDHOLDBUTTON (alp_tap_and_hold_button_get_type()) 00027 #define ALP_TAPANDHOLDBUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButton)) 00028 #define ALP_TAPANDHOLDBUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButtonClass)) 00029 #define ALP_IS_TAPANDHOLDBUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_TAPANDHOLDBUTTON)) 00030 #define ALP_IS_TAPANDHOLDBUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_TAPANDHOLDBUTTON)) 00031 #define ALP_TAPANDHOLDBUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButtonClass)) 00032 00033 typedef struct _AlpTapAndHoldButtonClass AlpTapAndHoldButtonClass; 00034 typedef struct _AlpTapAndHoldButton AlpTapAndHoldButton; 00035 typedef struct _AlpTapAndHoldButtonPrivate AlpTapAndHoldButtonPrivate; 00036 00037 struct _AlpTapAndHoldButtonClass { 00038 GtkButtonClass parent_class; 00039 00040 /* Signal handlers */ 00041 void (*tap_and_hold) (AlpTapAndHoldButton *button); 00042 }; 00043 00044 struct _AlpTapAndHoldButton { 00045 GtkButton button; 00046 00047 AlpTapAndHoldButtonPrivate *priv; 00048 }; 00049 00050 00055 GType alp_tap_and_hold_button_get_type(void) G_GNUC_CONST; 00056 00057 00062 GtkWidget *alp_tap_and_hold_button_new(); 00063 00064 00071 GtkWidget *alp_tap_and_hold_button_new_with_label(const gchar *label); 00072 00073 00080 GtkWidget *alp_tap_and_hold_button_new_from_stock(const gchar *stock_id); 00081 00082 00089 gboolean alp_tap_and_hold_button_get_emit_tap_and_hold(AlpTapAndHoldButton *button); 00090 00091 00098 void alp_tap_and_hold_button_set_emit_tap_and_hold(AlpTapAndHoldButton *button, 00099 gboolean emit_tap_and_hold); 00100 00101 00116 const gchar* alp_tap_and_hold_button_tap_and_hold_signal_string(); 00117 00118 00124 const gchar* alp_tap_and_hold_button_tap_and_hold_property_string(); 00125 00129 G_END_DECLS 00130 00131 #endif /* __ALP_TAPANDHOLDBUTTON_H__ */
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.