pub struct AppWindow(VRc<ItemTreeVTable, InnerAppWindow>);Tuple Fields§
§0: VRc<ItemTreeVTable, InnerAppWindow>Implementations§
Source§impl AppWindow
impl AppWindow
pub fn new() -> Result<Self, PlatformError>
pub fn get_active_filter(&self) -> i32
pub fn set_active_filter(&self, value: i32)
pub fn get_active_tab(&self) -> i32
pub fn set_active_tab(&self, value: i32)
pub fn get_app_state(&self) -> SharedString
pub fn set_app_state(&self, value: SharedString)
pub fn invoke_check_for_updates(&self)
pub fn on_check_for_updates(&self, f: impl FnMut() + 'static)
pub fn get_connection_status(&self) -> SharedString
pub fn set_connection_status(&self, value: SharedString)
pub fn invoke_copy_log_entry(&self, arg_0: SharedString)
pub fn on_copy_log_entry(&self, f: impl FnMut(SharedString) + 'static)
pub fn invoke_copy_public_key(&self)
pub fn on_copy_public_key(&self, f: impl FnMut() + 'static)
pub fn get_cpu_cores(&self) -> SharedString
pub fn set_cpu_cores(&self, value: SharedString)
pub fn get_cpu_usage(&self) -> SharedString
pub fn set_cpu_usage(&self, value: SharedString)
pub fn get_log_count(&self) -> SharedString
pub fn set_log_count(&self, value: SharedString)
pub fn get_log_model(&self) -> ModelRc<LogEntry>
pub fn set_log_model(&self, value: ModelRc<LogEntry>)
pub fn get_minimize_to_tray(&self) -> bool
pub fn set_minimize_to_tray(&self, value: bool)
pub fn get_node_enabled(&self) -> bool
pub fn set_node_enabled(&self, value: bool)
pub fn get_node_name(&self) -> SharedString
pub fn set_node_name(&self, value: SharedString)
pub fn invoke_open_logs(&self)
pub fn on_open_logs(&self, f: impl FnMut() + 'static)
pub fn invoke_open_portal(&self)
pub fn on_open_portal(&self, f: impl FnMut() + 'static)
pub fn get_public_key(&self) -> SharedString
pub fn set_public_key(&self, value: SharedString)
pub fn invoke_register(&self, arg_0: SharedString)
pub fn on_register(&self, f: impl FnMut(SharedString) + 'static)
pub fn get_resource_chart(&self) -> Image
pub fn set_resource_chart(&self, value: Image)
pub fn invoke_search_changed(&self, arg_0: SharedString)
pub fn on_search_changed(&self, f: impl FnMut(SharedString) + 'static)
pub fn get_search_text(&self) -> SharedString
pub fn set_search_text(&self, value: SharedString)
pub fn invoke_set_filter(&self, arg_0: i32)
pub fn on_set_filter(&self, f: impl FnMut(i32) + 'static)
pub fn get_show_copied_feedback(&self) -> bool
pub fn set_show_copied_feedback(&self, value: bool)
pub fn get_show_unlink_confirm(&self) -> bool
pub fn set_show_unlink_confirm(&self, value: bool)
pub fn get_sims_per_second(&self) -> SharedString
pub fn set_sims_per_second(&self, value: SharedString)
pub fn get_throughput_chart(&self) -> Image
pub fn set_throughput_chart(&self, value: Image)
pub fn invoke_toggle_minimize_to_tray(&self)
pub fn on_toggle_minimize_to_tray(&self, f: impl FnMut() + 'static)
pub fn invoke_toggle_node(&self)
pub fn on_toggle_node(&self, f: impl FnMut() + 'static)
pub fn invoke_token_changed(&self, arg_0: SharedString)
pub fn on_token_changed(&self, f: impl FnMut(SharedString) + 'static)
pub fn get_token_error(&self) -> SharedString
pub fn set_token_error(&self, value: SharedString)
pub fn get_token_text(&self) -> SharedString
pub fn set_token_text(&self, value: SharedString)
pub fn get_token_valid(&self) -> bool
pub fn set_token_valid(&self, value: bool)
pub fn invoke_unlink(&self)
pub fn on_unlink(&self, f: impl FnMut() + 'static)
pub fn get_unlink_busy(&self) -> bool
pub fn set_unlink_busy(&self, value: bool)
pub fn get_unlink_error(&self) -> SharedString
pub fn set_unlink_error(&self, value: SharedString)
pub fn get_update_status(&self) -> SharedString
pub fn set_update_status(&self, value: SharedString)
pub fn get_version_text(&self) -> SharedString
pub fn set_version_text(&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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more