r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / guicast / bctumble.h
blob5ccfc9ad42d622a9b6e8678e55a010d313208438
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);
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);
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) {};
29 private:
30 int draw_face();
32 BC_Pixmap *images[4];
33 int status;
34 int64_t repeat_count;
37 class BC_ITumbler : public BC_Tumbler
39 public:
40 BC_ITumbler(BC_TextBox *textbox, int64_t min, int64_t max, int x, int y);
41 virtual ~BC_ITumbler();
43 int handle_up_event();
44 int handle_down_event();
45 void set_boundaries(int64_t min, int64_t max);
47 int64_t min, max;
48 BC_TextBox *textbox;
51 class BC_FTumbler : public BC_Tumbler
53 public:
54 BC_FTumbler(BC_TextBox *textbox, float min, float max, int x, int y);
55 virtual ~BC_FTumbler();
57 int handle_up_event();
58 int handle_down_event();
59 void set_boundaries(float min, float max);
60 void set_increment(float value);
62 float min, max;
63 float increment;
64 BC_TextBox *textbox;
67 #endif