23 lines
465 B
C
23 lines
465 B
C
/*
|
|
*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <lvgl.h>
|
|
#include <zephyr/kernel.h>
|
|
#include "util.h"
|
|
|
|
struct zmk_widget_status {
|
|
sys_snode_t node;
|
|
lv_obj_t *obj;
|
|
lv_color_t cbuf[CANVAS_SIZE * CANVAS_SIZE];
|
|
struct status_state state;
|
|
};
|
|
|
|
int zmk_widget_status_init(struct zmk_widget_status *widget, lv_obj_t *parent);
|
|
lv_obj_t *zmk_widget_status_obj(struct zmk_widget_status *widget);
|