~ubuntu-branches/ubuntu/karmic/fltk1.1/karmic

« back to all changes in this revision

Viewing changes to src/Fl_Pack.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-05-22 13:57:06 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050522135706-mchag24yf42lu7bu
Tags: 1.1.6-5
* Revert previous change, which seems to have been ineffective for some
  reason, in favor of commenting out the problematic Makefile rule
  altogether.  (Closes: #310151.)
* debian/control: Go back to specifying the URL as part of the
  description rather than via a non-standard field that doesn't seem to
  have caught on.  (Closes: #310240.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: Fl_Pack.cxx,v 1.6.2.4.2.6 2004/04/11 04:38:58 easysw Exp $"
 
2
// "$Id: Fl_Pack.cxx,v 1.6.2.4.2.7 2004/04/25 01:39:36 easysw Exp $"
3
3
//
4
4
// Packing widget for the Fast Light Tool Kit (FLTK).
5
5
//
45
45
  int tw = w()-Fl::box_dw(box());
46
46
  int th = h()-Fl::box_dh(box());
47
47
  int rw, rh;
48
 
  int current_position = horizontal() ? tx : ty;
 
48
  int current_position = (horizontal() ? tx : ty) + spacing_ / 2;
49
49
  int maximum_position = current_position;
50
50
  uchar d = damage();
51
51
  Fl_Widget*const* a = array();
102
102
        o->resize(X,Y,W,H);
103
103
        o->clear_damage(FL_DAMAGE_ALL);
104
104
      }
105
 
      if (d&FL_DAMAGE_ALL) draw_child(*o); else update_child(*o);
 
105
      if (d&FL_DAMAGE_ALL) {
 
106
        draw_child(*o);
 
107
        draw_outside_label(*o);
 
108
      } else update_child(*o);
106
109
      // child's draw() can change it's size, so use new size:
107
110
      current_position += (horizontal() ? o->w() : o->h());
108
111
      if (current_position > maximum_position)
127
130
 
128
131
  tw += Fl::box_dw(box()); if (tw <= 0) tw = 1;
129
132
  th += Fl::box_dh(box()); if (th <= 0) th = 1;
130
 
  if (tw != w() || th != h()) {Fl_Widget::resize(x(),y(),tw,th); d = FL_DAMAGE_ALL;}
131
 
  if (d&FL_DAMAGE_ALL) draw_box();
 
133
  if (tw != w() || th != h()) {
 
134
    Fl_Widget::resize(x(),y(),tw,th);
 
135
    d = FL_DAMAGE_ALL;
 
136
  }
 
137
  if (d&FL_DAMAGE_ALL) {
 
138
    draw_box();
 
139
    draw_label();
 
140
  }
132
141
}
133
142
 
134
143
//
135
 
// End of "$Id: Fl_Pack.cxx,v 1.6.2.4.2.6 2004/04/11 04:38:58 easysw Exp $".
 
144
// End of "$Id: Fl_Pack.cxx,v 1.6.2.4.2.7 2004/04/25 01:39:36 easysw Exp $".
136
145
//