Struct runa_wayland_protocols::wayland::wl_surface::v6::requests::SetOpaqueRegion
source · pub struct SetOpaqueRegion {
pub region: Object,
}
Expand description
set opaque region
This request sets the region of the surface that contains opaque content.
The opaque region is an optimization hint for the compositor that lets it optimize the redrawing of content behind opaque regions. Setting an opaque region is not required for correct behaviour, but marking transparent content as opaque will result in repaint artifacts.
The opaque region is specified in surface-local coordinates.
The compositor ignores the parts of the opaque region that fall outside of the surface.
Opaque region is double-buffered state, see wl_surface.commit.
wl_surface.set_opaque_region changes the pending opaque region. wl_surface.commit copies the pending region to the current region. Otherwise, the pending and current regions are never changed.
The initial value for an opaque region is empty. Setting the pending opaque region has copy semantics, and the wl_region object can be destroyed immediately. A NULL wl_region causes the pending opaque region to be set to empty.
Fields§
§region: Object
Implementations§
Trait Implementations§
source§impl Clone for SetOpaqueRegion
impl Clone for SetOpaqueRegion
source§fn clone(&self) -> SetOpaqueRegion
fn clone(&self) -> SetOpaqueRegion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetOpaqueRegion
impl Debug for SetOpaqueRegion
source§impl<'a> Deserialize<'a> for SetOpaqueRegion
impl<'a> Deserialize<'a> for SetOpaqueRegion
source§impl PartialEq<SetOpaqueRegion> for SetOpaqueRegion
impl PartialEq<SetOpaqueRegion> for SetOpaqueRegion
source§fn eq(&self, other: &SetOpaqueRegion) -> bool
fn eq(&self, other: &SetOpaqueRegion) -> bool
self
and other
values to be equal, and is used
by ==
.