Skip to content

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.

2 participants