From c3a52662059fc454d0d85fd833d61fe366f875d1 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 13 Aug 2009 20:47:52 +0200 Subject: colorscheme api --- gtkplaylist.h | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'gtkplaylist.h') diff --git a/gtkplaylist.h b/gtkplaylist.h index 8cd6aa46..42b06ec7 100644 --- a/gtkplaylist.h +++ b/gtkplaylist.h @@ -23,11 +23,30 @@ #include #include "playlist.h" +// drag and drop targets enum { TARGET_URILIST, TARGET_SAMEWIDGET, }; +// color scheme constants +enum { + COLO_PLAYLIST_CURSOR, + COLO_PLAYLIST_ODD, + COLO_PLAYLIST_EVEN, + COLO_PLAYLIST_SEL_ODD, + COLO_PLAYLIST_SEL_EVEN, + COLO_PLAYLIST_TEXT, + COLO_PLAYLIST_SEL_TEXT, + COLO_SEEKBAR_BACK, + COLO_SEEKBAR_FRONT, + COLO_SEEKBAR_MARKER, + COLO_VOLUMEBAR_BACK, + COLO_VOLUMEBAR_FRONT, + COLO_DRAGDROP_MARKER, + COLO_COUNT +}; + #define pl_ncolumns 5 #define pl_colname_max 100 @@ -63,9 +82,13 @@ typedef struct { int colwidths[pl_ncolumns]; // current column widths } gtkplaylist_t; -#define GTKpl_PROLOGUE \ +#define GTKPL_PROLOGUE \ gtkplaylist_t *ps = (gtkplaylist_t *)gtk_object_get_data (GTK_OBJECT (widget), "ps"); assert (ps); +// that must be called before gtk_init +void +gtkpl_init (void); + void gtkpl_redraw_pl_row (gtkplaylist_t *ps, int row); @@ -170,4 +193,7 @@ gtkpl_pausesong (void); void gtkpl_playsongnum (int idx); +void +gtkpl_set_cairo_source_rgb (cairo_t *cr, int col); + #endif // __GTKPLAYLIST_H -- cgit v1.2.3