pub struct SpellXDGPopup { /* private fields */ }Expand description
This struct holds the backend information for creating and managing a XDG
popup in spell. It needs a PopupCore instance for initialisation
and it needs to be initialsed before the corresponding slint frontend. It is
better to wrap it in an external wrapper object along with frontend to satisfy
trait requirements of PopupSlint. For example, refer to popup example in
spell-demo.
Implementations§
Source§impl SpellXDGPopup
impl SpellXDGPopup
Sourcepub fn popup(&self) -> &Popup
pub fn popup(&self) -> &Popup
Method necessary for a PopupSlint implementation.
Sourcepub fn first_configure(&self) -> bool
pub fn first_configure(&self) -> bool
Method necessary for a PopupSlint implementation.
Sourcepub fn adapter(&self) -> &Rc<SpellSkiaWinAdapter>
pub fn adapter(&self) -> &Rc<SpellSkiaWinAdapter>
Method necessary for a PopupSlint implementation.
Sourcepub fn converter_popup<'a>(
&self,
wl_surface: &'a WlSurface,
qh: &'a QueueHandle<SpellWin>,
)
pub fn converter_popup<'a>( &self, wl_surface: &'a WlSurface, qh: &'a QueueHandle<SpellWin>, )
Method necessary for a PopupSlint implementation.
Trait Implementations§
Source§impl Dispatch<WpFractionalScaleManagerV1, GlobalData> for SpellXDGPopup
impl Dispatch<WpFractionalScaleManagerV1, GlobalData> for SpellXDGPopup
Source§fn event(
state: &mut Self,
proxy: &WpFractionalScaleManagerV1,
event: <WpFractionalScaleManagerV1 as Proxy>::Event,
data: &GlobalData,
conn: &Connection,
qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, proxy: &WpFractionalScaleManagerV1, event: <WpFractionalScaleManagerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<Self>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<Self>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<WpFractionalScaleV1, WlSurface> for SpellXDGPopup
impl Dispatch<WpFractionalScaleV1, WlSurface> for SpellXDGPopup
Source§fn event(
state: &mut Self,
proxy: &WpFractionalScaleV1,
event: <WpFractionalScaleV1 as Proxy>::Event,
data: &WlSurface,
conn: &Connection,
qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, proxy: &WpFractionalScaleV1, event: <WpFractionalScaleV1 as Proxy>::Event, data: &WlSurface, conn: &Connection, qhandle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<Self>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<Self>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<WpViewport, GlobalData> for SpellXDGPopup
impl Dispatch<WpViewport, GlobalData> for SpellXDGPopup
Source§fn event(
state: &mut Self,
proxy: &WpViewport,
event: <WpViewport as Proxy>::Event,
data: &GlobalData,
conn: &Connection,
qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, proxy: &WpViewport, event: <WpViewport as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<Self>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<Self>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<WpViewporter, GlobalData> for SpellXDGPopup
impl Dispatch<WpViewporter, GlobalData> for SpellXDGPopup
Source§fn event(
state: &mut Self,
proxy: &WpViewporter,
event: <WpViewporter as Proxy>::Event,
data: &GlobalData,
conn: &Connection,
qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, proxy: &WpViewporter, event: <WpViewporter as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<Self>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<Self>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Auto Trait Implementations§
impl !Freeze for SpellXDGPopup
impl !RefUnwindSafe for SpellXDGPopup
impl !Send for SpellXDGPopup
impl !Sync for SpellXDGPopup
impl !UnwindSafe for SpellXDGPopup
impl Unpin for SpellXDGPopup
impl UnsafeUnpin for SpellXDGPopup
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.