Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/
Other
9.37k stars 571 forks source link

[Feature Request] Glade/Qt Creator-like UI editor #344

Open leap0x7b opened 3 years ago

leap0x7b commented 3 years ago

Hi, I'm looking for lightweight UI library and found Nuklear. I found this UI library is very lightweight and want to use it in my future projects. But, since I'm a very newbie developer, I don't want to code all of the UI in a C file. I want a Glade/Qt Creator-like UI editor for Nuklear. I also want to have a custom file (like .nui) for Nuklear UI so I can just load it in my code.

excitedbox commented 3 years ago

I feel like this is the missing piece of all GUI libs that keeps them from mainstream adoption. It is what made VB the go to back in the day and why QT and .Net are the go to now. Visual design is also what made Dreamweaver the go to for web design because it is much faster to drag and drop a few controls, set the config values and combine with the backend code. It also eliminates tons of bugs and trial and error to get the right placement.

RobLoach commented 2 years ago

Would be pretty cool, but considering it's immediate-mode, I imagine the state management being pretty tricky to manage. I'd recommend reading through the API a bit, and seeing what you could come up with for it!

dumblob commented 2 years ago

@RobLoach yep, it wouldn't be a piece of cake - but probably not much more difficult than for retained UIs if you think of it (of course, you must not expect it to generate similar code to what one would write by hand).

I think that such an editor is anyway just an advanced "motivational element" which will nearly in 100% cases be abandoned after the first few hours of generating the "start off template". Same as providing many backends to choose from and same as providing examples (it's orders of magnitude easier to remove stuff than to come up with "what to add" on your own).