libinput_config_area_rectangle Struct Reference
Describes a rectangle to configure a device's area, see libinput_device_config_area_set_rectangle(). More...
#include <libinput.h>
Data Fields | |
double | x1 |
double | y1 |
double | x2 |
double | y2 |
Detailed Description
Describes a rectangle to configure a device's area, see libinput_device_config_area_set_rectangle().
This struct describes a rectangle via the upper left points (x1, y1) and the lower right point (x2, y2).
All arguments are normalized to the range [0.0, 1.0] to represent the corresponding proportion of the device's width and height, respectively. A rectangle covering the whole device thus comprises of the points (0.0, 0.0) and (1.0, 1.0).
The conditions x1 < x2 and y1 < y2 must be true.
Field Documentation
◆ x1
double libinput_config_area_rectangle::x1 |
◆ x2
double libinput_config_area_rectangle::x2 |
◆ y1
double libinput_config_area_rectangle::y1 |
◆ y2
double libinput_config_area_rectangle::y2 |
The documentation for this struct was generated from the following file:
- doc/api/libinput.h