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 ==.