mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
first steps in merging cBox into constraint packer
This commit is contained in:
parent
860d43697c
commit
af60c50990
2 changed files with 13 additions and 4 deletions
|
|
@ -30,12 +30,13 @@ namespace ArdourCanvas
|
|||
|
||||
class Rectangle;
|
||||
class ConstrainedItem;
|
||||
class BoxConstrainedItem;
|
||||
|
||||
class LIBCANVAS_API ConstraintPacker : public Container
|
||||
{
|
||||
public:
|
||||
ConstraintPacker (Canvas *);
|
||||
ConstraintPacker (Item *);
|
||||
ConstraintPacker (Canvas *, Orientation o = Horizontal);
|
||||
ConstraintPacker (Item *, Orientation o = Horizontal);
|
||||
|
||||
void add (Item *);
|
||||
void add_front (Item *);
|
||||
|
|
@ -72,6 +73,12 @@ public:
|
|||
|
||||
void non_const_preferred_size (Duple& mininum, Duple& natural);
|
||||
virtual void update_constraints ();
|
||||
|
||||
private:
|
||||
Orientation _orientation;
|
||||
typedef std::list<BoxConstrainedItem*> BoxPackedItems;
|
||||
BoxPackedItems vpacked;
|
||||
BoxPackedItems hpacked;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue