acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_example_flex_4.c (606B)
1 #include "../../lv_examples.h" 2 #if LV_USE_FLEX && LV_BUILD_EXAMPLES 3 4 /** 5 * Reverse the order of flex items 6 */ 7 void lv_example_flex_4(void) 8 { 9 10 lv_obj_t * cont = lv_obj_create(lv_scr_act()); 11 lv_obj_set_size(cont, 300, 220); 12 lv_obj_center(cont); 13 lv_obj_set_flex_flow(cont, LV_FLEX_FLOW_COLUMN_REVERSE); 14 15 uint32_t i; 16 for(i = 0; i < 6; i++) { 17 lv_obj_t * obj = lv_obj_create(cont); 18 lv_obj_set_size(obj, 100, 50); 19 20 lv_obj_t * label = lv_label_create(obj); 21 lv_label_set_text_fmt(label, "Item: %"LV_PRIu32, i); 22 lv_obj_center(label); 23 } 24 } 25 26 #endif