10#define ALIGN_RIGHT 0x02
12#define ALIGN_BOTTOM 0x08
13#define ALIGN_CENTER_HORIZONTAL 0x10
14#define ALIGN_CENTER_VERTICAL 0x20
15#define ALIGN_CENTER_BOTH 0x30
17#define OFFSET_LEFT 0x40
18#define OFFSET_RIGHT 0x80
19#define OFFSET_TOP 0x100
20#define OFFSET_BOTTOM 0x200
21#define OFFSET_ALL 0x3C0
26 Constraint(
int flags,
int padding = 0, std::vector<Element*> targets = {});
28 void addFlags(
int flags);
30 void addTarget(
Element* target);
36 int positioningFlags = 0;
39 std::vector<Element*> targets;
42 int paddingOffset = 0;
Constraint(int flags, int padding=0, std::vector< Element * > targets={})