minor fixes
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "../misc/lv_math.h"
|
||||
#include "../misc/lv_log.h"
|
||||
#include "../hal/lv_hal.h"
|
||||
#include "../extra/layouts/lv_layouts.h"
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -155,6 +156,9 @@ void lv_init(void)
|
||||
LV_LOG_WARN("Log level is set the Trace which makes LVGL much slower")
|
||||
#endif
|
||||
|
||||
lv_grid_init();
|
||||
lv_flex_init();
|
||||
|
||||
lv_initialized = true;
|
||||
|
||||
LV_LOG_TRACE("finished");
|
||||
@@ -585,6 +589,11 @@ bool lv_obj_has_class(const lv_obj_t * obj, const lv_obj_class_t * class_p)
|
||||
return false;
|
||||
}
|
||||
|
||||
const lv_obj_class_t * lv_obj_get_class(const lv_obj_t * obj)
|
||||
{
|
||||
return obj->class_p;
|
||||
}
|
||||
|
||||
bool lv_obj_is_valid(const lv_obj_t * obj)
|
||||
{
|
||||
lv_disp_t * disp = lv_disp_get_next(NULL);
|
||||
|
||||
Reference in New Issue
Block a user