pub struct Sprite2D { /* private fields */ }Expand description
Visual appearance component rendered by GameRenderContext::render_world.
Implementations§
Source§impl Sprite2D
impl Sprite2D
pub fn get_shape(&self) -> EntityVisualShape
pub fn get_mut_shape(&mut self) -> &mut EntityVisualShape
pub fn set_shape(&mut self, val: EntityVisualShape) -> &mut Self
pub fn get_size(&self) -> Size
pub fn get_mut_size(&mut self) -> &mut Size
pub fn set_size(&mut self, val: Size) -> &mut Self
pub fn get_color(&self) -> Color
pub fn get_mut_color(&mut self) -> &mut Color
pub fn set_color(&mut self, val: Color) -> &mut Self
pub fn get_accent(&self) -> Color
pub fn get_mut_accent(&mut self) -> &mut Color
pub fn set_accent(&mut self, val: Color) -> &mut Self
pub fn get_z_order(&self) -> i32
pub fn get_mut_z_order(&mut self) -> &mut i32
pub fn set_z_order(&mut self, val: i32) -> &mut Self
pub fn get_corner_radius(&self) -> f32
pub fn get_mut_corner_radius(&mut self) -> &mut f32
pub fn set_corner_radius(&mut self, val: f32) -> &mut Self
pub fn get_visible(&self) -> bool
pub fn get_mut_visible(&mut self) -> &mut bool
pub fn set_visible(&mut self, val: bool) -> &mut Self
Trait Implementations§
impl Copy for Sprite2D
impl StructuralPartialEq for Sprite2D
Auto Trait Implementations§
impl Forget for Sprite2D
impl Freeze for Sprite2D
impl Move for Sprite2D
impl RefUnwindSafe for Sprite2D
impl Send for Sprite2D
impl Sync for Sprite2D
impl Unpin for Sprite2D
impl UnsafeUnpin for Sprite2D
impl UnwindSafe for Sprite2D
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