SetSpacing sets the horizontal spacing between the items in pixels and updates the layout if possible
(spacing float32)
| 52 | // SetSpacing sets the horizontal spacing between the items in pixels |
| 53 | // and updates the layout if possible |
| 54 | func (bl *HBoxLayout) SetSpacing(spacing float32) { |
| 55 | |
| 56 | bl.spacing = spacing |
| 57 | bl.Recalc(bl.pan) |
| 58 | } |
| 59 | |
| 60 | // SetAlignH sets the horizontal alignment of the whole group of items |
| 61 | // inside the parent panel and updates the layout. |