pub struct SpellLayerShell {
pub window_adapter: Rc<SpellSkiaWinAdapter>,
pub span: Span,
}Expand description
Previously needed to be implemented, now this struct is called and set internally
when invoke_spell is called.
Fields§
§window_adapter: Rc<SpellSkiaWinAdapter>An instance of SpellSkiaWinAdapter.
span: SpanImplementations§
Source§impl SpellLayerShell
impl SpellLayerShell
Sourcepub fn new(window_adapter: Rc<SpellSkiaWinAdapter>) -> Self
pub fn new(window_adapter: Rc<SpellSkiaWinAdapter>) -> Self
Creates an instance of this Platform implementation, for internal use.
Trait Implementations§
Source§impl Platform for SpellLayerShell
impl Platform for SpellLayerShell
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 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 run_event_loop(&self) -> Result<(), PlatformError>
fn run_event_loop(&self) -> Result<(), PlatformError>
Spins an event loop and renders the visible windows.
Source§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 SpellLayerShell
impl !RefUnwindSafe for SpellLayerShell
impl !Send for SpellLayerShell
impl !Sync for SpellLayerShell
impl Unpin for SpellLayerShell
impl !UnwindSafe for SpellLayerShell
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.