GL::pop_matrix();
}
-bool Widget::button_press(int x, int y, unsigned btn)
-{
- if(x>=geom.x && y>=geom.y && x<geom.x+static_cast<int>(geom.w) && y<geom.y+static_cast<int>(geom.h))
- {
- on_button_press(x, y, btn);
- return true;
- }
-
- return false;
-}
-
-bool Widget::button_release(int x, int y, unsigned btn)
-{
- if(x>=geom.x && y>=geom.y && x<geom.x+static_cast<int>(geom.w) && y<geom.y+static_cast<int>(geom.h))
- {
- on_button_release(x, y, btn);
- return true;
- }
-
- return false;
-}
-
Widget::Widget(const Resources &r):
res(r),
style(0),