Struct wayland_server::protocol::wl_shell_surface::WlShellSurface
source · [−]pub struct WlShellSurface(_);
Implementations
sourceimpl WlShellSurface
impl WlShellSurface
sourcepub fn ping(&self, serial: u32)
pub fn ping(&self, serial: u32)
ping client
Ping a client to check if it is receiving events and sending requests. A client is expected to reply with a pong request.
sourcepub fn configure(&self, edges: Resize, width: i32, height: i32)
pub fn configure(&self, edges: Resize, width: i32, height: i32)
suggest resize
The configure event asks the client to resize its surface.
The size is a hint, in the sense that the client is free to ignore it if it doesn’t resize, pick a smaller size (to satisfy aspect ratio or resize in steps of NxM pixels).
The edges parameter provides a hint about how the surface was resized. The client may use this information to decide how to adjust its content to the new size (e.g. a scrolling area might adjust its content position to leave the viewable content unmoved).
The client is free to dismiss all but the last configure event it received.
The width and height arguments specify the size of the window in surface-local coordinates.
sourcepub fn popup_done(&self)
pub fn popup_done(&self)
popup interaction is done
The popup_done event is sent out when a popup grab is broken, that is, when the user clicks a surface that doesn’t belong to the client owning the popup surface.
Trait Implementations
sourceimpl AsRef<Resource<WlShellSurface>> for WlShellSurface
impl AsRef<Resource<WlShellSurface>> for WlShellSurface
sourceimpl Clone for WlShellSurface
impl Clone for WlShellSurface
sourcefn clone(&self) -> WlShellSurface
fn clone(&self) -> WlShellSurface
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WlShellSurface
impl Debug for WlShellSurface
sourceimpl From<Resource<WlShellSurface>> for WlShellSurface
impl From<Resource<WlShellSurface>> for WlShellSurface
sourceimpl From<WlShellSurface> for Resource<WlShellSurface>
impl From<WlShellSurface> for Resource<WlShellSurface>
sourcefn from(value: WlShellSurface) -> Self
fn from(value: WlShellSurface) -> Self
Converts to this type from the input type.
sourceimpl Interface for WlShellSurface
impl Interface for WlShellSurface
sourcefn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
sourceimpl PartialEq<WlShellSurface> for WlShellSurface
impl PartialEq<WlShellSurface> for WlShellSurface
sourcefn eq(&self, other: &WlShellSurface) -> bool
fn eq(&self, other: &WlShellSurface) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for WlShellSurface
impl StructuralEq for WlShellSurface
impl StructuralPartialEq for WlShellSurface
Auto Trait Implementations
impl !RefUnwindSafe for WlShellSurface
impl Send for WlShellSurface
impl Sync for WlShellSurface
impl Unpin for WlShellSurface
impl !UnwindSafe for WlShellSurface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn 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. Read more
sourcefn 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. Read more