Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | awn_icon_new () |
void | awn_icon_set_pos_type () |
GtkPositionType | awn_icon_get_pos_type () |
void | awn_icon_set_offset () |
gint | awn_icon_get_offset () |
void | awn_icon_set_effect () |
void | awn_icon_set_from_pixbuf () |
void | awn_icon_set_from_context () |
void | awn_icon_set_from_surface () |
void | awn_icon_set_custom_paint () |
AwnTooltip * | awn_icon_get_tooltip () |
void | awn_icon_set_tooltip_text () |
gchar * | awn_icon_get_tooltip_text () |
void | awn_icon_set_is_active () |
gboolean | awn_icon_get_is_active () |
void | awn_icon_set_indicator_count () |
gint | awn_icon_get_indicator_count () |
gboolean | awn_icon_get_hover_effects () |
void | awn_icon_set_hover_effects () |
void | awn_icon_clicked () |
void | awn_icon_middle_clicked () |
gboolean | bind-effects | Read / Write / Construct Only |
gint | icon-height | Read / Write |
gint | icon-width | Read / Write |
gint | long-press-timeout | Read / Write / Construct |
void | clicked | Action |
void | context-menu-popup | Action |
void | long-press | Action |
void | middle-clicked | Action |
void | size-changed | Run First |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkDrawingArea ╰── AwnIcon ╰── AwnThemedIcon
void awn_icon_set_pos_type (AwnIcon *icon
,GtkPositionType position
);
Sets position of the icon.
void awn_icon_set_offset (AwnIcon *icon
,gint offset
);
Sets offset of the icon.
void awn_icon_set_effect (AwnIcon *icon
,AwnEffect effect
);
Sets effect on the icon. Note that the effect will loop until
awn_effects_stop()
is called.
void awn_icon_set_from_pixbuf (AwnIcon *icon
,GdkPixbuf *pixbuf
);
Sets the icon from the given pixbuf. Note that a copy of the pixbuf is made.
void awn_icon_set_from_context (AwnIcon *icon
,cairo_t *ctx
);
Extracts the icon from the cairo surface associated with given cairo
context. Note that the surface is only referenced, so any later changes
made to it will change the icon as well
(after a call to gtk_widget_queue_draw()
).
void awn_icon_set_from_surface (AwnIcon *icon
,cairo_surface_t *surface
);
Sets the icon from the given cairo surface. Note that the surface is only
referenced, so any later changes made to it will change the icon as well
(after a call to gtk_widget_queue_draw()
).
void awn_icon_set_custom_paint (AwnIcon *icon
,gint width
,gint height
);
Prepares the icon for custom painting (by overriding “expose-event”). Sets proper size requisition, tooltip position, parameters for AwnEffects and may emit size changed signal.
awn_icon_set_custom_paint()
with the original dimensions of the icon will
restore the icon.
AwnTooltip *
awn_icon_get_tooltip (AwnIcon *icon
);
Gets the AwnTooltip associated with this icon.
void awn_icon_set_tooltip_text (AwnIcon *icon
,const gchar *text
);
Sets tooltip message.
gchar *
awn_icon_get_tooltip_text (AwnIcon *icon
);
Gets the message currently set for the associated AwnTooltip. The caller is responsible for freeing the string.
void awn_icon_set_is_active (AwnIcon *icon
,gboolean is_active
);
Sets whether the icon is active (if it is paints a rectangle around the icon by default).
gboolean
awn_icon_get_is_active (AwnIcon *icon
);
Gets whether the icon is active.
void awn_icon_set_indicator_count (AwnIcon *icon
,gint count
);
Paints an indicator (or multiple) on the border of icon.
gint
awn_icon_get_indicator_count (AwnIcon *icon
);
Gets number of indicators set for this icon.
“bind-effects”
property “bind-effects” gboolean
If set to true, will load and bind effect property values from config client.
Flags: Read / Write / Construct Only
Default value: TRUE
“icon-height”
property “icon-height” gint
Current icon height.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“icon-width”
property “icon-width” gint
Current icon width.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“clicked”
signalvoid user_function (AwnIcon *awnicon, gpointer user_data)
awnicon |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“context-menu-popup”
signalvoid user_function (AwnIcon *awnicon, GdkEvent *arg1, gpointer user_data)
awnicon |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“long-press”
signalvoid user_function (AwnIcon *awnicon, gpointer user_data)
awnicon |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“middle-clicked”
signalvoid user_function (AwnIcon *awnicon, gpointer user_data)
awnicon |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“size-changed”
signalvoid user_function (AwnIcon *awnicon, gpointer user_data)
awnicon |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First