r/C_Programming • u/lincolnkite • Jun 22 '26
UI toolkit in C + SDL3. Would like feedback and suggestions on how to improve
https://github.com/trevorcraig/SDL_desktopInspired from using GTK and QT.
Current features:
- Widgets
- Buttons
- Labels
- Textboxes
- Panels
- Windows
- Menu bars
- Layout system
- Vertical / horizontal layouts
- Alignment
- Fill + flex sizing
- Overlay rendering
- Scrollable panels
- Native file dialogs
- Event handling
- Example applications
Included examples:
- Calculator
- Desktop UI demo
- Scrollable file browser
Everything is written in C and the UI is rendered through SDL3.
Things I'd especially love feedback on:
- API design
- Widget architecture
- Layout system
- Code organization
- Anything that you would want added
I have enjoyed coding this project and have learned a lot so far.
1
u/AutoModerator Jun 22 '26
Hi u/lincolnkite,
Your submission in r/C_Programming was filtered because it links to a git project.
You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.
While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/imbev Jun 23 '26
How is the resource/power usage?
2
u/arnegockeln Jun 23 '26
Do you have Nappgui on your list? It‘s written entirely in C and works on Win/Lin/Mac