Struct runa_wayland_protocols::wayland::wl_surface::v6::requests::SetInputRegion
source · pub struct SetInputRegion {
pub region: Object,
}
Expand description
set input region
This request sets the region of the surface that can receive pointer and touch events.
Input events happening outside of this region will try the next surface in the server surface stack. The compositor ignores the parts of the input region that fall outside of the surface.
The input region is specified in surface-local coordinates.
Input region is double-buffered state, see wl_surface.commit.
wl_surface.set_input_region changes the pending input region. wl_surface.commit copies the pending region to the current region. Otherwise the pending and current regions are never changed, except cursor and icon surfaces are special cases, see wl_pointer.set_cursor and wl_data_device.start_drag.
The initial value for an input region is infinite. That means the whole surface will accept input. Setting the pending input region has copy semantics, and the wl_region object can be destroyed immediately. A NULL wl_region causes the input region to be set to infinite.
Fields§
§region: Object
Implementations§
Trait Implementations§
source§impl Clone for SetInputRegion
impl Clone for SetInputRegion
source§fn clone(&self) -> SetInputRegion
fn clone(&self) -> SetInputRegion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetInputRegion
impl Debug for SetInputRegion
source§impl<'a> Deserialize<'a> for SetInputRegion
impl<'a> Deserialize<'a> for SetInputRegion
source§impl PartialEq<SetInputRegion> for SetInputRegion
impl PartialEq<SetInputRegion> for SetInputRegion
source§fn eq(&self, other: &SetInputRegion) -> bool
fn eq(&self, other: &SetInputRegion) -> bool
self
and other
values to be equal, and is used
by ==
.