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

Add Response::paint_debug_info() to make it easy to visualize a widget's id and state #4056

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

abey79
Copy link
Collaborator

@abey79 abey79 commented Feb 16, 2024

This PR adds a new paint_debug_info() debug method to Response in order to draw the response's Rect, it's id, and some of its state (active, hovered) via a color code:

Export-1708083028898

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@emilk emilk added the egui label Feb 16, 2024
@emilk emilk merged commit d468d43 into master Feb 16, 2024
35 of 36 checks passed
@emilk emilk deleted the antoine/response-paing-debug-info branch February 16, 2024 11:45
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…get's id and state (emilk#4056)

This PR adds a new `paint_debug_info()` debug method to `Response` in
order to draw the response's `Rect`, it's id, and some of its state
(active, hovered) via a color code:


![Export-1708083028898](https://github.com/emilk/egui/assets/49431240/ce050448-3f11-4bb1-8959-417d106a89ac)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants