Searched refs:fragment (Results 1 – 11 of 11) sorted by relevance
/lvgl-3.7.0/src/extra/others/fragment/ |
D | lv_fragment.c | 39 void lv_fragment_del(lv_fragment_t * fragment) in lv_fragment_del() argument 41 LV_ASSERT_NULL(fragment); in lv_fragment_del() 42 if(fragment->managed) { in lv_fragment_del() 43 lv_fragment_manager_remove(fragment->managed->manager, fragment); in lv_fragment_del() 46 if(fragment->obj) { in lv_fragment_del() 47 lv_fragment_del_obj(fragment); in lv_fragment_del() 50 const lv_fragment_class_t * cls = fragment->cls; in lv_fragment_del() 52 cls->destructor_cb(fragment); in lv_fragment_del() 54 lv_fragment_manager_del(fragment->child_manager); in lv_fragment_del() 55 lv_mem_free(fragment); in lv_fragment_del() [all …]
|
D | lv_fragment_manager.c | 49 …gment_managed_states_t * fragment_attach(lv_fragment_manager_t * manager, lv_fragment_t * fragment, 110 void lv_fragment_manager_add(lv_fragment_manager_t * manager, lv_fragment_t * fragment, lv_obj_t * … in lv_fragment_manager_add() argument 112 lv_fragment_managed_states_t * states = fragment_attach(manager, fragment, container); in lv_fragment_manager_add() 118 void lv_fragment_manager_remove(lv_fragment_manager_t * manager, lv_fragment_t * fragment) in lv_fragment_manager_remove() argument 121 LV_ASSERT_NULL(fragment); in lv_fragment_manager_remove() 122 LV_ASSERT_NULL(fragment->managed); in lv_fragment_manager_remove() 123 LV_ASSERT(fragment->managed->manager == manager); in lv_fragment_manager_remove() 124 lv_fragment_managed_states_t * states = fragment->managed; in lv_fragment_manager_remove() 153 void lv_fragment_manager_push(lv_fragment_manager_t * manager, lv_fragment_t * fragment, lv_obj_t *… in lv_fragment_manager_push() argument 159 lv_fragment_managed_states_t * states = fragment_attach(manager, fragment, container); in lv_fragment_manager_push() [all …]
|
D | lv_fragment.h | 198 void lv_fragment_manager_add(lv_fragment_manager_t * manager, lv_fragment_t * fragment, lv_obj_t * … 205 void lv_fragment_manager_remove(lv_fragment_manager_t * manager, lv_fragment_t * fragment); 213 void lv_fragment_manager_push(lv_fragment_manager_t * manager, lv_fragment_t * fragment, lv_obj_t *… 228 void lv_fragment_manager_replace(lv_fragment_manager_t * manager, lv_fragment_t * fragment, 282 void lv_fragment_del(lv_fragment_t * fragment); 289 lv_fragment_manager_t * lv_fragment_get_manager(lv_fragment_t * fragment); 296 lv_obj_t * const * lv_fragment_get_container(lv_fragment_t * fragment); 303 lv_fragment_t * lv_fragment_get_parent(lv_fragment_t * fragment); 312 lv_obj_t * lv_fragment_create_obj(lv_fragment_t * fragment, lv_obj_t * container); 319 void lv_fragment_del_obj(lv_fragment_t * fragment); [all …]
|
/lvgl-3.7.0/examples/others/fragment/ |
D | lv_example_fragment_2.c | 63 lv_fragment_t * fragment = lv_fragment_create(&sample_cls, &depth); in lv_example_fragment_2() local 64 lv_fragment_manager_push(manager, fragment, &container); in lv_example_fragment_2() 78 sample_fragment_t * fragment = (sample_fragment_t *) self; in sample_fragment_create_obj() local 86 lv_label_set_text_fmt(depth, "Depth: %d", fragment->depth); in sample_fragment_create_obj() 88 fragment->label = label; in sample_fragment_create_obj() 89 lv_label_set_text_fmt(label, "The button has been pressed %d times", fragment->counter); in sample_fragment_create_obj() 94 lv_obj_add_event_cb(inc_btn, sample_fragment_inc_click, LV_EVENT_CLICKED, fragment); in sample_fragment_create_obj() 103 lv_fragment_t * fragment = lv_fragment_create(&sample_cls, &stack_size); in sample_push_click() local 104 lv_fragment_manager_push(manager, fragment, &container); in sample_push_click() 121 sample_fragment_t * fragment = (sample_fragment_t *) lv_event_get_user_data(e); in sample_fragment_inc_click() local [all …]
|
D | index.rst | 2 Basic fragment usage 5 .. lv_example:: others/fragment/lv_example_fragment_1 13 .. lv_example:: others/fragment/lv_example_fragment_2
|
D | lv_example_fragment_1.c | 36 lv_fragment_t * fragment = lv_fragment_create(&sample_cls, "Fragment"); in lv_example_fragment_1() local 37 lv_fragment_manager_replace(manager, fragment, &root); in lv_example_fragment_1()
|
/lvgl-3.7.0/docs/others/ |
D | fragment.md | 6 It represents a reusable portion of your app's UI. A fragment defines and manages its own layout, h… 7 …wn events. Like Android's Fragment that must be hosted by an activity or another fragment, Fragment 8 in LVGL needs to be hosted by an object, or another fragment. The fragment’s view hierarchy becomes… 15 navigation. You can use fragment manager to build navigation stack, or multi pane application easil… 27 /* States, object references and data fields for this fragment */ 36 /* IMPORTANT: size of your fragment struct */ 44 /* Create fragment instance, and objects will be added to container */ 46 /* Replace current fragment with instance of sample_cls, and init_argument is user defined pointer … 53 /* Add one instance into manager stack. View object of current fragment will be destroyed, 58 /* Remove the top most fragment from the stack, and bring back previous one. */ [all …]
|
D | index.md | 12 fragment
|
/lvgl-3.7.0/docs/libs/ |
D | sjpg.md | 13 - SJPEG frame fragment cache enables fast fetching of lines if available in cache.
|
/lvgl-3.7.0/ |
D | Kconfig | 1047 bool "Enable lv_obj fragment"
|
/lvgl-3.7.0/docs/ |
D | CHANGELOG.md | 293 - fix(fragment): fixed child fragment event dispatch [`3683`](https://github.com/lvgl/lvgl/pull/368… 404 - feat(fragment): add fragment manager (a UI Controller concept) [`2940`](https://github.com/lvgl/l… 431 - fix(fragment): memory leak of fragments #3438 [`3442`](https://github.com/lvgl/lvgl/pull/3442)
|