add a constructor for strut that takes margin sizes
This commit is contained in:
parent
cd91abfd7c
commit
36ed114f49
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ struct Strut {
|
|||
|
||||
//! Constructs a new Strut with no margins
|
||||
Strut(void): top(0), bottom(0), left(0), right(0) {}
|
||||
//! Constructs a new Strut with margins
|
||||
Strut(int l, int t, int r, int b): top(t), bottom(b), left(l), right(r) {}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue