gpeiconlistitem

gpeiconlistitem

Synopsis

#define             GPE_ICON_LIST_ITEM_CONST            (obj)
                    GPEIconListItem;
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);
                    GPEIconListItemClass;

Description

Details

GPE_ICON_LIST_ITEM_CONST()

#define GPE_ICON_LIST_ITEM_CONST(obj)	  G_TYPE_CHECK_INSTANCE_CAST ((obj), gpe_icon_list_item_get_type(), GPEIconListItem const)


GPEIconListItem

typedef struct {
  GObject class;

  char *title;
  char *icon;
  gpointer udata;
  GdkPixbuf *pb;
  GdkPixbuf *pb_scaled;

  GPEIconListView *parent;
} GPEIconListItem;

Object container for the GPEIconListItem widget.


gpe_icon_list_item_new ()

GObject *           gpe_icon_list_item_new              ();

Create a new item widget.

Returns :

New widget.

gpe_icon_list_item_button_press ()

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

gpe_icon_list_item_button_release ()

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

gpe_icon_list_item_set_parent ()

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.

gpe_icon_list_item_set_pixbuf ()

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 g_object_unref().

i :

Item to alter.

pixbuf :

New icon to associate with item.

gpe_icon_list_item_get_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 :

Item to get icon pixbuf from.

Returns :

Pointer to GdkPixbuf containing the current icon.

GPEIconListItemClass

typedef struct _GPEIconListItemClass GPEIconListItemClass;

Object class for the GPEIconListItem widget.