- (*i)->widget->render();
- }
-}
-
-void Panel::button_press(int x, int y, unsigned btn)
-{
- if(pointer_grabbed)
- {
- const Geometry &cgeom = pointer_focus->get_geometry();
- pointer_focus->button_press(x-cgeom.x, y-cgeom.y, btn);
- }
- else
- {
- if(Widget *wdg = get_child_at(x, y))
- {
- set_pointer_focus(wdg);
- if(wdg->is_focusable())
- set_input_focus(wdg);
- }
- Container::button_press(x, y, btn);
- }
-}
-
-void Panel::button_release(int x, int y, unsigned btn)
-{
- if(pointer_grabbed)
- {
- const Geometry &cgeom = pointer_focus->get_geometry();
- pointer_focus->button_release(x-cgeom.x, y-cgeom.y, btn);