Skip to main content

PopupSlint

Trait PopupSlint 

Source
pub trait PopupSlint {
    // Required methods
    fn create_new(settings: PopupCore) -> Self
       where Self: Sized;
    fn converter_popup(
        &self,
        wl_surface: &WlSurface,
        qh: &QueueHandle<SpellWin>,
    );
    fn inner(&self) -> &Popup;
    fn first_configure(&self) -> bool;
    fn adapter(&self) -> &Rc<SpellSkiaWinAdapter>;
}
Expand description

Trait necessary to be implemented for an UI object to become a popup. It is not the cleanest implementation and can be removed for a better/lighter alternative or design pattern. To see an implementation, check the popup example from spell-demo.

Required Methods§

Source

fn create_new(settings: PopupCore) -> Self
where Self: Sized,

Creates a new Instance of a slint frontend, wayland backend XDG popup.

Source

fn converter_popup(&self, wl_surface: &WlSurface, qh: &QueueHandle<SpellWin>)

Internal method not to be called directly.

Source

fn inner(&self) -> &Popup

Internal method not to be called directly.

Source

fn first_configure(&self) -> bool

Internal method not to be called directly.

Source

fn adapter(&self) -> &Rc<SpellSkiaWinAdapter>

Internal method not to be called directly.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§