[−][src]Struct wayland_protocols::wlr::unstable::layer_shell::v1::server::zwlr_layer_surface_v1::ZwlrLayerSurfaceV1
Implementations
impl ZwlrLayerSurfaceV1
[src]
pub fn configure(&self, serial: u32, width: u32, height: u32)
[src]
suggest a surface change
The configure event asks the client to resize its surface.
Clients should arrange their surface for the new states, and then send an ack_configure request with the serial sent in this configure event at some point before committing the new surface.
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.
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). If the client picks a smaller size and is anchored to two opposite anchors (e.g. 'top' and 'bottom'), the surface will be centered on this axis.
If the width or height arguments are zero, it means the client should decide its own window dimension.
pub fn closed(&self)
[src]
surface should be closed
The closed event is sent by the compositor when the surface will no longer be shown. The output may have been destroyed or the user may have asked for it to be removed. Further changes to the surface will be ignored. The client should destroy the resource after receiving this event, and create a new surface if they so choose.
Trait Implementations
impl AsRef<Resource<ZwlrLayerSurfaceV1>> for ZwlrLayerSurfaceV1
[src]
impl Clone for ZwlrLayerSurfaceV1
[src]
fn clone(&self) -> ZwlrLayerSurfaceV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZwlrLayerSurfaceV1
[src]
impl Eq for ZwlrLayerSurfaceV1
[src]
impl From<Resource<ZwlrLayerSurfaceV1>> for ZwlrLayerSurfaceV1
[src]
impl From<ZwlrLayerSurfaceV1> for Resource<ZwlrLayerSurfaceV1>
[src]
fn from(value: ZwlrLayerSurfaceV1) -> Self
[src]
impl Interface for ZwlrLayerSurfaceV1
[src]
type Request = Request
Set of requests associated to this interface Read more
type Event = Event
Set of events associated to this interface Read more
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZwlrLayerSurfaceV1> for ZwlrLayerSurfaceV1
[src]
fn eq(&self, other: &ZwlrLayerSurfaceV1) -> bool
[src]
fn ne(&self, other: &ZwlrLayerSurfaceV1) -> bool
[src]
impl StructuralEq for ZwlrLayerSurfaceV1
[src]
impl StructuralPartialEq for ZwlrLayerSurfaceV1
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZwlrLayerSurfaceV1
impl Send for ZwlrLayerSurfaceV1
impl Sync for ZwlrLayerSurfaceV1
impl Unpin for ZwlrLayerSurfaceV1
impl !UnwindSafe for ZwlrLayerSurfaceV1
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,