InputCapturePointerBarrier#

class InputCapturePointerBarrier(**properties: Any)#

Superclasses: Object

A representation of a pointer barrier on an InputCaptureZone. Barriers can be assigned with set_pointer_barriers, once the Portal interaction is complete the barrier’s “is-active” state indicates whether the barrier is active. Barriers can only be used once, subsequent calls to set_pointer_barriers will invalidate all current barriers.

Properties#

class InputCapturePointerBarrier
props.id: int#

The caller-assigned unique id of this barrier

props.is_active: bool#

A boolean indicating whether this barrier is active. A barrier cannot become active once it failed to apply, barriers that are not active can be thus cleaned up by the caller.

props.x1: int#

The pointer barrier x offset in logical pixels

props.x2: int#

The pointer barrier x offset in logical pixels

props.y1: int#

The pointer barrier y offset in logical pixels

props.y2: int#

The pointer barrier y offset in logical pixels