libei: ei_region Struct Reference

libei 1.5.0 A library for Emulated Input

ei_region Struct Reference
🥚 EI - The client API | 🥚 EI - The client API » The region API

A rectangular region, defined by an x/y offset and a width and a height. More...

`#include <libei.h>`

## Detailed Description

A rectangular region, defined by an x/y offset and a width and a height.

A region defines the area on an EIS desktop layout that is accessible by this device - this region may not be the full area of the desktop. Input events may only be sent for points within the regions.

The use of regions is private to the EIS compositor and coordinates may not match the size of the actual desktop. For example, a compositor may set a 1920x1080 region to represent a 4K monitor and transparently map input events into the respective true pixels.

Absolute devices may have different regions, it is up to the libei client to send events through the correct device to target the right pixel. For example, a dual-head setup my have two absolute devices, the first with a zero offset region spanning the first screen, the second with a nonzero offset spanning the second screen.

The documentation for this struct was generated from the following file:

- doc/api/libei.h