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

sand-window.h

/* Generated by GOB (v2.0.9)   (do not edit directly) */

#include <glib.h>
#include <glib-object.h>


#include <gtk/gtk.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)      G_TYPE_CHECK_INSTANCE_CAST((obj), sand_window_get_type(), SandWindow)
#define SAND_WINDOW_CONST(obj)      G_TYPE_CHECK_INSTANCE_CAST((obj), sand_window_get_type(), SandWindow const)
#define SAND_WINDOW_CLASS(klass)    G_TYPE_CHECK_CLASS_CAST((klass), sand_window_get_type(), SandWindowClass)
#define SAND_IS_WINDOW(obj)   G_TYPE_CHECK_INSTANCE_TYPE((obj), sand_window_get_type ())

#define SAND_WINDOW_GET_CLASS(obj)  G_TYPE_INSTANCE_GET_CLASS((obj), sand_window_get_type(), SandWindowClass)

/*
 * Main object structure
 */
#ifndef __TYPEDEF_SAND_WINDOW__
#define __TYPEDEF_SAND_WINDOW__
typedef struct _SandWindow SandWindow;
#endif
struct _SandWindow {
      GtkWindow __parent__;
      /*< public >*/
      char * theme;
      gboolean decorations;
      double flow;
      int width;
      int height;
      /*< private >*/
      double ratio; /* protected */
      GdkPixbuf * back; /* protected */
      GdkPixbuf * sand; /* protected */
      GdkPixbuf * front; /* protected */
      GdkPixbuf * sandmask; /* protected */
      guint8 r; /* protected */
      guint8 g; /* protected */
      guint8 b; /* protected */
      double waist_x; /* protected */
      double waist_y; /* protected */
      double A; /* protected */
      double B; /* protected */
      double volume; /* protected */
      double * linevol; /* protected */
};

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


/*
 * Public methods
 */
GType sand_window_get_type    (void);
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_set_ratio   (SandWindow * self,
                              double q);
void  sand_window_set_flow    (SandWindow * self,
                              double flow);

/*
 * Argument wrapping macros
 */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define SAND_WINDOW_PROP_THEME(arg)       "theme", __extension__ ({gchar *z = (arg); z;})
#define SAND_WINDOW_GET_PROP_THEME(arg)   "theme", __extension__ ({gchar **z = (arg); z;})
#define SAND_WINDOW_PROP_DECORATIONS(arg)       "decorations", __extension__ ({gboolean z = (arg); z;})
#define SAND_WINDOW_GET_PROP_DECORATIONS(arg)   "decorations", __extension__ ({gboolean *z = (arg); z;})
#define SAND_WINDOW_PROP_RATIO(arg)       "ratio", __extension__ ({gdouble z = (arg); z;})
#define SAND_WINDOW_GET_PROP_RATIO(arg)   "ratio", __extension__ ({gdouble *z = (arg); z;})
#define SAND_WINDOW_PROP_FLOW(arg)        "flow", __extension__ ({gdouble z = (arg); z;})
#define SAND_WINDOW_GET_PROP_FLOW(arg)    "flow", __extension__ ({gdouble *z = (arg); z;})
#else /* __GNUC__ && !__STRICT_ANSI__ */
#define SAND_WINDOW_PROP_THEME(arg)       "theme",(gchar *)(arg)
#define SAND_WINDOW_GET_PROP_THEME(arg)   "theme",(gchar **)(arg)
#define SAND_WINDOW_PROP_DECORATIONS(arg)       "decorations",(gboolean )(arg)
#define SAND_WINDOW_GET_PROP_DECORATIONS(arg)   "decorations",(gboolean *)(arg)
#define SAND_WINDOW_PROP_RATIO(arg)       "ratio",(gdouble )(arg)
#define SAND_WINDOW_GET_PROP_RATIO(arg)   "ratio",(gdouble *)(arg)
#define SAND_WINDOW_PROP_FLOW(arg)        "flow",(gdouble )(arg)
#define SAND_WINDOW_GET_PROP_FLOW(arg)    "flow",(gdouble *)(arg)
#endif /* __GNUC__ && !__STRICT_ANSI__ */


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif

Generated by  Doxygen 1.6.0   Back to index