Struct smithay_client_toolkit::shell::wlr_layer::LayerSurface
source · pub struct LayerSurface(/* private fields */);
Implementations§
source§impl LayerSurface
impl LayerSurface
pub fn from_wlr_surface(surface: &ZwlrLayerSurfaceV1) -> Option<LayerSurface>
pub fn get_popup(&self, popup: &XdgPopup)
pub fn set_size(&self, width: u32, height: u32)
pub fn set_anchor(&self, anchor: Anchor)
pub fn set_exclusive_zone(&self, zone: i32)
pub fn set_margin(&self, top: i32, right: i32, bottom: i32, left: i32)
pub fn set_keyboard_interactivity(&self, value: KeyboardInteractivity)
pub fn set_layer(&self, layer: Layer)
pub fn kind(&self) -> &SurfaceKind
Trait Implementations§
source§impl Clone for LayerSurface
impl Clone for LayerSurface
source§fn clone(&self) -> LayerSurface
fn clone(&self) -> LayerSurface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LayerSurface
impl Debug for LayerSurface
source§impl PartialEq for LayerSurface
impl PartialEq for LayerSurface
source§impl WaylandSurface for LayerSurface
impl WaylandSurface for LayerSurface
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 !RefUnwindSafe for LayerSurface
impl Send for LayerSurface
impl Sync for LayerSurface
impl Unpin for LayerSurface
impl !UnwindSafe for LayerSurface
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.