-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public methods to access clip path
This adds public getters for clip path to non-`LayoutCtx` contexts, and also to `WidgetState` as it seems relevant for painting. The motivation is to remove private field accesses from `Widget::get_child_at_pos` as mentioned in #565 (comment). This leaves one private field access, namely `WidgetState::is_stashed`. As per the docs of `WidgetState` ("widgets will generally not interact with it directly"), that field perhaps should not be publicly accessible from `WidgetState`, but then it should be accessible from `WidgetRef`.
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 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