![]() | ![]() | ![]() | GPE Manual: libgpewidget Reference | ![]() |
---|
GpeIconListItemGpeIconListItem — Icon item to use with GpeIconListView |
#define GPE_ICON_LIST_ITEM_CONST (obj) GPEIconListItem; GPEIconListItemClass; GObject* gpe_icon_list_item_new (); void gpe_icon_list_item_button_press (GPEIconListItem *i, GdkEventButton *b); void gpe_icon_list_item_button_release (GPEIconListItem *i, GdkEventButton *b); void gpe_icon_list_item_set_parent (GPEIconListItem *i, GPEIconListView *view); void gpe_icon_list_item_set_pixbuf (GPEIconListItem *i, GdkPixbuf *pixbuf); GdkPixbuf* gpe_icon_list_item_get_pixbuf (GPEIconListItem *i);
#define GPE_ICON_LIST_ITEM_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), gpe_icon_list_item_get_type(), GPEIconListItem const)
obj : |
typedef struct { GObject class; char *title; char *icon; gpointer udata; GdkPixbuf *pb; GdkPixbuf *pb_scaled; GPEIconListView *parent; } GPEIconListItem;
Object container for the GPEIconListItem widget.
typedef struct _GPEIconListItemClass GPEIconListItemClass;
Object class for the GPEIconListItem widget.
GObject* gpe_icon_list_item_new ();
Create a new item widget.
Returns : | New widget. |
void gpe_icon_list_item_button_press (GPEIconListItem *i, GdkEventButton *b);
Emit a button press event on a GPEIconListItem.
i : | Item |
b : | Button event to emit |
void gpe_icon_list_item_button_release (GPEIconListItem *i, GdkEventButton *b);
Emit a button release event on a GPEIconListItem.
i : | Item |
b : | Button event to emit |
void gpe_icon_list_item_set_parent (GPEIconListItem *i, GPEIconListView *view);
Change the GPEIconListView the item belongs to.
i : | Item to move. |
view : | GPEIconListView to move the item to. |
void gpe_icon_list_item_set_pixbuf (GPEIconListItem *i, GdkPixbuf *pixbuf);
Set the icon displayed by the item.
The pixbuf will be resized to the icon size defined by the GPEIconListView
the item belongs to. If an old icon exists its reference will be released by
gdk_pixbuf_unref()
.
i : | Item to alter. |
pixbuf : | New icon to associate with item. |
GdkPixbuf* gpe_icon_list_item_get_pixbuf (GPEIconListItem *i);
Returns the currently diplayed icon from a GPEIconListItem. This function alsways returns the icon with the currently displayed size.
i : | Item to get icon pixbuf from. |
Returns : | Pointer to GdkPixbuf containing the current icon. |
<< GtkSimpleMenu | GpeTimeSel >> |