54 |
gig::Region* get_region(int key); |
gig::Region* get_region(int key); |
55 |
|
|
56 |
Glib::RefPtr<Gdk::GC> gc; |
Glib::RefPtr<Gdk::GC> gc; |
57 |
Gdk::Color blue, red, black, white, green, grey1; |
Gdk::Color blue, red, grey1; |
58 |
|
|
59 |
void draw_region(int from, int to, const Gdk::Color& color); |
void draw_region(int from, int to, const Gdk::Color& color); |
60 |
|
|
64 |
gig::Instrument* instrument; |
gig::Instrument* instrument; |
65 |
gig::Region* region; |
gig::Region* region; |
66 |
|
|
67 |
|
void motion_resize_region(int x, int y); |
68 |
|
void motion_move_region(int x, int y); |
69 |
|
|
70 |
// information needed during a resize |
// information needed during a resize |
71 |
struct { |
struct { |
72 |
bool active; |
bool active; |
82 |
gig::Region* prev_region; |
gig::Region* prev_region; |
83 |
} resize; |
} resize; |
84 |
|
|
85 |
|
// information needed during a region move |
86 |
|
struct { |
87 |
|
bool active; |
88 |
|
double from_x; |
89 |
|
int pos; |
90 |
|
bool touch_left; |
91 |
|
bool touch_right; |
92 |
|
} move; |
93 |
|
|
94 |
bool cursor_is_resize; |
bool cursor_is_resize; |
95 |
bool is_in_resize_zone(double x, double y); |
bool is_in_resize_zone(double x, double y); |
96 |
|
|