| libawn Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
enum AwnEffect; gboolean (*AwnEffectsOpfn) (AwnEffects *fx,GtkAllocation *alloc,gpointer user_data); #define AWN_EFFECTS_ACTIVE_RECT_PADDING AwnEffectsOp; struct AwnEffects; struct AwnEffectsClass; AwnEffects * awn_effects_new_for_widget (GtkWidget *widget); void awn_effects_start (AwnEffects *fx,const AwnEffect effect); void awn_effects_stop (AwnEffects *fx,const AwnEffect effect); void awn_effects_start_ex (AwnEffects *fx,const AwnEffect effect,gint max_loops,gboolean signal_start,gboolean signal_end); void awn_effects_set_icon_size (AwnEffects *fx,gint width,gint height,gboolean requestSize); cairo_t * awn_effects_cairo_create (AwnEffects *fx); cairo_t * awn_effects_cairo_create_clipped (AwnEffects *fx,GdkEventExpose *event); void awn_effects_cairo_destroy (AwnEffects *fx); void awn_effects_add_overlay (AwnEffects *fx,AwnOverlay *overlay); void awn_effects_remove_overlay (AwnEffects *fx,AwnOverlay *overlay); GList * awn_effects_get_overlays (AwnEffects *fx); void awn_effects_redraw (AwnEffects *fx); void awn_effects_main_effect_loop (AwnEffects *fx); void awn_effects_emit_anim_start (AwnEffects *fx,AwnEffect effect); void awn_effects_emit_anim_end (AwnEffects *fx,AwnEffect effect);
"active" gboolean : Read / Write / Construct "active-rect-color" DesktopAgnosticColor* : Read / Write "active-rect-outline" DesktopAgnosticColor* : Read / Write "arrow-png" gchar* : Read / Write / Construct "arrows-count" gint : Read / Write / Construct "border-clip" gint : Read / Write / Construct "custom-active-png" gchar* : Read / Write / Construct "depressed" gboolean : Read / Write / Construct "dot-color" DesktopAgnosticColor* : Read / Write "effects" gint : Read / Write / Construct "icon-alpha" gfloat : Read / Write / Construct "icon-offset" gint : Read / Write / Construct "indirect-paint" gboolean : Read / Write / Construct "make-shadow" gboolean : Read / Write / Construct "no-clear" gboolean : Read / Write / Construct "position" GtkPositionType : Read / Write / Construct "progress" gfloat : Read / Write / Construct "reflection-alpha" gfloat : Read / Write / Construct "reflection-offset" gint : Read / Write / Construct "reflection-visible" gboolean : Read / Write / Construct "spotlight-png" gchar* : Read / Write / Construct "widget" GtkWidget* : Read / Write
typedef enum {
AWN_EFFECT_NONE = 0,
AWN_EFFECT_OPENING = 1,
AWN_EFFECT_CLOSING = 2,
AWN_EFFECT_HOVER = 3,
AWN_EFFECT_LAUNCHING = 4,
AWN_EFFECT_ATTENTION = 5,
AWN_EFFECT_DESATURATE
} AwnEffect;
gboolean (*AwnEffectsOpfn) (AwnEffects *fx,GtkAllocation *alloc,gpointer user_data);
struct AwnEffects;
Class containing all necessary variables for effects state for particular widget.
struct AwnEffectsClass {
GObjectClass parent_class;
void (*animation_start)(AwnEffects* fx, AwnEffect effect);
void (*animation_end)(AwnEffects* fx, AwnEffect effect);
GPtrArray* animations;
GData* custom_icons;
};
void awn_effects_start_ex (AwnEffects *fx,const AwnEffect effect,gint max_loops,gboolean signal_start,gboolean signal_end);
void awn_effects_set_icon_size (AwnEffects *fx,gint width,gint height,gboolean requestSize);
cairo_t * awn_effects_cairo_create_clipped (AwnEffects *fx,GdkEventExpose *event);
void awn_effects_remove_overlay (AwnEffects *fx,AwnOverlay *overlay);
"active" property"active" gboolean : Read / Write / Construct
Determines whether to draw active hint around icon.
Default value: FALSE
"active-rect-color" property "active-rect-color" DesktopAgnosticColor* : Read / Write
Color used for painting active rectangle.
"active-rect-outline" property "active-rect-outline" DesktopAgnosticColor* : Read / Write
Color used for painting outline of active rectangle.
"arrow-png" property"arrow-png" gchar* : Read / Write / Construct
Icon to draw when arrows-count is more than 0.
Default value: "__awn_internal_arrow1"
"arrows-count" property"arrows-count" gint : Read / Write / Construct
Number of arrows to draw.
Allowed values: >= 0
Default value: 0
"border-clip" property"border-clip" gint : Read / Write / Construct
Clips border of the icon.
Allowed values: >= 0
Default value: 0
"custom-active-png" property"custom-active-png" gchar* : Read / Write / Construct
Custom icon to draw when in active state.
Default value: NULL
"depressed" property"depressed" gboolean : Read / Write / Construct
Determines whether to draw the icon slightly desaturated.
Default value: FALSE
"dot-color" property "dot-color" DesktopAgnosticColor* : Read / Write
Color used for painting glowing dot.
"effects" property"effects" gint : Read / Write / Construct
Active effects set for this instance.
Default value: 0
"icon-alpha" property"icon-alpha" gfloat : Read / Write / Construct
Alpha value of drawn icon.
Allowed values: [0,1]
Default value: 1
"icon-offset" property"icon-offset" gint : Read / Write / Construct
Offset of drawn icon to window border.
Default value: 0
"indirect-paint" property"indirect-paint" gboolean : Read / Write / Construct
Determines whether to apply transforms directly on the window or paint to a buffer instead.
Default value: TRUE
"make-shadow" property"make-shadow" gboolean : Read / Write / Construct
Determines whether shadow is drawn around icon.
Default value: FALSE
"no-clear" property"no-clear" gboolean : Read / Write / Construct
Don't clear background to transparent.
Default value: TRUE
"position" property"position" GtkPositionType : Read / Write / Construct
Icon position.
Default value: GTK_POS_BOTTOM
"progress" property"progress" gfloat : Read / Write / Construct
Value displayed on extra progress pie drawn on the icon.
Allowed values: [0,1]
Default value: 1
"reflection-alpha" property"reflection-alpha" gfloat : Read / Write / Construct
Alpha value of drawn reflection.
Allowed values: [0,1]
Default value: 0.25
"reflection-offset" property"reflection-offset" gint : Read / Write / Construct
Offset of drawn reflection to icon.
Default value: 0
"reflection-visible" property"reflection-visible" gboolean : Read / Write / Construct
Determines whether reflection is visible.
Default value: TRUE
"spotlight-png" property"spotlight-png" gchar* : Read / Write / Construct
Icon to draw for the spotlight effect.
Default value: "__awn_internal_spotlight"
"animation-end" signalvoid user_function (AwnEffects *awneffects,
AwnEffect arg1,
gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"animation-start" signalvoid user_function (AwnEffects *awneffects,
AwnEffect arg1,
gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |