home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / include / gnt / gntbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-04  |  1.3 KB  |  56 lines

  1. #ifndef GNT_BUTTON_H
  2. #define GNT_BUTTON_H
  3.  
  4. #include <glib.h>
  5. #include <glib-object.h>
  6. #include "gnt.h"
  7. #include "gntwidget.h"
  8.  
  9. #define GNT_TYPE_BUTTON                (gnt_button_get_gtype())
  10. #define GNT_BUTTON(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BUTTON, GntButton))
  11. #define GNT_BUTTON_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BUTTON, GntButtonClass))
  12. #define GNT_IS_BUTTON(obj)            (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BUTTON))
  13. #define GNT_IS_BUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BUTTON))
  14. #define GNT_BUTTON_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BUTTON, GntButtonClass))
  15.  
  16. typedef struct _GntButton            GntButton;
  17. typedef struct _GntButtonPriv        GntButtonPriv;
  18. typedef struct _GntButtonClass        GntButtonClass;
  19.  
  20. struct _GntButtonPriv
  21. {
  22.     char *text;
  23. };
  24.  
  25. struct _GntButton
  26. {
  27.     GntWidget parent;
  28.  
  29.     GntButtonPriv *priv;
  30.  
  31.     void (*gnt_reserved1)(void);
  32.     void (*gnt_reserved2)(void);
  33.     void (*gnt_reserved3)(void);
  34.     void (*gnt_reserved4)(void);
  35. };
  36.  
  37. struct _GntButtonClass
  38. {
  39.     GntWidgetClass parent;
  40.  
  41.     void (*gnt_reserved1)(void);
  42.     void (*gnt_reserved2)(void);
  43.     void (*gnt_reserved3)(void);
  44.     void (*gnt_reserved4)(void);
  45. };
  46.  
  47. G_BEGIN_DECLS
  48.  
  49. GType gnt_button_get_gtype(void);
  50.  
  51. GntWidget *gnt_button_new(const char *text);
  52.  
  53. G_END_DECLS
  54.  
  55. #endif /* GNT_BUTTON_H */
  56.