Logo Search packages:      
Sourcecode: sanduhr version File versions  Download package

sand-window.h

/* Generated by GOB (v1.0.12)   (do not edit directly) */

#include <gtk/gtk.h>



#include <gnome.h>
#include <libgnomeui/gnome-canvas.h>

#ifndef __SAND_WINDOW_H__
#define __SAND_WINDOW_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


/*
 * Type checking and casting macros
 */
#define SAND_TYPE_WINDOW      (sand_window_get_type())
#define SAND_WINDOW(obj)      GTK_CHECK_CAST((obj), sand_window_get_type(), SandWindow)
#define SAND_WINDOW_CONST(obj)      GTK_CHECK_CAST((obj), sand_window_get_type(), SandWindow const)
#define SAND_WINDOW_CLASS(klass)    GTK_CHECK_CLASS_CAST((klass), sand_window_get_type(), SandWindowClass)
#define SAND_IS_WINDOW(obj)   GTK_CHECK_TYPE((obj), sand_window_get_type ())

#ifdef GTK_CHECK_GET_CLASS
#define SAND_WINDOW_GET_CLASS(obj)  GTK_CHECK_GET_CLASS((obj), sand_window_get_type(), SandWindowClass)
#else /* !GTK_CHECK_GET_CLASS */
#define SAND_WINDOW_GET_CLASS(obj)  ((SandWindowClass *)GTK_OBJECT(obj)->klass)
#endif /* GTK_CHECK_GET_CLASS */

/*
 * Main object structure
 */
#ifndef __TYPEDEF_SAND_WINDOW__
#define __TYPEDEF_SAND_WINDOW__
typedef struct _SandWindow SandWindow;
#endif
struct _SandWindow {
      GtkWindow __parent__;
      /*< public >*/
      int width;
      int height;
      gboolean decorations;
      GnomeWinLayer layer;
      GtkWidget * canvas;
      GnomeCanvasItem * back;
      GnomeCanvasItem * front;
      GnomeCanvasItem * mid;
      GdkImlibImage * sand;
      guint8 r;
      guint8 g;
      guint8 b;
      double ratio;
      /*< private >*/
      unsigned char * mask; /* protected */
      double A; /* protected */
      double B; /* protected */
      double fill; /* protected */
};

/*
 * Class definition
 */
typedef struct _SandWindowClass SandWindowClass;
struct _SandWindowClass {
      GtkWindowClass __parent__;
};


/*
 * Public methods
 */
GtkType     sand_window_get_type    (void) G_GNUC_CONST;
GtkWidget *       sand_window_new   (void);
GnomeWinLayer     sand_window_get_layer   (SandWindow * self);
void  sand_window_set_layer   (SandWindow * self,
                              GnomeWinLayer layer);
void  sand_window_get_color   (SandWindow * self,
                              guint8 * r,
                              guint8 * g,
                              guint8 * b);
void  sand_window_set_color   (SandWindow * self,
                              guint8 r,
                              guint8 g,
                              guint8 b);
void  sand_window_flood (SandWindow * self,
                              double q);

/*
 * Argument wrapping macros
 */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define SAND_WINDOW_ARG_DECORATIONS(arg)        "decorations",({gboolean z = (arg); z;})
#define SAND_WINDOW_GET_ARG_DECORATIONS(arg)    "decorations",({gboolean *z = (arg); z;})
#else /* __GNUC__ && !__STRICT_ANSI__ */
#define SAND_WINDOW_ARG_DECORATIONS(arg)        "decorations",(gboolean )(arg)
#define SAND_WINDOW_GET_ARG_DECORATIONS(arg)    "decorations",(gboolean *)(arg)
#endif /* __GNUC__ && !__STRICT_ANSI__ */


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif

Generated by  Doxygen 1.6.0   Back to index