00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00029
00030
00031
00032
00033
00034 #ifndef __CONTENT_LIST_ITEM_H__
00035 #define __CONTENT_LIST_ITEM_H__
00036
00037
00038 #define ITEM_MAX_THUMB_WIDTH 91
00039 #define ITEM_MAX_THUMB_HEIGHT 115
00040
00041 #define HBOX_TEXT_THUMB_SPACING 5
00042 #define HBOX_TEXT_TEXT_SPACING 4
00043 #define HBOX_TEXT_BORDER 15
00044 #define VBOX_TEXT_TEXT_SPACING 2
00045 #define VBOX_TEXT_BORDER 11
00046
00047 #define THUMB_BOX_MIN_WIDTH 91
00048 #define TEXT_BOX_MIN_WIDTH 570
00049 #define CURSOR_BOX_MIN_WIDTH (LISTER_BOX_BORDER - HBOX_TEXT_THUMB_SPACING)
00050
00051
00052 #include <gtk/gtk.h>
00053 #include <gdk/gdk.h>
00054
00055 #ifdef __cplusplus
00056 extern "C"
00057 {
00058 #endif
00059
00060 #define GTK_CONTENT_LIST_ITEM_TYPE (gtk_content_list_item_get_type ())
00061 #define GTK_CONTENT_LIST_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_CONTENT_LIST_ITEM_TYPE, GtkContentListItem))
00062 #define GTK_CONTENT_LIST_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_CONTENT_LIST_ITEM_TYPE, GtkContentListItemClass))
00063 #define IS_GTK_CONTENT_LIST_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_CONTENT_LIST_ITEM_TYPE))
00064 #define IS_GTK_CONTENT_LIST_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_CONTENT_LIST_ITEM_TYPE))
00065
00066 typedef struct _GtkContentListItem GtkContentListItem;
00067 typedef struct _GtkContentListItemClass GtkContentListItemClass;
00068
00069 struct _GtkContentListItem
00070 {
00071 GtkHBox box;
00072
00073 GtkWidget *textbox;
00074 GtkWidget *thumbbox;
00075 GtkWidget *cursorspace;
00076 GtkWidget *cursorbox;
00077 GtkWidget *image;
00078 GdkPixbuf *pixmap;
00079 GtkWidget *vbox;
00080 GtkWidget *table;
00081 GtkWidget *title;
00082 GtkWidget *subtitle;
00083 GtkWidget *description;
00084 GtkWidget *information;
00085 int index;
00086 };
00087
00088 struct _GtkContentListItemClass
00089 {
00090 GtkHBoxClass parent_class;
00091 };
00092
00100 GtkWidget *gtk_content_list_item_new(int index);
00101
00102
00108 GType gtk_content_list_item_get_type(void);
00109
00116 void gtk_content_list_item_set_title(GtkContentListItem * item, const gchar * text);
00117
00125 void gtk_content_list_item_set_subtitle(GtkContentListItem * item, const gchar * text);
00126
00134 void gtk_content_list_item_set_description(GtkContentListItem * item, const gchar * text);
00135
00143 void gtk_content_list_item_set_thumb(GtkContentListItem * item, const char* iconURL);
00144
00152 void gtk_content_list_item_set_icon_thumb(GtkContentListItem * item, unsigned int iconID);
00153
00160 void gtk_content_list_item_hide_thumb(GtkContentListItem * item);
00161
00169 void gtk_content_list_item_show_cursor(GtkContentListItem * item, gboolean show);
00170
00178 void gtk_content_list_item_set_information(GtkContentListItem * item, const gchar * text);
00179
00180 #ifdef __cplusplus
00181 }
00182 #endif //* __cplusplus */
00183
00184 #endif //__CONTENT_LIST_ITEM_H__