-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DefaultShouldRender(), transform guards/set method
- `Drawable#DefaultShouldRender` replaces the use of separate `DefaultShow` fields in each Drawable subclass. - guards have been added to each transformation method to return immediately if the modification is irrelevant. - In the case of set methods, if the set is equal to the current value. - In the case of other methods, if the modifier is 0.0. - a `setTransform` method was also added to reduce code bloat while trying to set several transformation values at once.
- Loading branch information
1 parent
c535bba
commit 036ebb9
Showing
3 changed files
with
81 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters