NewHBoxLayout creates and returns a pointer to a new horizontal box layout
()
| 42 | |
| 43 | // NewHBoxLayout creates and returns a pointer to a new horizontal box layout |
| 44 | func NewHBoxLayout() *HBoxLayout { |
| 45 | |
| 46 | bl := new(HBoxLayout) |
| 47 | bl.spacing = 0 |
| 48 | bl.alignH = AlignLeft |
| 49 | return bl |
| 50 | } |
| 51 | |
| 52 | // SetSpacing sets the horizontal spacing between the items in pixels |
| 53 | // and updates the layout if possible |
no outgoing calls
no test coverage detected