Struct fuchsia_scenic::EntityNode
source · pub struct EntityNode(/* private fields */);
Implementations§
source§impl EntityNode
impl EntityNode
pub fn new(session: SessionPtr) -> EntityNode
pub fn set_clip(&self, clip_id: u32, clip_to_self: bool)
pub fn attach(&self, view_holder: &ViewHolder)
Methods from Deref<Target = ContainerNode>§
pub fn add_child(&self, node: &Node)
pub fn remove_child(&self, node: &Node)
pub fn remove_all_children(&self)
pub fn add_part(&self, node: &Node)
Methods from Deref<Target = Node>§
pub fn id(&self) -> u32
pub fn resource(&self) -> &Resource
pub fn set_translation(&self, x: f32, y: f32, z: f32)
pub fn set_scale(&self, x: f32, y: f32, z: f32)
pub fn set_rotation(&self, x: f32, y: f32, z: f32, w: f32)
pub fn set_anchor(&self, x: f32, y: f32, z: f32)
pub fn detach(&self)
Trait Implementations§
source§impl Deref for EntityNode
impl Deref for EntityNode
§type Target = ContainerNode
type Target = ContainerNode
The resulting type after dereferencing.
source§fn deref(&self) -> &ContainerNode
fn deref(&self) -> &ContainerNode
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for EntityNode
impl Send for EntityNode
impl Sync for EntityNode
impl Unpin for EntityNode
impl !UnwindSafe for EntityNode
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