File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ impl PaintDom {
110110 let context = PaintContext {
111111 dom,
112112 layout,
113+ clip : self . current_clip ,
113114 paint : self ,
114115 } ;
115116 let node = dom. get ( id) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use glam::Vec2;
99use crate :: dom:: Dom ;
1010use crate :: event:: EventResponse ;
1111use crate :: event:: { EventInterest , WidgetEvent } ;
12- use crate :: geometry:: { Constraints , FlexFit } ;
12+ use crate :: geometry:: { Constraints , FlexFit , Rect } ;
1313use crate :: input:: InputState ;
1414use crate :: layout:: LayoutDom ;
1515use crate :: navigation:: NavDirection ;
@@ -48,6 +48,7 @@ pub struct PaintContext<'dom> {
4848 pub dom : & ' dom Dom ,
4949 pub layout : & ' dom LayoutDom ,
5050 pub paint : & ' dom mut PaintDom ,
51+ pub clip : Rect ,
5152}
5253
5354impl PaintContext < ' _ > {
You can’t perform that action at this time.
0 commit comments