pub struct LayerNode {Show 15 fields
pub node_id: Option<NodeId>,
pub local_bounds: Rect,
pub transform_to_parent: ProjectiveTransform,
pub motion_context_animated: bool,
pub translated_content_context: bool,
pub graphics_layer: GraphicsLayer,
pub clip_to_bounds: bool,
pub shadow_clip: Option<Rect>,
pub hit_test: Option<HitTestNode>,
pub has_hit_targets: bool,
pub isolation: IsolationReasons,
pub cache_policy: CachePolicy,
pub cache_hashes: LayerRasterCacheHashes,
pub cache_hashes_valid: bool,
pub children: Vec<RenderNode>,
}Fields§
§node_id: Option<NodeId>§local_bounds: Rect§transform_to_parent: ProjectiveTransform§motion_context_animated: bool§translated_content_context: bool§graphics_layer: GraphicsLayer§clip_to_bounds: bool§shadow_clip: Option<Rect>§hit_test: Option<HitTestNode>§has_hit_targets: bool§isolation: IsolationReasons§cache_policy: CachePolicy§cache_hashes: LayerRasterCacheHashes§cache_hashes_valid: bool§children: Vec<RenderNode>Implementations§
Source§impl LayerNode
impl LayerNode
pub fn clip_rect(&self) -> Option<Rect>
pub fn effect(&self) -> Option<&RenderEffect>
pub fn backdrop(&self) -> Option<&RenderEffect>
pub fn opacity(&self) -> f32
pub fn blend_mode(&self) -> BlendMode
pub fn color_filter(&self) -> Option<ColorFilter>
pub fn target_content_hash(&self) -> u64
pub fn effect_hash(&self) -> u64
pub fn recompute_raster_cache_hashes(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerNode
impl !RefUnwindSafe for LayerNode
impl !Send for LayerNode
impl !Sync for LayerNode
impl Unpin for LayerNode
impl UnsafeUnpin for LayerNode
impl !UnwindSafe for LayerNode
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