![]() |
![]() |
![]() |
libawn Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
struct AwnIcon; struct AwnIconClass; GtkWidget * awn_icon_new (void
); void awn_icon_set_pos_type (AwnIcon *icon
,GtkPositionType position
); GtkPositionType awn_icon_get_pos_type (AwnIcon *icon
); void awn_icon_set_offset (AwnIcon *icon
,gint offset
); gint awn_icon_get_offset (AwnIcon *icon
); void awn_icon_set_effect (AwnIcon *icon
,AwnEffect effect
); void awn_icon_set_from_pixbuf (AwnIcon *icon
,GdkPixbuf *pixbuf
); void awn_icon_set_from_context (AwnIcon *icon
,cairo_t *ctx
); void awn_icon_set_from_surface (AwnIcon *icon
,cairo_surface_t *surface
); void awn_icon_set_custom_paint (AwnIcon *icon
,gint width
,gint height
); AwnTooltip * awn_icon_get_tooltip (AwnIcon *icon
); void awn_icon_set_tooltip_text (AwnIcon *icon
,const gchar *text
); gchar * awn_icon_get_tooltip_text (AwnIcon *icon
); void awn_icon_set_is_active (AwnIcon *icon
,gboolean is_active
); gboolean awn_icon_get_is_active (AwnIcon *icon
); void awn_icon_set_indicator_count (AwnIcon *icon
,gint count
); gint awn_icon_get_indicator_count (AwnIcon *icon
); gboolean awn_icon_get_hover_effects (AwnIcon *icon
); void awn_icon_set_hover_effects (AwnIcon *icon
,gboolean enable
); GdkRegion * awn_icon_get_input_mask (AwnIcon *icon
); void awn_icon_clicked (AwnIcon *icon
); void awn_icon_middle_clicked (AwnIcon *icon
); void awn_icon_popup_gtk_menu (AwnIcon *icon
,GtkWidget *menu
,guint button
,guint32 activate_time
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkDrawingArea +----AwnIcon +----AwnThemedIcon
"bind-effects" gboolean : Read / Write / Construct Only "icon-height" gint : Read / Write "icon-width" gint : Read / Write "long-press-timeout" gint : Read / Write / Construct
"clicked" :Action
"context-menu-popup" :Action
"long-press" :Action
"middle-clicked" :Action
"size-changed" :Run First
struct AwnIconClass { GtkDrawingAreaClass parent_class; void (*size_changed)(AwnIcon* icon); void (*clicked)(AwnIcon* icon); void (*middle_clicked)(AwnIcon* icon); void (*long_press)(AwnIcon* icon); void (*context_menu_popup)(AwnIcon* icon, GdkEventButton* event); void (*icon_padding0)(AwnIcon* icon); void (*icon_padding1)(AwnIcon* icon); void (*icon_padding2)(AwnIcon* icon); void (*icon_padding3)(AwnIcon* icon); };
void awn_icon_set_from_surface (AwnIcon *icon
,cairo_surface_t *surface
);
void awn_icon_set_custom_paint (AwnIcon *icon
,gint width
,gint height
);
"bind-effects"
property"bind-effects" gboolean : Read / Write / Construct Only
If set to true, will load and bind effect property values from config client.
Default value: TRUE
"icon-height"
property"icon-height" gint : Read / Write
Current icon height.
Allowed values: >= 0
Default value: 0
"icon-width"
property"icon-width" gint : Read / Write
Current icon width.
Allowed values: >= 0
Default value: 0
"long-press-timeout"
property"long-press-timeout" gint : Read / Write / Construct
Timeout after which long-press signal is emit.
Allowed values: [250,10000]
Default value: 750
"clicked"
signalvoid user_function (AwnIcon *awnicon,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"context-menu-popup"
signalvoid user_function (AwnIcon *awnicon,
GdkEvent *arg1,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"long-press"
signalvoid user_function (AwnIcon *awnicon,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"middle-clicked"
signalvoid user_function (AwnIcon *awnicon,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |