![]() |
![]() |
![]() |
GPE Manual: libgpewidget Reference | ![]() |
---|---|---|---|---|
Top | Description |
#define GPE_ICON_LIST_VIEW_CONST (obj) enum t_gpe_textpos; GPEIconListView; GPEIconListViewClass; GtkWidget * gpe_icon_list_view_new (); void gpe_icon_list_view_set_bg (GPEIconListView *self
,char *bg
); void gpe_icon_list_view_set_bg_pixmap (GPEIconListView *self
,GdkPixbuf *bg
); void gpe_icon_list_view_set_bg_color (GPEIconListView *self
,guint32 color
); void gpe_icon_list_view_remove_item_with_udata (GPEIconListView *self
,gpointer udata
); void gpe_icon_list_view_update_icon_item_with_udata (GPEIconListView *self
,GdkPixbuf *pixbuf
,gpointer udata
); GObject * gpe_icon_list_view_add_item (GPEIconListView *self
,char *title
,char *icon
,gpointer udata
); GObject * gpe_icon_list_view_add_item_pixbuf (GPEIconListView *self
,char *title
,GdkPixbuf *icon
,gpointer udata
); void gpe_icon_list_view_remove_item (GPEIconListView *self
,GObject *item
); void gpe_icon_list_view_set_item_icon (GPEIconListView *self
,GObject *item
,GdkPixbuf *new_pixbuf
); void gpe_icon_list_view_set_embolden (GPEIconListView *self
,gboolean yes
); void gpe_icon_list_view_set_show_title (GPEIconListView *self
,gboolean yes
); void gpe_icon_list_view_set_icon_xmargin (GPEIconListView *self
,guint margin
); void gpe_icon_list_view_clear (GPEIconListView *self
); void gpe_icon_list_view_set_icon_size (GPEIconListView *self
,guint size
); void gpe_icon_list_view_popup_removed (GPEIconListView *self
); void gpe_icon_list_view_set_rows (GPEIconListView *self
,guint rows
); void gpe_icon_list_view_set_textpos (GPEIconListView *self
,t_gpe_textpos textpos
); void gpe_icon_list_view_set_border_color (GPEIconListView *self
,guint32 color
); void gpe_icon_list_view_set_border_width (GPEIconListView *self
,int width
);
This widget is used to arrange icons in columns and rows. It provides functions for user interactive actions clicking on a particular icon and methods to manage icons in the list.
#define GPE_ICON_LIST_VIEW_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), gpe_icon_list_view_get_type(), GPEIconListView const)
|
typedef enum { GPE_TEXT_BELOW, GPE_TEXT_RIGHT } t_gpe_textpos;
Data type to define text postioning relative to a displayed icon.
typedef struct _GPEIconListView GPEIconListView;
Object container for the GPEIconListView widget.
typedef struct _GPEIconListViewClass GPEIconListViewClass;
Object class for the GPEIconListView widget.
GtkWidget * gpe_icon_list_view_new ();
This function creates a new GpeIconListView widget.
Returns : |
New widget |
void gpe_icon_list_view_set_bg (GPEIconListView *self
,char *bg
);
Change widget background to a pixmap from a file.
|
Widget |
|
Bitmap file to display in background. |
void gpe_icon_list_view_set_bg_pixmap (GPEIconListView *self
,GdkPixbuf *bg
);
Set the widget background from a GdkPixbuf.
|
Widget |
|
Pixbuf to use for background. |
void gpe_icon_list_view_set_bg_color (GPEIconListView *self
,guint32 color
);
Change background color of icon list.
|
Widget |
|
32 bit integer defining the color. |
void gpe_icon_list_view_remove_item_with_udata (GPEIconListView *self
,gpointer udata
);
Removes an item from an icon list identified by its user data.
|
Widget |
|
Data pointer to identify item. |
void gpe_icon_list_view_update_icon_item_with_udata (GPEIconListView *self
,GdkPixbuf *pixbuf
,gpointer udata
);
Updates the icon of an item identified by its user data.
|
Widget |
|
GdkPixbuf containing the new icon. |
|
Data pointer to identify item. |
GObject * gpe_icon_list_view_add_item (GPEIconListView *self
,char *title
,char *icon
,gpointer udata
);
Add a new icon item to a GpeIconList widget.
|
Widget |
|
Short text to label the icon. |
|
Icon bitmap file. |
|
Pointer to user data passed to signal handlers. |
Returns : |
New item widget |
GObject * gpe_icon_list_view_add_item_pixbuf (GPEIconListView *self
,char *title
,GdkPixbuf *icon
,gpointer udata
);
Add a new icon item to a GpeIconList widget using a GdkPixbuf for icon data instead of a file.
|
Widget |
|
Short text to label the icon. |
|
Icon pixbuf. |
|
Pointer to user data passed to signal handlers. |
Returns : |
New item widget |
void gpe_icon_list_view_remove_item (GPEIconListView *self
,GObject *item
);
Remove an item from a GpeIconListView.
|
Widget |
|
Item widget |
void gpe_icon_list_view_set_item_icon (GPEIconListView *self
,GObject *item
,GdkPixbuf *new_pixbuf
);
Updates the icon of a list view item.
|
Widget |
|
Item of icon list to become updated. |
|
GdkPixbuf containing the new icon. |
void gpe_icon_list_view_set_embolden (GPEIconListView *self
,gboolean yes
);
Turn bold text for selected items on/off.
|
Widget |
|
Set TRUE to enable bold text, FALSE to disable. |
void gpe_icon_list_view_set_show_title (GPEIconListView *self
,gboolean yes
);
Turn titles on/off.
|
Widget |
|
Set TRUE to enable, FALSE to disable. |
void gpe_icon_list_view_set_icon_xmargin (GPEIconListView *self
,guint margin
);
Change margin in X dimension for icons inside a GpeIconListView.
|
Widget |
|
Margin in pixels |
void gpe_icon_list_view_clear (GPEIconListView *self
);
Removes all items from an icon list.
|
Widget to clear |
void gpe_icon_list_view_set_icon_size (GPEIconListView *self
,guint size
);
Changes the size of the icons displayed in the icon list view.
|
Widget |
|
Size in pixels |
void gpe_icon_list_view_popup_removed (GPEIconListView *self
);
Executes actions that take place when popup menu is closed.
|
void gpe_icon_list_view_set_rows (GPEIconListView *self
,guint rows
);
Sets the number of rows used for arranging icons.
|
Widget |
|
Number of rows |
void gpe_icon_list_view_set_textpos (GPEIconListView *self
,t_gpe_textpos textpos
);
This function sets the position of the descriptive text of items.
|
Widget |
|
Text position |
void gpe_icon_list_view_set_border_color (GPEIconListView *self
,guint32 color
);
This function is used to set the colour of the icon lists border.
|
Widget |
|
New border color |
void gpe_icon_list_view_set_border_width (GPEIconListView *self
,int width
);
This function is used to change the width of the icon lists border.
|
Widget |
|
New width in pixels |