-
Notifications
You must be signed in to change notification settings - Fork 578
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
Horizontal rule #447
Horizontal rule #447
Conversation
Thanks @FrostKiwi ! This is looking good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea! Can provide some nice separation across widgets. Think we should make use of it in any of the example projects?
Actually, could we make use of the horizontal bar in one of the demos? |
Could we get this merged? I can add an example to the demo if nobody wants to do it. |
Adding example to |
This is fantastic. Thanks so much, all. |
This widget draws a horizontal rule line, like the classic html rule below this sentence.
This allows one to subdivide spaces a bit nicer. The last parameter of the widget is whether or not to apply rounding. If set to true, it will apply rounding, so the line always appears to be rounded off, the "pill shape".
The height is automatically determined by the current row height.
I didn't want to create a rule.c just for this, so I included it at the end of nuklear_window.c and the definition+documentation in Window section of nuklear.h.