EditorController

Struct EditorController 

Source
pub struct EditorController { /* private fields */ }
Expand description

The editor controller manages the editing of a single file

Implementations§

Source§

impl EditorController

Source

pub fn new<Anim: 'static + Animation>(animation: Anim) -> EditorController

Source

pub fn timeline() -> Control

Creates the timeline control

Source

pub fn toolbox() -> Control

Creates the toolbar control

Source

pub fn canvas() -> Control

Creates the canvas control

Source

pub fn ui() -> Control

Creates the UI tree for this controller

Trait Implementations§

Source§

impl Controller for EditorController

Source§

fn ui(&self) -> BindRef<Control>

Retrieves a Control representing the UI for this controller
Source§

fn get_subcontroller(&self, id: &str) -> Option<Arc<dyn Controller>>

Attempts to retrieve a sub-controller of this controller
Source§

fn get_viewmodel(&self) -> Option<Arc<dyn ViewModel>>

Retrieves the viewmodel for this controller
Source§

fn action(&self, _action_id: &str, _action_data: &ActionParameter)

Callback for when a control associated with this controller generates an action
Source§

fn get_image_resources(&self) -> Option<Arc<ResourceManager<Image>>>

Retrieves a resource manager containing the images used in the UI for this controller
Source§

fn get_canvas_resources(&self) -> Option<Arc<ResourceManager<BindingCanvas>>>

Retrieves a resource manager containing the canvases used in the UI for this controller
Source§

fn tick(&self)

Called just before an update is processed Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.