Struct rust_animation::stage::Stage
source · pub struct Stage<'a> {
pub name: String,
pub stretch: Option<Stretch>,
/* private fields */
}
Fields§
§name: String
§stretch: Option<Stretch>
Implementations§
source§impl<'a> Stage<'a>
impl<'a> Stage<'a>
pub fn new( name: String, vw: u32, vh: u32, layout_mode: LayoutMode, event_handler: Option<Box<dyn EventHandler + 'a>> ) -> Self
pub fn set_image(&mut self, path: String)
pub fn set_style(&mut self, style: Style)
pub fn set_visible(&mut self, visible: bool)
pub fn set_needs_layout(&mut self)
pub fn set_layout(&mut self, layout: Option<Box<dyn Layout + 'a>>)
pub fn handle_input(&mut self, key: Key)
pub fn render(&mut self, shader_program: GLuint)
pub fn add_actor(&mut self, actor: Actor<'a>) -> usize
pub fn add_sub_actor(&mut self, actor: &mut Actor<'a>, sub_actor: Actor<'a>)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Stage<'a>
impl<'a> !Send for Stage<'a>
impl<'a> !Sync for Stage<'a>
impl<'a> Unpin for Stage<'a>
impl<'a> !UnwindSafe for Stage<'a>
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