This commit is contained in:
huxi
2025-12-03 11:12:34 +08:00
parent c23ae4f24c
commit bc195654bf
8163 changed files with 3799544 additions and 92 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef UI_CAMERA_H
#define UI_CAMERA_H
#include "jlui/control.h"
#include "jlui/ui_core.h"
#define ui_camera_for_id(id) \
ui_element_for_id(id, struct ui_camera)
struct ui_camera {
struct element elm; //must be first
int fd;
const struct ui_camera_info *info;
const struct element_event_handler *handler;
};
void register_ui_camera_handler(const struct element_event_handler *handler);
int ui_camera_set_rect(int id, struct rect *r);
#endif