summaryrefslogtreecommitdiff
path: root/gtkplaylist.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-13 20:47:52 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-13 20:47:52 +0200
commitc3a52662059fc454d0d85fd833d61fe366f875d1 (patch)
treec0731e938d3e2e171cb2fb16ebdb8278dab8ac52 /gtkplaylist.h
parent7a6d5e2a410208539ec42efca38eed1f2372b357 (diff)
colorscheme api
Diffstat (limited to 'gtkplaylist.h')
-rw-r--r--gtkplaylist.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/gtkplaylist.h b/gtkplaylist.h
index 8cd6aa46..42b06ec7 100644
--- a/gtkplaylist.h
+++ b/gtkplaylist.h
@@ -23,11 +23,30 @@
#include <assert.h>
#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