47 |
virtual bool on_expose_event(GdkEventExpose* e); |
virtual bool on_expose_event(GdkEventExpose* e); |
48 |
virtual void on_size_request(GtkRequisition* requisition); |
virtual void on_size_request(GtkRequisition* requisition); |
49 |
virtual bool on_button_press_event(GdkEventButton* event); |
virtual bool on_button_press_event(GdkEventButton* event); |
50 |
// virtual bool on_key_press_event(GdkEventKey* event); |
virtual bool on_button_release_event(GdkEventButton* event); |
51 |
// virtual bool on_focus_in_event(GdkEventFocus* event); |
virtual bool on_motion_notify_event(GdkEventMotion* event); |
52 |
virtual bool on_focus(Gtk::DirectionType direction); |
virtual bool on_focus(Gtk::DirectionType direction); |
53 |
|
|
|
// virtual void on_size_allocate(Gtk::Allocation& allocation); |
|
|
|
|
54 |
Glib::RefPtr<Gdk::GC> gc; |
Glib::RefPtr<Gdk::GC> gc; |
55 |
Gdk::Color blue, red, black, white, green; |
Gdk::Color blue, red, black, white, green; |
56 |
|
|
66 |
int dimvalue_to[256]; |
int dimvalue_to[256]; |
67 |
int label_width; |
int label_width; |
68 |
int nbDimensions; |
int nbDimensions; |
69 |
|
|
70 |
|
// information needed during a resize |
71 |
|
struct { |
72 |
|
bool active; |
73 |
|
enum { |
74 |
|
none, |
75 |
|
left, |
76 |
|
right |
77 |
|
} selected; |
78 |
|
int pos; |
79 |
|
int min; |
80 |
|
int max; |
81 |
|
int dimension; |
82 |
|
int offset; |
83 |
|
} resize; |
84 |
|
|
85 |
|
bool cursor_is_resize; |
86 |
|
bool is_in_resize_zone(double x, double y); |
87 |
|
|
88 |
|
int h; |
89 |
|
int w; |
90 |
}; |
}; |
91 |
|
|
92 |
#endif |
#endif |