Struct wayland_protocols::xdg::dialog::v1::client::xdg_wm_dialog_v1::XdgWmDialogV1
source · pub struct XdgWmDialogV1 { /* private fields */ }
Expand description
create dialogs related to other toplevels
The xdg_wm_dialog_v1 interface is exposed as a global object allowing to register surfaces with a xdg_toplevel role as “dialogs” relative to another toplevel.
The compositor may let this relation influence how the surface is placed, displayed or interacted with.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
This interface has no events.
Implementations§
source§impl XdgWmDialogV1
impl XdgWmDialogV1
sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy the dialog manager object
Destroys the xdg_wm_dialog_v1 object. This does not affect the xdg_dialog_v1 objects generated through it.
sourcepub fn get_xdg_dialog<U: Send + Sync + 'static, D: Dispatch<XdgDialogV1, U> + 'static>(
&self,
toplevel: &XdgToplevel,
qh: &QueueHandle<D>,
udata: U,
) -> XdgDialogV1
pub fn get_xdg_dialog<U: Send + Sync + 'static, D: Dispatch<XdgDialogV1, U> + 'static>( &self, toplevel: &XdgToplevel, qh: &QueueHandle<D>, udata: U, ) -> XdgDialogV1
create a dialog object
Creates a xdg_dialog_v1 object for the given toplevel. See the interface description for more details.
Compositors must raise an already_used error if clients attempt to create multiple xdg_dialog_v1 objects for the same xdg_toplevel.
Trait Implementations§
source§impl Borrow<ObjectId> for XdgWmDialogV1
impl Borrow<ObjectId> for XdgWmDialogV1
source§impl Clone for XdgWmDialogV1
impl Clone for XdgWmDialogV1
source§fn clone(&self) -> XdgWmDialogV1
fn clone(&self) -> XdgWmDialogV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XdgWmDialogV1
impl Debug for XdgWmDialogV1
source§impl Hash for XdgWmDialogV1
impl Hash for XdgWmDialogV1
source§impl PartialEq<Weak<XdgWmDialogV1>> for XdgWmDialogV1
impl PartialEq<Weak<XdgWmDialogV1>> for XdgWmDialogV1
source§impl PartialEq for XdgWmDialogV1
impl PartialEq for XdgWmDialogV1
source§impl Proxy for XdgWmDialogV1
impl Proxy for XdgWmDialogV1
source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, ) -> Result<I, InvalidId>
source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Event), DispatchError>
source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for XdgWmDialogV1
Auto Trait Implementations§
impl Freeze for XdgWmDialogV1
impl !RefUnwindSafe for XdgWmDialogV1
impl Send for XdgWmDialogV1
impl Sync for XdgWmDialogV1
impl Unpin for XdgWmDialogV1
impl !UnwindSafe for XdgWmDialogV1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.