From acbb5af54bcbdcb2dc561954395cfa25f09fcb5c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 28 Sep 2008 22:25:23 +0000 Subject: doxygen docs for some missing Fl_Group methods, updated Fl::focus(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index a77a653c0..12fece49d 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -712,14 +712,16 @@ static int send_handlers(int e) { Fl_Widget* fl_oldfocus; // kludge for Fl_Group... /** - Get or set the widget that will receive FL_KEYBOARD events. + Sets the widget that will receive FL_KEYBOARD events. -

If you change Fl::focus(), the previous widget and all + If you change Fl::focus(), the previous widget and all parents (that don't contain the new widget) are sent FL_UNFOCUS - events. Changing the focus does not send FL_FOCUS to - this or any widget, because sending FL_FOCUS is supposed to - test if the widget wants the focus (by it returning non-zero from + events. Changing the focus does \e not send FL_FOCUS to + this or any widget, because sending FL_FOCUS is supposed to + \e test if the widget wants the focus (by it returning non-zero from handle()). + + \sa Fl_Widget::take_focus() */ void Fl::focus(Fl_Widget *o) { if (o && !o->visible_focus()) return; -- cgit v1.2.3