Struct flo_ui::controllers::PopupController
[−]
[src]
pub struct PopupController<ContentController: Controller> { /* fields omitted */ }
Controller that provides standard behaviour for popups. Supply this as a controller for a control that needs a popup. This will supply the popup container and suppress the popup UI while the popup is not visible.
Methods
impl<ContentController: Controller> PopupController<ContentController>
[src]
pub fn new(
controller: ContentController,
is_open: &Binding<bool>
) -> PopupController<ContentController>
[src]
controller: ContentController,
is_open: &Binding<bool>
) -> PopupController<ContentController>
Creates a new popup controller.
Default settings are a size of 100,100, popup center, offset 8
pub fn with_size<T: Into<BindRef<(u32, u32)>>>(
self,
size: T
) -> PopupController<ContentController>
[src]
self,
size: T
) -> PopupController<ContentController>
Returns a modified controller with a different size
pub fn with_direction<T: Into<BindRef<PopupDirection>>>(
self,
direction: T
) -> PopupController<ContentController>
[src]
self,
direction: T
) -> PopupController<ContentController>
Returns a modified controller with a different direction
pub fn with_offset<T: Into<BindRef<u32>>>(
self,
offset: T
) -> PopupController<ContentController>
[src]
self,
offset: T
) -> PopupController<ContentController>
Returns a modified controller with a different offset
Trait Implementations
impl<ContentController: Controller> Controller for PopupController<ContentController>
[src]
fn ui(&self) -> BindRef<Control>
[src]
Retrieves a Control representing the UI for this controller
fn get_viewmodel(&self) -> Option<Arc<ViewModel>>
[src]
Retrieves the viewmodel for this controller
fn get_subcontroller(&self, id: &str) -> Option<Arc<Controller>>
[src]
Attempts to retrieve a sub-controller of this controller
fn action(&self, action_id: &str, action_data: &ActionParameter)
[src]
Callback for when a control associated with this controller generates an action
fn get_image_resources(&self) -> Option<Arc<ResourceManager<Image>>>
[src]
Retrieves a resource manager containing the images used in the UI for this controller
fn get_canvas_resources(&self) -> Option<Arc<ResourceManager<BindingCanvas>>>
[src]
Retrieves a resource manager containing the canvases used in the UI for this controller
fn tick(&self)
[src]
Called just before an update is processed Read more