[−][src]Struct wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_surface_v1::ZwlrLayerSurfaceV1
Implementations
impl ZwlrLayerSurfaceV1
[src]
pub fn set_size(&self, width: u32, height: u32)
[src]
sets the size of the surface
Sets the size of the surface in surface-local coordinates. The compositor will display the surface centered with respect to its anchors.
If you pass 0 for either value, the compositor will assign it and inform you of the assignment in the configure event. You must set your anchor to opposite edges in the dimensions you omit; not doing so is a protocol error. Both values are 0 by default.
Size is double-buffered, see wl_surface.commit.
pub fn set_anchor(&self, anchor: Anchor)
[src]
configures the anchor point of the surface
Requests that the compositor anchor the surface to the specified edges and corners. If two orthogonal edges are specified (e.g. 'top' and 'left'), then the anchor point will be the intersection of the edges (e.g. the top left corner of the output); otherwise the anchor point will be centered on that edge, or in the center if none is specified.
Anchor is double-buffered, see wl_surface.commit.
pub fn set_exclusive_zone(&self, zone: i32)
[src]
configures the exclusive geometry of this surface
Requests that the compositor avoids occluding an area of the surface with other surfaces. The compositor's use of this information is implementation-dependent - do not assume that this region will not actually be occluded.
A positive value is only meaningful if the surface is anchored to an edge, rather than a corner. The zone is the number of surface-local coordinates from the edge that is considered exclusive.
Surfaces that do not wish to have an exclusive zone may instead specify how they should interact with surfaces that do. If set to zero, the surface indicates that it would like to be moved to avoid occluding surfaces with a positive exclusive zone. If set to -1, the surface indicates that it would not like to be moved to accommodate for other surfaces, and the compositor should extend it all the way to the edges it is anchored to.
For example, a panel might set its exclusive zone to 10, so that maximized shell surfaces are not shown on top of it. A notification might set its exclusive zone to 0, so that it is moved to avoid occluding the panel, but shell surfaces are shown underneath it. A wallpaper or lock screen might set their exclusive zone to -1, so that they stretch below or over the panel.
The default value is 0.
Exclusive zone is double-buffered, see wl_surface.commit.
pub fn set_margin(&self, top: i32, right: i32, bottom: i32, left: i32)
[src]
sets a margin from the anchor point
Requests that the surface be placed some distance away from the anchor point on the output, in surface-local coordinates. Setting this value for edges you are not anchored to has no effect.
The exclusive zone includes the margin.
Margin is double-buffered, see wl_surface.commit.
pub fn set_keyboard_interactivity(&self, keyboard_interactivity: u32)
[src]
requests keyboard events
Set to 1 to request that the seat send keyboard events to this layer surface. For layers below the shell surface layer, the seat will use normal focus semantics. For layers above the shell surface layers, the seat will always give exclusive keyboard focus to the top-most layer which has keyboard interactivity set to true.
Layer surfaces receive pointer, touch, and tablet events normally. If you do not want to receive them, set the input region on your surface to an empty region.
Events is double-buffered, see wl_surface.commit.
pub fn get_popup(&self, popup: &XdgPopup)
[src]
assign this layer_surface as an xdg_popup parent
This assigns an xdg_popup's parent to this layer_surface. This popup should have been created via xdg_surface::get_popup with the parent set to NULL, and this request must be invoked before committing the popup's initial state.
See the documentation of xdg_popup for more details about what an xdg_popup is and how it is used.
pub fn ack_configure(&self, serial: u32)
[src]
ack a configure event
When a configure event is received, if a client commits the surface in response to the configure event, then the client must make an ack_configure request sometime before the commit request, passing along the serial of the configure event.
If the client receives multiple configure events before it can respond to one, it only has to ack the last configure event.
A client is not required to commit immediately after sending an ack_configure request - it may even ack_configure several times before its next surface commit.
A client may send multiple ack_configure requests before committing, but only the last request sent before a commit indicates which configure event the client really is responding to.
pub fn destroy(&self)
[src]
destroy the layer_surface
This request destroys the layer surface.
This is a destructor, you cannot send requests to this object any longer once this method is called.
Trait Implementations
impl AsRef<Proxy<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 Eq for ZwlrLayerSurfaceV1
[src]
impl From<Proxy<ZwlrLayerSurfaceV1>> for ZwlrLayerSurfaceV1
[src]
impl From<ZwlrLayerSurfaceV1> for Proxy<ZwlrLayerSurfaceV1>
[src]
fn from(value: ZwlrLayerSurfaceV1) -> Self
[src]
impl<T: EventHandler> HandledBy<T> for ZwlrLayerSurfaceV1
[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> From<T> for T
[src]
impl<M, I> HandledBy<Sink<M>> for I where
I: Interface,
M: From<(<I as Interface>::Event, I)>,
[src]
I: Interface,
M: From<(<I as Interface>::Event, I)>,
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>,