diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-09-18 19:09:34 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-09-18 19:09:34 +0000 |
| commit | e8478458bf96bb62158a61b39416e515767d94a7 (patch) | |
| tree | 0ba17d2b9ae36dc475c63e1d0499204208a632f7 /src/Fl_Widget.cxx | |
| parent | d75b9717c7c1d607a83d0b9625296a0a3bce25c3 (diff) | |
Doxygen documentation: Fixed most important warnings for the Fl_Widget, Fl_Window, Fl_Valuator classes that should be now a 100% documented. For the rest I drastically reduced the undocumented APIs, but many others (less important) remains.
It looks and feels pretty good now :-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget.cxx')
| -rw-r--r-- | src/Fl_Widget.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index 8a404e191..e03a44312 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -80,6 +80,7 @@ int Fl_Widget::handle(int) { return 0; } +/** default font size for widgets */ Fl_Fontsize FL_NORMAL_SIZE = 14; Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) { @@ -132,10 +133,13 @@ int Fl_Widget::take_focus() { extern void fl_throw_focus(Fl_Widget*); // in Fl_x.cxx -// Destruction does not remove from any parent group! And groups when -// destroyed destroy all their children. This is convienent and fast. -// However, it is only legal to destroy a "root" such as an Fl_Window, -// and automatic destructors may be called. +/** + Destroys the widget, taking care of throwing focus before if any. + Destruction does not remove from any parent group! And groups when + destroyed destroy all their children. This is convienent and fast. + However, it is only legal to destroy a "root" such as an Fl_Window, + and automatic destructors may be called. +*/ Fl_Widget::~Fl_Widget() { Fl::clear_widget_pointer(this); if (flags() & COPIED_LABEL) free((void *)(label_.value)); @@ -143,7 +147,7 @@ Fl_Widget::~Fl_Widget() { fl_throw_focus(this); } -// draw a focus box for the widget... +/** Draws a focus box for the widget at position X,Y and SIZE W,H . */ void Fl_Widget::draw_focus(Fl_Boxtype B, int X, int Y, int W, int H) const { if (!Fl::visible_focus()) return; |
