1 #ifndef __DRAGCHECKBOX_H__
2 #define __DRAGCHECKBOX_H__
8 class DragCheckBox : public BC_CheckBox
11 DragCheckBox(MWindow *mwindow, int x, int y, const char *text, int *value,
12 float drag_x, float drag_y, float drag_w, float drag_h);
14 virtual Track *get_drag_track() = 0;
15 virtual int64_t get_drag_position() = 0;
16 virtual void update_gui() { return; };
17 void create_objects();
19 static void draw_boundary(VFrame *out, int x, int y, int w, int h);
23 void drag_deactivate();
26 int grab_event(XEvent *event);
29 int grabbed, dragging, pending;
32 float drag_dx, drag_dy;