Skip to content

Commit

Permalink
Add comment on set_clip_path
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Oct 21, 2024
1 parent d708015 commit 4b19ea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions masonry/src/contexts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,9 @@ impl LayoutCtx<'_> {
/// - It serves as a mask for painting operations of the widget's children (*not* the widget itself).
/// - Pointer events must be inside that path to reach the widget's children.
pub fn set_clip_path(&mut self, path: Rect) {
// This is intentionally not-gated because clip paths are:
// 1) Relatively rare in the tree
// 2) An easy potential source of items not being visible when expected
trace!("set_clip_path {:?}", path);
self.widget_state.clip = Some(path);
// TODO - Updating the clip path may have
Expand Down

0 comments on commit 4b19ea3

Please sign in to comment.