pub struct LayerProps {
pub layer_bounds: Option<Rect>,
pub translated_content_offset: Point,
pub hit_test: Option<HitTestNode>,
pub isolation: IsolationReasons,
pub cache_policy: CachePolicy,
/* private fields */
}Expand description
The properties of a record that has pointer handling, layer bounds other than its node rect, translated content, a reason to draw offscreen or a cache policy.
Fields§
§layer_bounds: Option<Rect>The bounds of the layer, where its clip cuts, its transforms pivot and an offscreen pass draws it, when they differ from the node rect.
translated_content_offset: PointTranslation of the content when the record moves its content as one translated block.
hit_test: Option<HitTestNode>Pointer handling of the node, or None when the node has none.
isolation: IsolationReasonsThe reasons the record is drawn through its own offscreen buffer.
cache_policy: CachePolicyWhether a renderer may keep the record’s pixels between frames.
Trait Implementations§
Source§impl Clone for LayerProps
impl Clone for LayerProps
Auto Trait Implementations§
impl !RefUnwindSafe for LayerProps
impl !Send for LayerProps
impl !Sync for LayerProps
impl !UnwindSafe for LayerProps
impl Forget for LayerProps
impl Freeze for LayerProps
impl Move for LayerProps
impl Unpin for LayerProps
impl UnsafeUnpin for LayerProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more