summaryrefslogtreecommitdiff
path: root/quantum/painter/qp.h
diff options
context:
space:
mode:
authorPablo Martínez <58857054+elpekenin@users.noreply.github.com>2023-09-25 04:31:46 +0200
committerGitHub <noreply@github.com>2023-09-25 12:31:46 +1000
commita360900fbb87cec0aa721d527b251a3dcc72c671 (patch)
tree6f2cf603edcd408cf9a19de2057ebba8a4eacd9e /quantum/painter/qp.h
parent4e7e824a73c81187cca5cc56cb0b3b51a09b75c4 (diff)
[Enhancement] QP Getters (#21171)
Diffstat (limited to 'quantum/painter/qp.h')
-rw-r--r--quantum/painter/qp.h35
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.