Skip to content
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

Addrect does not draw on the title bar Window. #6660

Closed
ElectroidDes opened this issue Jul 28, 2023 · 3 comments
Closed

Addrect does not draw on the title bar Window. #6660

ElectroidDes opened this issue Jul 28, 2023 · 3 comments

Comments

@ElectroidDes
Copy link

Sorry - this is not a bug report, I just wanted to ask if it's possible to draw on the window's titlebar with the standard Imgui methods - such as Addrect, AddLine and the like?

@ocornut
Copy link
Owner

ocornut commented Jul 28, 2023

You’ll need to use PushClipRect() to push a clipping rectangle larger than the one the window initially uses.

@ElectroidDes
Copy link
Author

Very Big Thanks! It works.

@ocornut
Copy link
Owner

ocornut commented Jul 29, 2023

Good to hear. Closing.
Linking to similar issues #6002 #5115 #4636 #3882

@ocornut ocornut closed this as completed Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants