Skip to main content

AppWindow

Struct AppWindow 

Source
pub struct AppWindow(VRc<ItemTreeVTable, InnerAppWindow>);

Tuple Fields§

§0: VRc<ItemTreeVTable, InnerAppWindow>

Implementations§

Source§

impl AppWindow

Source

pub fn new() -> Result<Self, PlatformError>

Source

pub fn get_active_filter(&self) -> i32

Source

pub fn set_active_filter(&self, value: i32)

Source

pub fn get_active_tab(&self) -> i32

Source

pub fn set_active_tab(&self, value: i32)

Source

pub fn get_app_state(&self) -> SharedString

Source

pub fn set_app_state(&self, value: SharedString)

Source

pub fn invoke_check_for_updates(&self)

Source

pub fn on_check_for_updates(&self, f: impl FnMut() + 'static)

Source

pub fn get_connection_status(&self) -> SharedString

Source

pub fn set_connection_status(&self, value: SharedString)

Source

pub fn invoke_copy_log_entry(&self, arg_0: SharedString)

Source

pub fn on_copy_log_entry(&self, f: impl FnMut(SharedString) + 'static)

Source

pub fn invoke_copy_public_key(&self)

Source

pub fn on_copy_public_key(&self, f: impl FnMut() + 'static)

Source

pub fn get_cpu_cores(&self) -> SharedString

Source

pub fn set_cpu_cores(&self, value: SharedString)

Source

pub fn get_cpu_usage(&self) -> SharedString

Source

pub fn set_cpu_usage(&self, value: SharedString)

Source

pub fn get_log_count(&self) -> SharedString

Source

pub fn set_log_count(&self, value: SharedString)

Source

pub fn get_log_model(&self) -> ModelRc<LogEntry>

Source

pub fn set_log_model(&self, value: ModelRc<LogEntry>)

Source

pub fn get_minimize_to_tray(&self) -> bool

Source

pub fn set_minimize_to_tray(&self, value: bool)

Source

pub fn get_node_enabled(&self) -> bool

Source

pub fn set_node_enabled(&self, value: bool)

Source

pub fn get_node_name(&self) -> SharedString

Source

pub fn set_node_name(&self, value: SharedString)

Source

pub fn invoke_open_logs(&self)

Source

pub fn on_open_logs(&self, f: impl FnMut() + 'static)

Source

pub fn invoke_open_portal(&self)

Source

pub fn on_open_portal(&self, f: impl FnMut() + 'static)

Source

pub fn get_public_key(&self) -> SharedString

Source

pub fn set_public_key(&self, value: SharedString)

Source

pub fn invoke_register(&self, arg_0: SharedString)

Source

pub fn on_register(&self, f: impl FnMut(SharedString) + 'static)

Source

pub fn get_resource_chart(&self) -> Image

Source

pub fn set_resource_chart(&self, value: Image)

Source

pub fn invoke_search_changed(&self, arg_0: SharedString)

Source

pub fn on_search_changed(&self, f: impl FnMut(SharedString) + 'static)

Source

pub fn get_search_text(&self) -> SharedString

Source

pub fn set_search_text(&self, value: SharedString)

Source

pub fn invoke_set_filter(&self, arg_0: i32)

Source

pub fn on_set_filter(&self, f: impl FnMut(i32) + 'static)

Source

pub fn get_show_copied_feedback(&self) -> bool

Source

pub fn set_show_copied_feedback(&self, value: bool)

Source

pub fn get_sims_per_second(&self) -> SharedString

Source

pub fn set_sims_per_second(&self, value: SharedString)

Source

pub fn get_throughput_chart(&self) -> Image

Source

pub fn set_throughput_chart(&self, value: Image)

Source

pub fn invoke_toggle_minimize_to_tray(&self)

Source

pub fn on_toggle_minimize_to_tray(&self, f: impl FnMut() + 'static)

Source

pub fn invoke_toggle_node(&self)

Source

pub fn on_toggle_node(&self, f: impl FnMut() + 'static)

Source

pub fn invoke_token_changed(&self, arg_0: SharedString)

Source

pub fn on_token_changed(&self, f: impl FnMut(SharedString) + 'static)

Source

pub fn get_token_error(&self) -> SharedString

Source

pub fn set_token_error(&self, value: SharedString)

Source

pub fn get_token_text(&self) -> SharedString

Source

pub fn set_token_text(&self, value: SharedString)

Source

pub fn get_token_valid(&self) -> bool

Source

pub fn set_token_valid(&self, value: bool)

Source

pub fn get_update_status(&self) -> SharedString

Source

pub fn set_update_status(&self, value: SharedString)

Source

pub fn get_version_text(&self) -> SharedString

Source

pub fn set_version_text(&self, value: SharedString)

Trait Implementations§

Source§

impl ComponentHandle for AppWindow

Source§

fn as_weak(&self) -> Weak<Self>

Returns a new weak pointer.
Source§

fn clone_strong(&self) -> Self

Returns a clone of this handle that’s a strong reference.
Source§

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>

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>

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.
Source§

fn window(&self) -> &Window

Returns the Window associated with this component. The window API can be used to control different aspects of the integration into the windowing system, such as the position on the screen.
Source§

fn global<'a, T: Global<'a, Self>>(&'a self) -> T

This function provides access to instances of global singletons exported in .slint. See [Global] for an example how to export and access globals from .slint markup.
Source§

impl From<AppWindow> for VRc<ItemTreeVTable, InnerAppWindow>

Source§

fn from(value: AppWindow) -> Self

Converts to this type from the input type.

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
§

impl<T> Downcast for T
where T: 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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more