andlabs / ui

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

Set label width? Wrap text? #267

Closed Chownie closed 6 years ago

Chownie commented 6 years ago

Is there no way to limit the width of onscreen text/wrap longer text, or am I missing a different widget to perform this?

I see TextLayout but that forces a move from a widget/control scheme into drawing onto a screen at which point I might as well just jump and use SDL instead

andlabs commented 6 years ago

Yes, uiLabel is rather primitive right now. I could add those at some point. In the meantime, a multiline uiMultilineEntry set to non-editable will do (though I forget if that's in package ui yet).

Chownie commented 6 years ago

Is there a timeline for updates to ui? I know it updates in tandem with libui but there's a lot of fragmentation on whether people are using andlabs/ui, protonmail/ui or bcampbell/ui at the moment.

andlabs commented 6 years ago

When my employer grants me copyright clearance, I will apply a patch on libui for a common bug that people report, make a new binary release, and sync the APIs for the resultant Alpha 3.5 release. I can't tell you when that first part is; sorry. I expect the soonest to be sometime in the middle of the month (assuming they grant the request this time).

Chownie commented 6 years ago

Fair enough! I hadn't realized that you were limited for releases by your employer, I completely understand.

andlabs commented 6 years ago

It's a new development (I only started 2 months ago). I admit I was either lazy or unmotivated (or too focused on one git branch) prior to that, but I am back in the game now.

andlabs commented 6 years ago

Replaced with andlabs/libui#309.