AwnThemedIcon

AwnThemedIcon

Synopsis

struct              AwnThemedIcon;
struct              AwnThemedIconClass;
GtkWidget *         awn_themed_icon_new                 (void);
void                awn_themed_icon_set_state           (AwnThemedIcon *icon,
                                                         const gchar *state);
const gchar *       awn_themed_icon_get_state           (AwnThemedIcon *icon);
void                awn_themed_icon_set_size            (AwnThemedIcon *icon,
                                                         gint size);
gint                awn_themed_icon_get_size            (AwnThemedIcon *icon);
const gchar *       awn_themed_icon_get_default_theme_name
                                                        (AwnThemedIcon *icon);
void                awn_themed_icon_set_info            (AwnThemedIcon *icon,
                                                         const gchar *applet_name,
                                                         const gchar *uid,
                                                         GStrv states,
                                                         GStrv icon_names);
void                awn_themed_icon_set_info_simple     (AwnThemedIcon *icon,
                                                         const gchar *applet_name,
                                                         const gchar *uid,
                                                         const gchar *icon_name);
void                awn_themed_icon_set_info_append     (AwnThemedIcon *icon,
                                                         const gchar *state,
                                                         const gchar *icon_name);
void                awn_themed_icon_set_applet_info     (AwnThemedIcon *icon,
                                                         const gchar *applet_name,
                                                         const gchar *uid);
void                awn_themed_icon_override_gtk_theme  (AwnThemedIcon *icon,
                                                         const gchar *theme_name);
GdkPixbuf *         awn_themed_icon_get_icon_at_size    (AwnThemedIcon *icon,
                                                         gint size,
                                                         const gchar *state);
void                awn_themed_icon_clear_icons         (AwnThemedIcon *icon,
                                                         gint scope);
void                awn_themed_icon_clear_info          (AwnThemedIcon *icon);
void                awn_themed_icon_preload_icon        (AwnThemedIcon *icon,
                                                         gchar *state,
                                                         gint size);
GtkIconTheme *      awn_themed_icon_get_awn_theme       (AwnThemedIcon *icon);
GtkWidget *         awn_themed_icon_create_custom_icon_item
                                                        (AwnThemedIcon *icon,
                                                         const gchar *icon_name);
GtkWidget *         awn_themed_icon_create_remove_custom_icon_item
                                                        (AwnThemedIcon *icon,
                                                         const gchar *icon_name);
void                awn_themed_icon_drag_data_received  (GtkWidget *widget,
                                                         GdkDragContext *context,
                                                         gint x,
                                                         gint y,
                                                         GtkSelectionData *selection_data,
                                                         guint info,
                                                         guint evt_time);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkDrawingArea
                           +----AwnIcon
                                 +----AwnThemedIcon

Implemented Interfaces

AwnThemedIcon implements AtkImplementorIface, GtkBuildable and AwnOverlayable.

Properties

  "applet-name"              gchar*                : Read / Write / Construct
  "drag-and-drop"            gboolean              : Read / Write / Construct
  "rotate"                   GdkPixbufRotation     : Read / Write / Construct

Description

Details

struct AwnThemedIcon

struct AwnThemedIcon;


struct AwnThemedIconClass

struct AwnThemedIconClass {
    AwnIconClass parent_class;

    /*< padding >*/
    void (*_themed_icon_padding0)(AwnThemedIcon* icon);
    void (*_themed_icon_padding1)(AwnThemedIcon* icon);
    void (*_themed_icon_padding2)(AwnThemedIcon* icon);
    void (*_themed_icon_padding3)(AwnThemedIcon* icon);
};


awn_themed_icon_new ()

GtkWidget *         awn_themed_icon_new                 (void);


awn_themed_icon_set_state ()

void                awn_themed_icon_set_state           (AwnThemedIcon *icon,
                                                         const gchar *state);


awn_themed_icon_get_state ()

const gchar *       awn_themed_icon_get_state           (AwnThemedIcon *icon);


awn_themed_icon_set_size ()

void                awn_themed_icon_set_size            (AwnThemedIcon *icon,
                                                         gint size);


awn_themed_icon_get_size ()

gint                awn_themed_icon_get_size            (AwnThemedIcon *icon);


awn_themed_icon_get_default_theme_name ()

const gchar *       awn_themed_icon_get_default_theme_name
                                                        (AwnThemedIcon *icon);


awn_themed_icon_set_info ()

void                awn_themed_icon_set_info            (AwnThemedIcon *icon,
                                                         const gchar *applet_name,
                                                         const gchar *uid,
                                                         GStrv states,
                                                         GStrv icon_names);


awn_themed_icon_set_info_simple ()

void                awn_themed_icon_set_info_simple     (AwnThemedIcon *icon,
                                                         const gchar *applet_name,
                                                         const gchar *uid,
                                                         const gchar *icon_name);


awn_themed_icon_set_info_append ()

void                awn_themed_icon_set_info_append     (AwnThemedIcon *icon,
                                                         const gchar *state,
                                                         const gchar *icon_name);


awn_themed_icon_set_applet_info ()

void                awn_themed_icon_set_applet_info     (AwnThemedIcon *icon,
                                                         const gchar *applet_name,
                                                         const gchar *uid);


awn_themed_icon_override_gtk_theme ()

void                awn_themed_icon_override_gtk_theme  (AwnThemedIcon *icon,
                                                         const gchar *theme_name);


awn_themed_icon_get_icon_at_size ()

GdkPixbuf *         awn_themed_icon_get_icon_at_size    (AwnThemedIcon *icon,
                                                         gint size,
                                                         const gchar *state);


awn_themed_icon_clear_icons ()

void                awn_themed_icon_clear_icons         (AwnThemedIcon *icon,
                                                         gint scope);


awn_themed_icon_clear_info ()

void                awn_themed_icon_clear_info          (AwnThemedIcon *icon);


awn_themed_icon_preload_icon ()

void                awn_themed_icon_preload_icon        (AwnThemedIcon *icon,
                                                         gchar *state,
                                                         gint size);


awn_themed_icon_get_awn_theme ()

GtkIconTheme *      awn_themed_icon_get_awn_theme       (AwnThemedIcon *icon);


awn_themed_icon_create_custom_icon_item ()

GtkWidget *         awn_themed_icon_create_custom_icon_item
                                                        (AwnThemedIcon *icon,
                                                         const gchar *icon_name);


awn_themed_icon_create_remove_custom_icon_item ()

GtkWidget *         awn_themed_icon_create_remove_custom_icon_item
                                                        (AwnThemedIcon *icon,
                                                         const gchar *icon_name);


awn_themed_icon_drag_data_received ()

void                awn_themed_icon_drag_data_received  (GtkWidget *widget,
                                                         GdkDragContext *context,
                                                         gint x,
                                                         gint y,
                                                         GtkSelectionData *selection_data,
                                                         guint info,
                                                         guint evt_time);

Property Details

The "applet-name" property

  "applet-name"              gchar*                : Read / Write / Construct

Applet Name.

Default value: NULL


The "drag-and-drop" property

  "drag-and-drop"            gboolean              : Read / Write / Construct

Enable drag and drop.

Default value: TRUE


The "rotate" property

  "rotate"                   GdkPixbufRotation     : Read / Write / Construct

Rotation of the icon.

Default value: GDK_PIXBUF_ROTATE_NONE