mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
71364445e0
* support event for lvgl * add example for lvgl * adding const * support core-widget for lvgl * add lvgl package
9 lines
255 B
C
9 lines
255 B
C
#include "pika_lvgl_btn.h"
|
|
#include "lvgl.h"
|
|
|
|
void pika_lvgl_btn___init__(PikaObj* self, PikaObj* parent) {
|
|
lv_obj_t* lv_parent = obj_getPtr(parent, "lv_obj");
|
|
lv_obj_t* lv_obj = lv_btn_create(lv_parent);
|
|
obj_setPtr(self, "lv_obj", lv_obj);
|
|
}
|