[−][src]Struct wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_shell_v1::ZwlrLayerShellV1
Implementations
impl ZwlrLayerShellV1
[src]
pub fn get_layer_surface<F>(
&self,
surface: &WlSurface,
output: Option<&WlOutput>,
layer: Layer,
namespace: String,
implementor: F
) -> Result<ZwlrLayerSurfaceV1, ()> where
F: FnOnce(NewProxy<ZwlrLayerSurfaceV1>) -> ZwlrLayerSurfaceV1,
[src]
&self,
surface: &WlSurface,
output: Option<&WlOutput>,
layer: Layer,
namespace: String,
implementor: F
) -> Result<ZwlrLayerSurfaceV1, ()> where
F: FnOnce(NewProxy<ZwlrLayerSurfaceV1>) -> ZwlrLayerSurfaceV1,
create a layer_surface from a surface
Create a layer surface for an existing surface. This assigns the role of layer_surface, or raises a protocol error if another role is already assigned.
Creating a layer surface from a wl_surface which has a buffer attached or committed is a client error, and any attempts by a client to attach or manipulate a buffer prior to the first layer_surface.configure call must also be treated as errors.
You may pass NULL for output to allow the compositor to decide which output to use. Generally this will be the one that the user most recently interacted with.
Clients can specify a namespace that defines the purpose of the layer surface.
Trait Implementations
impl AsRef<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1
[src]
impl Clone for ZwlrLayerShellV1
[src]
fn clone(&self) -> ZwlrLayerShellV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ZwlrLayerShellV1
[src]
impl From<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1
[src]
impl From<ZwlrLayerShellV1> for Proxy<ZwlrLayerShellV1>
[src]
fn from(value: ZwlrLayerShellV1) -> Self
[src]
impl<T: EventHandler> HandledBy<T> for ZwlrLayerShellV1
[src]
impl Interface for ZwlrLayerShellV1
[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<ZwlrLayerShellV1> for ZwlrLayerShellV1
[src]
fn eq(&self, other: &ZwlrLayerShellV1) -> bool
[src]
fn ne(&self, other: &ZwlrLayerShellV1) -> bool
[src]
impl StructuralEq for ZwlrLayerShellV1
[src]
impl StructuralPartialEq for ZwlrLayerShellV1
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZwlrLayerShellV1
impl Send for ZwlrLayerShellV1
impl Sync for ZwlrLayerShellV1
impl Unpin for ZwlrLayerShellV1
impl !UnwindSafe for ZwlrLayerShellV1
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>,