pub struct Dialog { /* private fields */ }Implementations§
Source§impl Dialog
impl Dialog
pub fn new<D, GLOBAL>(
parent: &XdgToplevel,
qh: &QueueHandle<D>,
compositor: &impl ProvidesBoundGlobal<WlCompositor, 6>,
wm: &GLOBAL,
decoration_manager: Option<&ZxdgDecorationManagerV1>,
decorations: WindowDecorations,
) -> Result<Self, GlobalError>where
D: Dispatch<WlSurface, SurfaceData<()>> + Dispatch<XdgSurface, DialogData> + Dispatch<XdgDialogV1, DialogData> + Dispatch<XdgToplevel, DialogData> + Dispatch<ZxdgToplevelDecorationV1, DialogData> + 'static,
GLOBAL: ProvidesBoundGlobal<XdgWmDialogV1, 1> + ProvidesBoundGlobal<XdgWmBase, 5>,
pub fn from_surface<D, GLOBAL>(
surface: impl Into<Surface>,
parent: &XdgToplevel,
qh: &QueueHandle<D>,
wm_base: &GLOBAL,
decoration_manager: Option<&ZxdgDecorationManagerV1>,
decorations: WindowDecorations,
) -> Result<Self, GlobalError>where
D: Dispatch<XdgSurface, DialogData> + Dispatch<XdgDialogV1, DialogData> + Dispatch<XdgToplevel, DialogData> + Dispatch<ZxdgToplevelDecorationV1, DialogData> + 'static,
GLOBAL: ProvidesBoundGlobal<XdgWmDialogV1, 1> + ProvidesBoundGlobal<XdgWmBase, 5>,
pub fn from_xdg_toplevel(toplevel: &XdgToplevel) -> Option<Dialog>
pub fn from_xdg_surface(surface: &XdgSurface) -> Option<Dialog>
pub fn from_toplevel_decoration( decoration: &ZxdgToplevelDecorationV1, ) -> Option<Dialog>
pub fn xdg_dialog(&self) -> &XdgDialogV1
pub fn xdg_shell_surface(&self) -> &XdgShellSurface
pub fn xdg_toplevel(&self) -> &XdgToplevel
pub fn xdg_surface(&self) -> &XdgSurface
pub fn wl_surface(&self) -> &WlSurface
pub fn set_modal(&self, modal: bool)
Trait Implementations§
Source§impl WaylandSurface for Dialog
impl WaylandSurface for Dialog
Source§fn wl_surface(&self) -> &WlSurface
fn wl_surface(&self) -> &WlSurface
The underlying
WlSurface.fn attach(&self, buffer: Option<&WlBuffer>, x: u32, y: u32)
fn set_opaque_region(&self, region: Option<&WlRegion>)
fn set_input_region(&self, region: Option<&WlRegion>)
fn set_buffer_transform(&self, transform: Transform) -> Result<(), Unsupported>
fn set_buffer_scale(&self, scale: u32) -> Result<(), Unsupported>
fn offset(&self, x: u32, y: u32) -> Result<(), Unsupported>
Auto Trait Implementations§
impl Freeze for Dialog
impl !RefUnwindSafe for Dialog
impl Send for Dialog
impl Sync for Dialog
impl Unpin for Dialog
impl UnsafeUnpin for Dialog
impl !UnwindSafe for Dialog
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.