1 #ifndef __CB_BORDER_EFFECT_H__ 2 #define __CB_BORDER_EFFECT_H__ 3 4 #include <clutter/clutter.h> 5 6 GType cb_border_effect_get_type (void); 7 8 #define CB_TYPE_BORDER_EFFECT (cb_border_effect_get_type ()) 9 #define CB_BORDER_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ 10 CB_TYPE_BORDER_EFFECT, \ 11 CbBorderEffect)) 12 #define CB_IS_BORDER_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ 13 CB_TYPE_BORDER_EFFECT)) 14 #define CB_BORDER_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \ 15 CB_TYPE_BORDER_EFFECT, \ 16 CbBorderEffectClass)) 17 #define CB_IS_BORDER_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ 18 CB_TYPE_BORDER_EFFECT)) 19 #define CB_BORDER_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 20 CB_TYPE_BORDER_EFFECT, \ 21 CbBorderEffectClass)) 22 23 typedef struct _CbBorderEffectPrivate CbBorderEffectPrivate; 24 typedef struct _CbBorderEffect CbBorderEffect; 25 typedef struct _CbBorderEffectClass CbBorderEffectClass; 26 27 /* object */ 28 struct _CbBorderEffect 29 { 30 ClutterEffect parent_instance; 31 CbBorderEffectPrivate *priv; 32 }; 33 34 /* class */ 35 struct _CbBorderEffectClass 36 { 37 ClutterEffectClass parent_class; 38 }; 39 40 ClutterEffect *cb_border_effect_new (gfloat width, 41 const ClutterColor *color); 42 43 void cb_border_effect_set_color (CbBorderEffect *self, 44 const ClutterColor *color); 45 46 void cb_border_effect_get_color (CbBorderEffect *self, 47 ClutterColor *color); 48 49 void cb_border_effect_set_width (CbBorderEffect *self, 50 gfloat width); 51 52 gfloat cb_border_effect_get_width (CbBorderEffect *self); 53 54 #endif /* __CB_BORDER_EFFECT_H__ */ 55