pub struct LayerNode {Show 19 fields
pub node_id: Option<NodeId>,
pub local_bounds: Rect,
pub transform_to_parent: ProjectiveTransform,
pub content_offset: Point,
pub motion_context_animated: bool,
pub translated_content_context: bool,
pub translated_content_offset: Point,
pub scene_children_origin: Point,
pub scene_children_layer_translation: Point,
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§content_offset: Point§motion_context_animated: bool§translated_content_context: bool§translated_content_offset: Point§scene_children_origin: PointWindow-space origin this layer’s children are placed from, and the
accumulated ancestor graphics-layer translation, captured during the
full per-frame scene build. Read back when a dirty subtree is rebuilt in
isolation (update_scene_from_applier) so a scrolling field’s window
origin stays live during a fling even though the ancestor chain is not
re-walked from the root. Defaults to the identity origin.
scene_children_layer_translation: Point§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 motion_source_content_hash(&self) -> u64
pub fn effect_hash(&self) -> u64
pub fn recompute_raster_cache_hashes(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LayerNode
impl !Send for LayerNode
impl !Sync for LayerNode
impl !UnwindSafe for LayerNode
impl Freeze for LayerNode
impl Unpin for LayerNode
impl UnsafeUnpin 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