diff options
author | Pablo MartÃnez <[email protected]> | 2023-09-25 04:31:46 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-25 12:31:46 +1000 |
commit | a360900fbb87cec0aa721d527b251a3dcc72c671 (patch) | |
tree | 6f2cf603edcd408cf9a19de2057ebba8a4eacd9e /quantum/painter/qp.h | |
parent | 4e7e824a73c81187cca5cc56cb0b3b51a09b75c4 (diff) | |
download | qmk_firmware-a360900fbb87cec0aa721d527b251a3dcc72c671.tar.gz qmk_firmware-a360900fbb87cec0aa721d527b251a3dcc72c671.zip |
[Enhancement] QP Getters (#21171)
Diffstat (limited to 'quantum/painter/qp.h')
-rw-r--r-- | quantum/painter/qp.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/quantum/painter/qp.h b/quantum/painter/qp.h index 7222d3b413..68cb40aa59 100644 --- a/quantum/painter/qp.h +++ b/quantum/painter/qp.h @@ -176,6 +176,41 @@ bool qp_clear(painter_device_t device); bool qp_flush(painter_device_t device); /** + * Retrieves the width of the display. + * + * @param device[in] the handle of the device to control + */ +uint16_t qp_get_width(painter_device_t device); + +/** + * Retrieves the height of the display. + * + * @param device[in] the handle of the device to control + */ +uint16_t qp_get_height(painter_device_t device); + +/** + * Retrieves the rotation of the display. + * + * @param device[in] the handle of the device to control + */ +painter_rotation_t qp_get_rotation(painter_device_t device); + +/** + * Retrieves the x-offset of the display. + * + * @param device[in] the handle of the device to control + */ +uint16_t qp_get_offset_x(painter_device_t device); + +/** + * Retrieves the y-offset of the display. + * + * @param device[in] the handle of the device to control + */ +uint16_t qp_get_offset_y(painter_device_t device); + +/** * Retrieves the size, rotation, and offsets for the display. * * @note Any arguments of NULL will be ignored. |