pub struct EditorController { /* private fields */ }Expand description
The editor controller manages the editing of a single file
Implementations§
Source§impl EditorController
impl EditorController
pub fn new<Anim: 'static + Animation>(animation: Anim) -> EditorController
Trait Implementations§
Source§impl Controller for EditorController
impl Controller for EditorController
Source§fn get_subcontroller(&self, id: &str) -> Option<Arc<dyn Controller>>
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>>
fn get_viewmodel(&self) -> Option<Arc<dyn ViewModel>>
Retrieves the viewmodel for this controller
Source§fn action(&self, _action_id: &str, _action_data: &ActionParameter)
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>>>
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>>>
fn get_canvas_resources(&self) -> Option<Arc<ResourceManager<BindingCanvas>>>
Retrieves a resource manager containing the canvases used in the UI for this controller
Auto Trait Implementations§
impl Freeze for EditorController
impl !RefUnwindSafe for EditorController
impl Send for EditorController
impl Sync for EditorController
impl Unpin for EditorController
impl !UnwindSafe for EditorController
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