-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRAFT: File Dialog example #396
base: skia_2024
Are you sure you want to change the base?
Conversation
Oh yeah that'd be perfect for this example. I can take a shot at it when I find some spare time. Perhaps the best interface would be an overload of the existing button, but with an additional parameter describing the amount of curving? Taking values between 0 (sharp corners) and 1 (half-circle)? |
I think an enum for the shape would be sufficient. Please study the https://github.com/cycfi/elements/blob/master/lib/include/elements/element/gallery/button.hpp |
Please study the code I linked to above. It's not your typical OOP. There's some template magic happening there. The code has zero overhead already. You pay for a feature only if you need it. |
d57375f
to
793c02f
Compare
ca324af
to
486128b
Compare
4a45224
to
d5000b2
Compare
I added a new example of a file dialog using the external
nativefiledialog_extended
library. The main features of the example is a reusable file dialog element, a simple text autocompleter, and the manipulation of background colors of input_boxes.