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

Make DrawMarginFrame rendering more flexible #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mark-monteiro
Copy link

Use a virtual method for measuring each paint task in DrawMarginFrame without changing any of the actual rendering logic.

This refactoring makes it easier for sub-classes to implement custom rendering logic. Sub-classes only need to override the method for the specific paint task they want to alter.

If this approach looks good, it could also be applied to other components where appropriate (though I think this is one of the more simple examples, this pattern probably wouldn't be as straightforward with other classes)

This refactoring makes it easier for sub-classes to implement custom rendering logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants