Home
last modified time | relevance | path

Searched refs:float_btn (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/examples/scroll/
Dlv_example_scroll_3.c9 lv_obj_t * float_btn = lv_event_get_target(e); in float_button_event_cb() local
18 lv_obj_move_foreground(float_btn); in float_button_event_cb()
39 lv_obj_t * float_btn = lv_button_create(list); in lv_example_scroll_3() local
40 lv_obj_set_size(float_btn, 50, 50); in lv_example_scroll_3()
41 lv_obj_add_flag(float_btn, LV_OBJ_FLAG_FLOATING); in lv_example_scroll_3()
42 …lv_obj_align(float_btn, LV_ALIGN_BOTTOM_RIGHT, 0, -lv_obj_get_style_pad_right(list, LV_PART_MAIN)); in lv_example_scroll_3()
43 lv_obj_add_event_cb(float_btn, float_button_event_cb, LV_EVENT_ALL, list); in lv_example_scroll_3()
44 lv_obj_set_style_radius(float_btn, LV_RADIUS_CIRCLE, 0); in lv_example_scroll_3()
45 lv_obj_set_style_bg_image_src(float_btn, LV_SYMBOL_PLUS, 0); in lv_example_scroll_3()
46 lv_obj_set_style_text_font(float_btn, lv_theme_get_font_large(float_btn), 0); in lv_example_scroll_3()
/lvgl-latest/examples/widgets/menu/
Dlv_example_menu_4.c59 lv_obj_t * float_btn = lv_button_create(lv_screen_active()); in lv_example_menu_4() local
60 lv_obj_set_size(float_btn, 50, 50); in lv_example_menu_4()
61 lv_obj_add_flag(float_btn, LV_OBJ_FLAG_FLOATING); in lv_example_menu_4()
62 lv_obj_align(float_btn, LV_ALIGN_BOTTOM_RIGHT, -10, -10); in lv_example_menu_4()
63 lv_obj_add_event_cb(float_btn, float_button_event_cb, LV_EVENT_CLICKED, menu); in lv_example_menu_4()
64 lv_obj_set_style_radius(float_btn, LV_RADIUS_CIRCLE, 0); in lv_example_menu_4()
65 lv_obj_set_style_bg_image_src(float_btn, LV_SYMBOL_PLUS, 0); in lv_example_menu_4()
66 lv_obj_set_style_text_font(float_btn, lv_theme_get_font_large(float_btn), 0); in lv_example_menu_4()