21#include <FL/Fl_Window.H>
46 Fl_Color col =
value() ? selection_color() : color();
50 for (
int i = children () - 1; i >= 0; i--) {
52 child (i)->position(x()+(w()-child(i)->w())/2,y()+(h()-child(i)->h())/2);
53 draw_child (*child (i));
55 if (Fl::focus() ==
this) draw_focus();
65 if (Fl::visible_focus() &&
handle(FL_FOCUS)) Fl::focus(
this);
68 if (Fl::event_inside(
this)) {
88 if (when() & FL_WHEN_RELEASE) do_callback();
92 if (Fl::visible_focus()) {
97 if (Fl::focus() ==
this &&
98 (Fl::event_key() ==
' ' || Fl::event_key() == FL_Enter) &&
99 !(Fl::event_state() & (FL_SHIFT | FL_CTRL | FL_ALT | FL_META))) {
102 if (when() & FL_WHEN_RELEASE) do_callback();
106 if (Fl::focus() ==
this &&
107 (Fl::event_key() ==
' ' || Fl::event_key() == FL_Enter)) {
123: Fl_Group(X,Y,W,
H,L) {
124 Fl_Group::current(0);
FLTK implementation of dw::core::ui.