refactor(btn, img): rename btn to button and img to image
This commit is contained in:
@@ -291,7 +291,7 @@
|
||||
*With other image decoders (e.g. PNG or JPG) caching save the continuous open/decode of images.
|
||||
*However the opened images consume additional RAM.
|
||||
*0: to disable caching*/
|
||||
#define LV_IMG_CACHE_DEF_SIZE 0
|
||||
#define LV_IMAGE_CACHE_DEF_SIZE 0
|
||||
|
||||
|
||||
/*Number of stops allowed per gradient. Increase this to allow more stops.
|
||||
@@ -691,7 +691,7 @@
|
||||
#define LV_IMGFONT_PATH_MAX_LEN 64
|
||||
|
||||
/*1: Use img cache to buffer header information*/
|
||||
#define LV_IMGFONT_USE_IMG_CACHE_HEADER 0
|
||||
#define LV_IMGFONT_USE_IMAGE_CACHE_HEADER 0
|
||||
#endif
|
||||
|
||||
/*1: Enable a published subscriber based messaging system */
|
||||
|
||||
@@ -160,7 +160,7 @@ void pika_lvgl_bar_set_start_value(PikaObj *self, int start_value, int anim){
|
||||
|
||||
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);
|
||||
lv_obj_t* lv_obj = lv_button_create(lv_parent);
|
||||
obj_setPtr(self, "lv_obj", lv_obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user