improve doc about layout manager
This commit is contained in:
parent
1aa48bb2e4
commit
0e96c178b5
|
@ -8,7 +8,12 @@ control.SetPack(newPackDirection)
|
|||
```
|
||||
where newPackDirection either Horizontal(default value) or Vertical.
|
||||
|
||||
Automatic control placement can be tuned up with extra container properties for nicer-looking result. It is padding and gap values. By default all of them are 0 (except paddings for Window and Frame with a border - in this case default paddings are 1). Padding is a number of character between the container edge and the first child, gap is a number of characters between children inside container. Please see a picture to get the idea:
|
||||
Automatic control placement can be tuned up with extra container properties for nicer-looking result. It is padding and gap values. By default all of them are 0 (except paddings for Window and Frame with a border - in this case default paddings are 1). Padding is a number of character between the container edge and the first child, gap is a number of characters between children inside container. The default padding and gap sizes can be changed with calls:
|
||||
```
|
||||
container.SetGaps(gapX, gapY)
|
||||
container.SetPaddings(identX, identY)
|
||||
```
|
||||
Please see a picture to get the idea:
|
||||
|
||||
<img src="/docs/img/layout.png" alt="Layout manager">
|
||||
|
||||
|
|
Loading…
Reference in New Issue