Color UI circular task queue (#19918)
This commit is contained in:
@@ -73,11 +73,13 @@ typedef struct __attribute__((__packed__)) {
|
||||
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
CanvasSubtype type;
|
||||
uint8_t *nextParameter;
|
||||
uint16_t color;
|
||||
} parametersCanvasBackground_t;
|
||||
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
CanvasSubtype type;
|
||||
uint8_t *nextParameter;
|
||||
uint16_t x;
|
||||
uint16_t y;
|
||||
uint16_t color;
|
||||
@@ -88,6 +90,7 @@ typedef struct __attribute__((__packed__)) {
|
||||
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
CanvasSubtype type;
|
||||
uint8_t *nextParameter;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
MarlinImage image;
|
||||
@@ -95,6 +98,7 @@ typedef struct __attribute__((__packed__)) {
|
||||
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
CanvasSubtype type;
|
||||
uint8_t *nextParameter;
|
||||
uint16_t x;
|
||||
uint16_t y;
|
||||
uint16_t width;
|
||||
@@ -104,6 +108,7 @@ typedef struct __attribute__((__packed__)) {
|
||||
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
CanvasSubtype type;
|
||||
uint8_t *nextParameter;
|
||||
uint16_t x;
|
||||
uint16_t y;
|
||||
uint16_t width;
|
||||
@@ -117,10 +122,12 @@ class TFT_Queue {
|
||||
static uint8_t *end_of_queue;
|
||||
static uint8_t *current_task;
|
||||
static uint8_t *last_task;
|
||||
static uint8_t *last_parameter;
|
||||
|
||||
static void finish_sketch();
|
||||
static void fill(queueTask_t *task);
|
||||
static void canvas(queueTask_t *task);
|
||||
static void handle_queue_overflow(uint16_t sizeNeeded);
|
||||
|
||||
public:
|
||||
static void reset();
|
||||
|
||||
Reference in New Issue
Block a user