pub struct ExtBackgroundEffectSurfaceV1 { /* private fields */ }
Expand description
background effects for a surface
The background effect object provides a way to specify a region behind a surface that should have background effects like blur applied.
If the wl_surface associated with the ext_background_effect_surface_v1 object has been destroyed, this object becomes inert.
This interface has no events.
Implementations§
Source§impl ExtBackgroundEffectSurfaceV1
impl ExtBackgroundEffectSurfaceV1
Sourcepub fn destroy(&self)
pub fn destroy(&self)
release the blur object
Informs the server that the client will no longer be using this protocol object. The effect regions will be removed on the next commit.
Sourcepub fn set_blur_region(&self, region: Option<&WlRegion>)
pub fn set_blur_region(&self, region: Option<&WlRegion>)
set blur region
This request sets the region of the surface that will have its background blurred.
The blur region is specified in the surface-local coordinates, and clipped by the compositor to the surface size.
The initial value for the blur region is empty. Setting the pending blur region has copy semantics, and the wl_region object can be destroyed immediately. A NULL wl_region removes the effect.
The blur region is double-buffered state, and will be applied on the next wl_surface.commit.
The blur algorithm is subject to compositor policies.
If the associated surface has been destroyed, the surface_destroyed error will be raised.
Trait Implementations§
Source§impl Clone for ExtBackgroundEffectSurfaceV1
impl Clone for ExtBackgroundEffectSurfaceV1
Source§fn clone(&self) -> ExtBackgroundEffectSurfaceV1
fn clone(&self) -> ExtBackgroundEffectSurfaceV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExtBackgroundEffectSurfaceV1
impl Debug for ExtBackgroundEffectSurfaceV1
Source§impl Hash for ExtBackgroundEffectSurfaceV1
impl Hash for ExtBackgroundEffectSurfaceV1
Source§impl PartialEq<Weak<ExtBackgroundEffectSurfaceV1>> for ExtBackgroundEffectSurfaceV1
impl PartialEq<Weak<ExtBackgroundEffectSurfaceV1>> for ExtBackgroundEffectSurfaceV1
Source§impl PartialEq for ExtBackgroundEffectSurfaceV1
impl PartialEq for ExtBackgroundEffectSurfaceV1
Source§fn eq(&self, other: &ExtBackgroundEffectSurfaceV1) -> bool
fn eq(&self, other: &ExtBackgroundEffectSurfaceV1) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Proxy for ExtBackgroundEffectSurfaceV1
impl Proxy for ExtBackgroundEffectSurfaceV1
Source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
Source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
Source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
Source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
Source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, ) -> Result<I, InvalidId>
Source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
Source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
Source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Event), DispatchError>
Source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for ExtBackgroundEffectSurfaceV1
Auto Trait Implementations§
impl Freeze for ExtBackgroundEffectSurfaceV1
impl !RefUnwindSafe for ExtBackgroundEffectSurfaceV1
impl Send for ExtBackgroundEffectSurfaceV1
impl Sync for ExtBackgroundEffectSurfaceV1
impl Unpin for ExtBackgroundEffectSurfaceV1
impl !UnwindSafe for ExtBackgroundEffectSurfaceV1
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
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>
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>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.