InputCaptureZone#

class InputCaptureZone(**properties: Any)#

Superclasses: Object

A representation of a zone that supports input capture.

The XdpInputCaptureZone object is used to represent a zone on the user-visible desktop that may be used to set up XdpInputCapturePointerBarrier objects. In most cases, the set of XdpInputCaptureZone objects represent the available monitors but the exact implementation is up to the implementation.

Properties#

class InputCaptureZone
props.height: int#

The height of this zone in logical pixels

props.is_valid: bool#

A boolean indicating whether this zone is currently valid. Zones are invalidated by the Portal’s ZonesChanged signal, see zones_changed.

Once invalidated, a Zone can be discarded by the caller, it cannot become valid again.

props.width: int#

The width of this zone in logical pixels

props.x: int#

The x offset of this zone in logical pixels

props.y: int#

The x offset of this zone in logical pixels

props.zone_set: int#