Got a small idea and wrote code for GUI: vertical and horizontal splitters.
Hey @zep, do you have any guidelines for GUI code? Right now those are piggy-backing the GUI lib's ability of regenerating a widget's dimensions with width_rel and height_rel. Do you have anything in mind regarding their usage? Do you think I should I offer an explicit way for the inner children to override the dimension assignment?
@Ronflaix I haven't tried to formulate any guidelines yet, but I think the built-in gui library will remain extremely minimal and won't change much: so if it works, it works. No problem for children to overwrite their relatives' data etc. -- that's what I would do for splitters I think. I won't try to introduce enforced information hiding or anything like that :)
@Liquidream@zep no worries! I sent a first version of the horizontal splitter in the disvord server. Derivating the vertical splitter from it should be trivial. Feel free to pick it up!
Add comment