refactor(btn, img): rename btn to button and img to image

This commit is contained in:
Gabor Kiss-Vamosi
2023-09-14 20:12:31 +02:00
parent e91786ce49
commit 09c12d0f9c
366 changed files with 3271 additions and 3222 deletions

View File

@@ -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 */

View File

@@ -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);
}