About the new layout system #681
Closed
Anesthesia4
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, takev. I've been learning hikogui for a while now, and the layout system is the one that makes me feel the most uncomfortable using it, because he's not intuitive enough. For example, if I want to combine some controls to make a new widget, I have to create a new class myself and use the layout calculator class to layout the widget. I wonder if the layout of the widgets could be managed by something like a "slot" into which all the widgets fit, and then the size and position of the controls would be controlled by the "slot", which would make it easy to control the size and position of the widgets and to write declarative layout code. Each of these widgets can also hold one or more slots, or no slots. For example, the button, it is only a "slot", the slot has some configuration items, such as alignment, padding and so on. This makes it easier to layout widgets.
Beta Was this translation helpful? Give feedback.
All reactions