![]() |
![]() |
![]() |
GPE Manual: libgpewidget Reference | ![]() |
---|---|---|---|---|
#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);
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.
void gpe_icon_list_item_button_press (GPEIconListItem *i,GdkEventButton *b);
Emit a button press event on a GPEIconListItem.
i : |
|
b : |
void gpe_icon_list_item_button_release (GPEIconListItem *i,GdkEventButton *b);
Emit a button release event on a GPEIconListItem.
i : |
|
b : |
void gpe_icon_list_item_set_parent (GPEIconListItem *i, GPEIconListView *view);
Change the GPEIconListView the item belongs to.
i : |
|
view : |
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 : |
|
pixbuf : |
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 : |
|
Returns : |