andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

API usability - Function for Appending multiple controls at once #310

Open Maelkum opened 6 years ago

Maelkum commented 6 years ago

Append() adds one control at a time, while it is a common use-case that a user wants to add several controls. This leads to the unnecessary repetion of a single function call.

AppendMultiple() appends controls as non-stretchy, while AppendMultipleEx() allows boolean to explicitely specify the type of control.

Standard Append() was changed to use AppendMultipleEx() too.