pub struct SceneNode { /* private fields */ }Expand description
Contains the layout of a layer and information required for drawing
Implementations§
source§impl SceneNode
impl SceneNode
pub fn new() -> Self
pub fn insert_flags(&mut self, flags: RenderableFlags)
pub fn remove_flags(&mut self, flags: RenderableFlags)
pub fn bounds(&self) -> Rect
pub fn bounds_with_children(&self) -> Rect
pub fn transformed_bounds(&self) -> Rect
pub fn transformed_bounds_with_effects(&self) -> Rect
pub fn transform(&self) -> Matrix
pub fn mark_for_deletion(&mut self)
pub fn is_deleted(&self) -> bool
pub fn set_debug_info(&mut self, debug_info: bool)
pub fn set_image_cached(&mut self, value: bool)
pub fn is_image_cached(&self) -> bool
pub fn set_picture_cached(&mut self, value: bool)
pub fn is_picture_cached(&self) -> bool
pub fn render_layer(&self) -> &RenderLayer
pub fn set_needs_repaint(&mut self, need_repaint: bool)
pub fn set_needs_layout(&mut self, need_layout: bool)
pub fn needs_repaint(&self) -> bool
pub fn needs_layout(&self) -> bool
pub fn pointer_events(&self) -> bool
pub fn contains_point(&self, point: &Point) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SceneNode
impl !RefUnwindSafe for SceneNode
impl Send for SceneNode
impl Sync for SceneNode
impl Unpin for SceneNode
impl !UnwindSafe for SceneNode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more