44 |
virtual bool on_expose_event(GdkEventExpose* e); |
virtual bool on_expose_event(GdkEventExpose* e); |
45 |
virtual void on_size_request(GtkRequisition* requisition); |
virtual void on_size_request(GtkRequisition* requisition); |
46 |
virtual bool on_button_press_event(GdkEventButton* event); |
virtual bool on_button_press_event(GdkEventButton* event); |
47 |
|
virtual bool on_button_release_event(GdkEventButton* event); |
48 |
virtual bool on_motion_notify_event(GdkEventMotion* event); |
virtual bool on_motion_notify_event(GdkEventMotion* event); |
49 |
|
|
50 |
// virtual void on_size_allocate(Gtk::Allocation& allocation); |
// virtual void on_size_allocate(Gtk::Allocation& allocation); |
58 |
|
|
59 |
gig::Instrument* instrument; |
gig::Instrument* instrument; |
60 |
gig::Region* region; |
gig::Region* region; |
61 |
|
|
62 |
|
// information needed during a resize |
63 |
|
struct { |
64 |
|
bool active; |
65 |
|
enum { |
66 |
|
undecided, |
67 |
|
moving_high_limit, |
68 |
|
moving_low_limit |
69 |
|
} mode; |
70 |
|
int pos; |
71 |
|
int min; |
72 |
|
int max; |
73 |
|
gig::Region* region; |
74 |
|
gig::Region* prev_region; |
75 |
|
} resize; |
76 |
|
|
77 |
|
bool cursor_is_resize; |
78 |
|
bool is_in_resize_zone(double x, double y); |
79 |
|
|
80 |
|
int h1; |
81 |
|
int width; |
82 |
}; |
}; |
83 |
|
|
84 |
#endif |
#endif |