summaryrefslogtreecommitdiff
path: root/FL/Fl_Group.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2008-10-19 10:23:37 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2008-10-19 10:23:37 +0000
commitac7c97572cab196e6976b549e7a089491e849d5a (patch)
tree17f1994c72eed065c788810a33acf6627479b453 /FL/Fl_Group.H
parent9d3b6d2b73282be3e9f9a71d4eb485b18156220b (diff)
Fl_Group::clip_children() is now public (STR #2017)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Group.H')
-rw-r--r--FL/Fl_Group.H33
1 files changed, 19 insertions, 14 deletions
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index eb159e638..7de8ba175 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -61,20 +61,6 @@ class FL_EXPORT Fl_Group : public Fl_Widget {
protected:
enum { CLIP_CHILDREN = 2048 };
- /**
- The first method controls whether the group widget clips the drawing of
- child widgets to its bounding box.
-
- <p>The second method returns the current clipping mode.
-
- <p>The default is to not clip (0) the drawing of child widgets.
- */
- void clip_children(int c) { if (c) set_flag(CLIP_CHILDREN); else clear_flag(CLIP_CHILDREN); }
- /**
- See void Fl_Group::clip_children(int c)
- */
- int clip_children() { return (flags() & CLIP_CHILDREN) != 0; }
-
void draw();
void draw_child(Fl_Widget&) const;
void draw_children();
@@ -168,6 +154,25 @@ public:
void add_resizable(Fl_Widget& o) {resizable_ = &o; add(o);}
void init_sizes();
+ /**
+ Controls whether the group widget clips the drawing of
+ child widgets to its bounding box.
+
+ Set \a c to 1 if you want to clip the child widgets to the
+ bounding box.
+
+ The default is to not clip (0) the drawing of child widgets.
+ */
+ void clip_children(int c) { if (c) set_flag(CLIP_CHILDREN); else clear_flag(CLIP_CHILDREN); }
+ /**
+ Returns the current clipping mode.
+
+ \return true, if clipping is enabled, false otherwise.
+
+ \see void Fl_Group::clip_children(int c)
+ */
+ int clip_children() { return (flags() & CLIP_CHILDREN) != 0; }
+
// back compatibility functions:
/**