Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / guicast / bctumble.h
blobcb659a50b8a35da94566b528f2aa1f511b578a19
1 #ifndef BCTUMBLE_H
2 #define BCTUMBLE_H
4 #include "bcsubwindow.h"
6 class BC_Tumbler : public BC_SubWindow
8 public:
9 BC_Tumbler(int x, int y, VFrame **data = 0);
10 virtual ~BC_Tumbler();
12 virtual int handle_up_event() { return 0; };
13 virtual int handle_down_event() { return 0; };
14 int repeat_event(int64_t repeat_id);
16 int initialize();
17 int set_images(VFrame **data);
18 int cursor_enter_event();
19 int cursor_leave_event();
20 int button_press_event();
21 int button_release_event();
22 int cursor_motion_event();
23 int update_bitmaps(VFrame **data);
24 int reposition_window(int x, int y, int w=-1, int h=-1); // w & h don't do anything, except to inherit BC_Subwindow::(reposition_window)
25 virtual void set_boundaries(int64_t min, int64_t max) {};
26 virtual void set_boundaries(float min, float max) {};
27 virtual void set_increment(float value) {};
28 virtual void set_log_floatincrement(int value) {};
30 private:
31 int draw_face();
33 BC_Pixmap *images[4];
34 int status;
35 int64_t repeat_count;
36 VFrame **data;
39 class BC_ITumbler : public BC_Tumbler
41 public:
42 BC_ITumbler(BC_TextBox *textbox, int64_t min, int64_t max, int x, int y);
43 virtual ~BC_ITumbler();
45 int handle_up_event();
46 int handle_down_event();
47 void set_increment(float value);
48 void set_boundaries(int64_t min, int64_t max);
50 int64_t min, max;
51 int64_t increment;
52 BC_TextBox *textbox;
55 class BC_FTumbler : public BC_Tumbler
57 public:
58 BC_FTumbler(BC_TextBox *textbox, float min, float max, int x, int y);
59 virtual ~BC_FTumbler();
61 int handle_up_event();
62 int handle_down_event();
63 void set_boundaries(float min, float max);
64 void set_increment(float value);
65 void set_log_floatincrement(int value);
67 float min, max;
68 float increment;
69 int log_floatincrement;
70 BC_TextBox *textbox;
73 #endif
75 // Local Variables:
76 // mode: C++
77 // c-file-style: "linux"
78 // End: