pub struct LayerSurface(Arc<LayerSurfaceInner>);Tuple Fields§
§0: Arc<LayerSurfaceInner>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 duplicate 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 Freeze for LayerSurface
impl !RefUnwindSafe for LayerSurface
impl Send for LayerSurface
impl Sync for LayerSurface
impl Unpin for LayerSurface
impl UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.