pub struct AppWindow(/* private fields */);Implementations§
Source§impl AppWindow
impl AppWindow
pub fn new() -> Result<Self, PlatformError>
pub fn get_active_view(&self) -> SharedString
pub fn set_active_view(&self, value: SharedString)
pub fn get_col_left_width(&self) -> Coord
pub fn set_col_left_width(&self, value: Coord)
pub fn get_col_right_width(&self) -> Coord
pub fn set_col_right_width(&self, value: Coord)
pub fn get_right_panel_label(&self) -> SharedString
pub fn set_right_panel_label(&self, value: SharedString)
pub fn get_row_bottom_ratio(&self) -> f32
pub fn set_row_bottom_ratio(&self, value: f32)
pub fn get_row_main_ratio(&self) -> f32
pub fn set_row_main_ratio(&self, value: f32)
pub fn get_row_top_ratio(&self) -> f32
pub fn set_row_top_ratio(&self, value: f32)
pub fn get_show_toolbar(&self) -> bool
pub fn set_show_toolbar(&self, value: bool)
pub fn get_status_prefix(&self) -> SharedString
pub fn set_status_prefix(&self, value: SharedString)
pub fn get_status_text(&self) -> SharedString
pub fn set_status_text(&self, value: SharedString)
pub fn invoke_toolbar_clicked(&self, arg_0: SharedString)
pub fn on_toolbar_clicked(&self, f: impl FnMut(SharedString) + 'static)
pub fn get_toolbar_items(&self) -> ModelRc<ShellToolbarItem>
pub fn set_toolbar_items(&self, value: ModelRc<ShellToolbarItem>)
pub fn get_window_title(&self) -> SharedString
pub fn set_window_title(&self, value: SharedString)
Trait Implementations§
Source§impl ComponentHandle for AppWindow
impl ComponentHandle for AppWindow
Source§fn clone_strong(&self) -> Self
fn clone_strong(&self) -> Self
Returns a clone of this handle that’s a strong reference.
Source§fn run(&self) -> Result<(), PlatformError>
fn run(&self) -> Result<(), PlatformError>
This is a convenience function that first calls
Self::show, followed by crate::run_event_loop()
and Self::hide.Source§fn show(&self) -> Result<(), PlatformError>
fn show(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::show().
This shows the window on the screen and maintains an extra strong reference while
the window is visible. To react to events from the windowing system, such as draw
requests or mouse/touch input, it is still necessary to spin the event loop,
using crate::run_event_loop.Source§fn hide(&self) -> Result<(), PlatformError>
fn hide(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::hide().
Hides the window, so that it is not visible anymore. The additional strong reference
on the associated component, that was created when show() was called, is dropped.Auto Trait Implementations§
impl Freeze for AppWindow
impl !RefUnwindSafe for AppWindow
impl !Send for AppWindow
impl !Sync for AppWindow
impl Unpin for AppWindow
impl UnsafeUnpin for AppWindow
impl !UnwindSafe for AppWindow
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.