refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state
This commit is contained in:
@@ -23,7 +23,7 @@ static void lv_spinbox_decrement_event_cb(lv_event_t * e)
|
||||
|
||||
void lv_example_spinbox_1(void)
|
||||
{
|
||||
spinbox = lv_spinbox_create(lv_scr_act());
|
||||
spinbox = lv_spinbox_create(lv_screen_active());
|
||||
lv_spinbox_set_range(spinbox, -1000, 25000);
|
||||
lv_spinbox_set_digit_format(spinbox, 5, 2);
|
||||
lv_spinbox_step_prev(spinbox);
|
||||
@@ -32,13 +32,13 @@ void lv_example_spinbox_1(void)
|
||||
|
||||
lv_coord_t h = lv_obj_get_height(spinbox);
|
||||
|
||||
lv_obj_t * btn = lv_button_create(lv_scr_act());
|
||||
lv_obj_t * btn = lv_button_create(lv_screen_active());
|
||||
lv_obj_set_size(btn, h, h);
|
||||
lv_obj_align_to(btn, spinbox, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
|
||||
lv_obj_set_style_bg_image_src(btn, LV_SYMBOL_PLUS, 0);
|
||||
lv_obj_add_event(btn, lv_spinbox_increment_event_cb, LV_EVENT_ALL, NULL);
|
||||
|
||||
btn = lv_button_create(lv_scr_act());
|
||||
btn = lv_button_create(lv_screen_active());
|
||||
lv_obj_set_size(btn, h, h);
|
||||
lv_obj_align_to(btn, spinbox, LV_ALIGN_OUT_LEFT_MID, -5, 0);
|
||||
lv_obj_set_style_bg_image_src(btn, LV_SYMBOL_MINUS, 0);
|
||||
|
||||
Reference in New Issue
Block a user