summaryrefslogtreecommitdiff
path: root/gtkplaylist.h
blob: cd0b993806248a7153733ff9140a65a18fbb1a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef __GTKPLAYLIST_H
#define __GTKPLAYLIST_H

#include <gtk/gtk.h>
#include <stdint.h>
#include "playlist.h"

enum {
    TARGET_URILIST,
    TARGET_SAMEWIDGET,
};

void
gtkps_nextsong (void);

void
redraw_ps_row (GtkWidget *widget, int row);

void
gtkps_setup_scrollbar (void);

void
draw_ps_row_back (GdkDrawable *drawable, cairo_t *cr, int row, playItem_t *it);

void
draw_ps_row (GdkDrawable *drawable, cairo_t *cr, int row, playItem_t *it);

void
draw_playlist (GtkWidget *widget, int x, int y, int w, int h);

void
gtkps_reconf (GtkWidget *widget);

void
gtkps_expose (GtkWidget       *widget, int x, int y, int w, int h);

void
gtkps_mouse1_pressed (int state, int ex, int ey, double time);

void
gtkps_mouse1_released (int state, int ex, int ey, double time);

void
gtkps_mousemove (GdkEventMotion *event);

void
gtkps_scroll (int newscroll);

void
gtkps_stopsong (void);

void
gtkps_playsong (void);

void
gtkps_prevsong (void);

void
gtkps_nextsong (void);

void
gtkps_randomsong (void);

void
gtkps_pausesong (void);

void
gtkps_playsongnum (int idx);

void
gtkps_update_songinfo (void);

void
gtkps_songchanged (int from, int to);

void
gtkps_handle_scroll_event (int direction);

void
gtkps_keypress (int keyval, int state);

void
gtkps_track_dragdrop (int y);

void
gtkps_handle_drag_drop (int drop_y, uint32_t *d, int length);

#endif