diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-12-15 16:42:00 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-12-15 16:42:00 +0000 |
| commit | 681e6ae9460864e9dca10aa19495f2f94a326f8d (patch) | |
| tree | 797ed2bbeca7411ea35fde92154be2359b1c00b1 /FL | |
| parent | fe1e8a37eeca9a9c6816fe7c71a782bfe9137ff1 (diff) | |
Add clip_children() method (STR #1844)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Group.H | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H index 3ede57cfa..ac1ad0876 100644 --- a/FL/Fl_Group.H +++ b/FL/Fl_Group.H @@ -48,6 +48,10 @@ class FL_EXPORT Fl_Group : public Fl_Widget { Fl_Group& operator=(const Fl_Group&); protected: + enum { CLIP_CHILDREN = 2048 }; + + void clip_children(int c) { if (c) set_flag(CLIP_CHILDREN); else clear_flag(CLIP_CHILDREN); } + int clip_children() { return (flags() & CLIP_CHILDREN) != 0; } void draw(); void draw_child(Fl_Widget&) const; |
