include/alp/repeatbutton.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved.
00003  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00004  *****************************************************************************/
00011 #ifndef __ALP_REPEAT_BUTTON_H__
00012 #define __ALP_REPEAT_BUTTON_H__
00013 
00014 #include <gdk/gdk.h>
00015 #include <gtk/gtk.h>
00016 
00017 G_BEGIN_DECLS
00018 
00024 /* @{ */
00025 
00026 #define ALP_TYPE_REPEAT_BUTTON          (alp_repeat_button_get_type())
00027 #define ALP_REPEAT_BUTTON(obj)          (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_REPEAT_BUTTON, AlpRepeatButton))
00028 #define ALP_REPEAT_BUTTON_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_REPEAT_BUTTON, AlpRepeatButtonClass))
00029 #define ALP_IS_REPEAT_BUTTON(obj)               (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_REPEAT_BUTTON))
00030 #define ALP_IS_REPEAT_BUTTON_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_REPEAT_BUTTON))
00031 #define ALP_REPEAT_BUTTON_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_REPEAT_BUTTON, AlpRepeatButtonClass))
00032                                          
00033 typedef struct _AlpRepeatButton AlpRepeatButton;
00034 typedef struct _AlpRepeatButtonClass AlpRepeatButtonClass;
00035 
00036 struct _AlpRepeatButtonClass {
00037   GtkButtonClass parent_class;
00038 };
00039 
00040 struct _AlpRepeatButton {
00041   GtkButton button;
00042   gint init_delay;
00043   gint delay;
00044   guint timer;
00045   guint timer_first: 1;
00046 };
00047 
00053 GType          alp_repeat_button_get_type           (void) G_GNUC_CONST;
00054 
00059 GtkWidget*     alp_repeat_button_new                (void);
00060 
00065 GtkWidget*     alp_repeat_button_new_with_label  (const gchar   *label);
00066 /* @} */
00067 
00068 G_END_DECLS
00069 
00070 #endif /* __ALP_REPEAT_BUTTON_H__ */

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

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