summaryrefslogtreecommitdiff
path: root/src/Fl_Group.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-11-08 15:22:15 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-11-08 15:22:15 +0000
commitee58dd2f628ef045db0706b812a3bc9febcac6d9 (patch)
tree36c05df6185552c371b5532ecc763f8d13de6670 /src/Fl_Group.cxx
parentf841b450870a3a3308973c77c4be83a0e721bd31 (diff)
Add draw_children() method to Fl_Group.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Group.cxx')
-rw-r--r--src/Fl_Group.cxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index a1606fc32..17ab21b52 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Group.cxx,v 1.8.2.8.2.18 2002/08/09 01:09:48 easysw Exp $"
+// "$Id: Fl_Group.cxx,v 1.8.2.8.2.19 2002/11/08 15:22:11 easysw Exp $"
//
// Group widget for the Fast Light Tool Kit (FLTK).
//
@@ -519,11 +519,9 @@ void Fl_Group::resize(int X, int Y, int W, int H) {
Fl_Widget::resize(X,Y,W,H);
}
-void Fl_Group::draw() {
+void Fl_Group::draw_children() {
Fl_Widget*const* a = array();
if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing:
- draw_box();
- draw_label();
for (int i=children_; i--;) {
Fl_Widget& o = **a++;
draw_child(o);
@@ -534,6 +532,15 @@ void Fl_Group::draw() {
}
}
+void Fl_Group::draw() {
+ Fl_Widget*const* a = array();
+ if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing:
+ draw_box();
+ draw_label();
+ }
+ draw_children();
+}
+
// Draw a child only if it needs it:
void Fl_Group::update_child(Fl_Widget& widget) const {
if (widget.damage() && widget.visible() && widget.type() < FL_WINDOW &&
@@ -587,5 +594,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& widget) const {
}
//
-// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.18 2002/08/09 01:09:48 easysw Exp $".
+// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.19 2002/11/08 15:22:11 easysw Exp $".
//