mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
remove LV_STATE_BORN
This commit is contained in:
parent
9878d83ff7
commit
1d2d73438d
@ -230,8 +230,6 @@ void lv_obj_create_finish(lv_obj_t * obj, lv_obj_t * parent, const lv_obj_t * co
|
|||||||
{
|
{
|
||||||
if(!copy) lv_theme_apply(obj);
|
if(!copy) lv_theme_apply(obj);
|
||||||
// else lv_style_list_copy(&checkbox->style_indic, &checkbox_copy->style_indic);
|
// else lv_style_list_copy(&checkbox->style_indic, &checkbox_copy->style_indic);
|
||||||
|
|
||||||
lv_obj_clear_state(obj, LV_STATE_BORN);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1476,7 +1474,6 @@ static void lv_obj_constructor(lv_obj_t * obj, lv_obj_t * parent, const lv_obj_t
|
|||||||
obj->flags |= LV_OBJ_FLAG_FOCUS_SCROLL;
|
obj->flags |= LV_OBJ_FLAG_FOCUS_SCROLL;
|
||||||
if(parent) obj->flags |= LV_OBJ_FLAG_GESTURE_BUBBLE;
|
if(parent) obj->flags |= LV_OBJ_FLAG_GESTURE_BUBBLE;
|
||||||
|
|
||||||
obj->state = LV_STATE_BORN;
|
|
||||||
obj->style_list.cache_state = LV_OBJ_STYLE_CACHE_STATE_INVALID;
|
obj->style_list.cache_state = LV_OBJ_STYLE_CACHE_STATE_INVALID;
|
||||||
|
|
||||||
/*Copy the attributes if required*/
|
/*Copy the attributes if required*/
|
||||||
|
@ -162,7 +162,6 @@ enum {
|
|||||||
LV_STATE_PRESSED = 0x10,
|
LV_STATE_PRESSED = 0x10,
|
||||||
LV_STATE_SCROLLED = 0x20,
|
LV_STATE_SCROLLED = 0x20,
|
||||||
LV_STATE_DISABLED = 0x40,
|
LV_STATE_DISABLED = 0x40,
|
||||||
LV_STATE_BORN = 0x80,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef uint8_t lv_state_t;
|
typedef uint8_t lv_state_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user