![]() |
![]() |
![]() |
GPE Manual: libgpewidget Reference | ![]() |
---|---|---|---|---|
GpeIconListGpeIconList — Widget to arrange icons in columns and rows. (deprecated, will be removed soon) |
#define GPE_ICONLIST_CONST (obj) GPEIconListPrivate; void gpe_iconlist_clicked (GPEIconList *self, gpointer udata); void gpe_iconlist_show_popup (GPEIconList *self, gpointer udata); GtkWidget* gpe_iconlist_new (void); void gpe_iconlist_set_bg (GPEIconList *self, char *bg); void gpe_iconlist_set_bg_pixmap (GPEIconList *self, GdkPixbuf *bg); void gpe_iconlist_set_bg_color (GPEIconList *self, guint32 color); GObject* gpe_iconlist_add_item (GPEIconList *self, char *title, char *icon, gpointer udata); GObject* gpe_iconlist_add_item_pixbuf (GPEIconList *self, char *title, GdkPixbuf *icon, gpointer udata); void gpe_iconlist_remove_item (GPEIconList *self, GObject *item); void gpe_iconlist_set_embolden (GPEIconList *self, gboolean yes); void gpe_iconlist_set_show_title (GPEIconList *self, gboolean yes); void gpe_iconlist_set_icon_xmargin (GPEIconList *self, guint margin); void gpe_iconlist_clear (GPEIconList *self); void gpe_iconlist_set_icon_size (GPEIconList *self, guint size); void gpe_iconlist_popup_removed (GPEIconList *self); #define gpe_iconlist_connect__clicked (object,func,data) #define gpe_iconlist_connect_after__clicked(object,func,data) #define gpe_iconlist_connect_data__clicked(object,func,data,destroy_data,flags) #define gpe_iconlist_connect__show_popup(object,func,data) #define gpe_iconlist_connect_after__show_popup(object,func,data) #define gpe_iconlist_connect_data__show_popup(object,func,data,destroy_data,flags)
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. This one is deprecated, use GpeIconListView in new code.
#define GPE_ICONLIST_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), gpe_iconlist_get_type(), GPEIconList const)
obj : |
void gpe_iconlist_clicked (GPEIconList *self, gpointer udata);
Emits the clicked signal for a GpeIconList widget.
self : |
Iconlist widget |
udata : |
User data to pass to the signal handler. |
void gpe_iconlist_show_popup (GPEIconList *self, gpointer udata);
Emits the show-popup signal for a GpeIconList widget.
self : |
Iconlist widget |
udata : |
User data to pass to the signal handler. |
GtkWidget* gpe_iconlist_new (void);
This function creates a new GpeIconList widget.
Returns : | New widget |
void gpe_iconlist_set_bg (GPEIconList *self, char *bg);
Change widget background to a pixmap from a file.
self : |
Widget |
bg : |
Bitmap file to display in background. |
void gpe_iconlist_set_bg_pixmap (GPEIconList *self, GdkPixbuf *bg);
Set the widget background from a GdkPixbuf.
self : |
Widget |
bg : |
Pixbuf to use for background. |
void gpe_iconlist_set_bg_color (GPEIconList *self, guint32 color);
Change background color of icon list.
self : |
Widget |
color : |
32 bit integer defining the color. |
GObject* gpe_iconlist_add_item (GPEIconList *self, char *title, char *icon, gpointer udata);
Add a new icon item to a GpeIconList widget.
self : |
Widget |
title : |
Short text to label the icon. |
icon : |
Icon bitmap file. |
udata : |
Pointer to user data passed to signal handlers. |
Returns : | New item widget |
GObject* gpe_iconlist_add_item_pixbuf (GPEIconList *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.
self : |
Widget |
title : |
Short text to label the icon. |
icon : |
Icon pixbuf. |
udata : |
Pointer to user data passed to signal handlers. |
Returns : | New item widget |
void gpe_iconlist_remove_item (GPEIconList *self, GObject *item);
Remove an item from a GpeIconList.
self : |
Widget |
item : |
Item widget |
void gpe_iconlist_set_embolden (GPEIconList *self, gboolean yes);
Turn bold text for selected items on/off.
self : |
Widget |
yes : |
Set TRUE to enable bold text, FALSE to disable. |
void gpe_iconlist_set_show_title (GPEIconList *self, gboolean yes);
Turn titles on/off.
self : |
Widget |
yes : |
Set TRUE to enable, FALSE to disable. |
void gpe_iconlist_set_icon_xmargin (GPEIconList *self, guint margin);
Change margin in X dimension for icons inside a GpeIconList.
self : |
Widget |
margin : |
Margin in pixels |
void gpe_iconlist_clear (GPEIconList *self);
Removes all items from an icon list.
self : |
Widget to clear |
void gpe_iconlist_set_icon_size (GPEIconList *self, guint size);
Changes the size of the icons displayed in the icon list.
self : |
Widget |
size : |
Size in pixels |
#define gpe_iconlist_connect__clicked(object,func,data)
object : |
|
func : |
|
data : |
#define gpe_iconlist_connect_after__clicked(object,func,data)
object : |
|
func : |
|
data : |
#define gpe_iconlist_connect_data__clicked(object,func,data,destroy_data,flags)
object : |
|
func : |
|
data : |
|
destroy_data : |
|
flags : |
#define gpe_iconlist_connect__show_popup(object,func,data)
object : |
|
func : |
|
data : |
#define gpe_iconlist_connect_after__show_popup(object,func,data)
object : |
|
func : |
|
data : |