pub struct SpellLockShell {
pub window_manager: Rc<RefCell<SpellMultiWinHandler>>,
pub span: Span,
}Fields§
§window_manager: Rc<RefCell<SpellMultiWinHandler>>An instance of SpellMultiWinHandler.
span: SpanImplementations§
Source§impl SpellLockShell
impl SpellLockShell
pub fn new(window_manager: Rc<RefCell<SpellMultiWinHandler>>) -> Self
Trait Implementations§
Source§impl Platform for SpellLockShell
impl Platform for SpellLockShell
Source§fn create_window_adapter(&self) -> Result<Rc<dyn WindowAdapter>, PlatformError>
fn create_window_adapter(&self) -> Result<Rc<dyn WindowAdapter>, PlatformError>
Instantiate a window for a component.
Source§fn debug_log(&self, arguments: Arguments<'_>)
fn debug_log(&self, arguments: Arguments<'_>)
This function is called when debug() is used in .slint files. The implementation
should direct the output to some developer visible terminal. The default implementation
uses stderr if available, or
console.log when targeting wasm.Source§fn run_event_loop(&self) -> Result<(), PlatformError>
fn run_event_loop(&self) -> Result<(), PlatformError>
Spins an event loop and renders the visible windows.
Source§fn new_event_loop_proxy(&self) -> Option<Box<dyn EventLoopProxy>>
fn new_event_loop_proxy(&self) -> Option<Box<dyn EventLoopProxy>>
Return an
EventLoopProxy that can be used to send event to the event loop Read moreSource§fn duration_since_start(&self) -> Duration
fn duration_since_start(&self) -> Duration
Returns the current time as a monotonic duration since the start of the program Read more
Source§fn click_interval(&self) -> Duration
fn click_interval(&self) -> Duration
Returns the current interval to internal measure the duration to send a double click event. Read more
Source§fn cursor_flash_cycle(&self) -> Duration
fn cursor_flash_cycle(&self) -> Duration
Returns the current rate at which the text cursor should flash or blink. Read more
Auto Trait Implementations§
impl Freeze for SpellLockShell
impl !RefUnwindSafe for SpellLockShell
impl !Send for SpellLockShell
impl !Sync for SpellLockShell
impl Unpin for SpellLockShell
impl !UnwindSafe for SpellLockShell
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.