1
0
Fork 0

[Enhancement] QP Getters (#21171)

This commit is contained in:
Pablo Martínez 2023-09-25 04:31:46 +02:00 committed by GitHub
parent 4e7e824a73
commit a360900fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 174 additions and 25 deletions

View file

@ -175,6 +175,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.
*