Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

How should widgets draw over other window areas? #51

Open
tones111 opened this issue Dec 17, 2017 · 1 comment
Open

How should widgets draw over other window areas? #51

tones111 opened this issue Dec 17, 2017 · 1 comment

Comments

@tones111
Copy link

None of the currently available widgets demonstrate an ability to draw over other portions of the window. It would be nice to see how this might be accomplished in limn. Some example widgets that need this functionality include drop-down box, context menu, menu bar, tooltip, tab bar, etc.

@christolliday
Copy link
Owner

You're right this isn't really documented or demoed, It should be more obvious once the built in widget library grows, and I'll make a note in the docs somewhere. Draw ordering is controlled by the order of attachment to the parent.
If you have a parent widget "root" and two children widgets "widget1" and "widget2", widget2 will be drawn after widget1, so if they overlap widget2 will be drawn on top of widget1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants