add missing Box::set_homogenous() method
This commit is contained in:
parent
e68c60b407
commit
14621f3634
@ -145,6 +145,31 @@ Box::set_margin (double t, double r, double b, double l)
|
||||
left_margin = last;
|
||||
}
|
||||
|
||||
void
|
||||
Box::set_homogenous (bool yn)
|
||||
{
|
||||
homogenous = yn;
|
||||
}
|
||||
|
||||
void
|
||||
Box::reset_self ()
|
||||
{
|
||||
if (_bounding_box_dirty) {
|
||||
compute_bounding_box ();
|
||||
}
|
||||
|
||||
if (!_bounding_box) {
|
||||
self->hide ();
|
||||
return;
|
||||
}
|
||||
|
||||
Rect r (_bounding_box);
|
||||
|
||||
/* XXX need to shrink by margin */
|
||||
|
||||
self->set (r);
|
||||
}
|
||||
|
||||
void
|
||||
Box::reposition_children ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user