mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
[lv_list] Add list layout prototypes
This commit is contained in:
parent
1d53e5eaec
commit
95149e466f
@ -78,6 +78,13 @@ enum {
|
|||||||
};
|
};
|
||||||
typedef uint8_t lv_list_style_t;
|
typedef uint8_t lv_list_style_t;
|
||||||
|
|
||||||
|
/** List layouts. **/
|
||||||
|
enum {
|
||||||
|
LV_LIST_LAYOUT_HOR,
|
||||||
|
LV_LIST_LAYOUT_VER
|
||||||
|
}
|
||||||
|
typedef uint8_t lv_list_layout_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
**********************/
|
**********************/
|
||||||
@ -189,6 +196,13 @@ static inline void lv_list_set_anim_time(lv_obj_t * list, uint16_t anim_time)
|
|||||||
*/
|
*/
|
||||||
void lv_list_set_style(lv_obj_t * list, lv_list_style_t type, const lv_style_t * style);
|
void lv_list_set_style(lv_obj_t * list, lv_list_style_t type, const lv_style_t * style);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set layout of a list
|
||||||
|
* @param list pointer to a list object
|
||||||
|
* @param layout which layout should be used
|
||||||
|
*/
|
||||||
|
void lv_list_set_layout(lv_obj_t * list, lv_list_layout_t layout);
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
* Getter functions
|
* Getter functions
|
||||||
*====================*/
|
*====================*/
|
||||||
@ -259,6 +273,13 @@ uint16_t lv_list_get_size(const lv_obj_t * list);
|
|||||||
lv_obj_t * lv_list_get_btn_selected(const lv_obj_t * list);
|
lv_obj_t * lv_list_get_btn_selected(const lv_obj_t * list);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get layout of a list
|
||||||
|
* @param list pointer to a list object
|
||||||
|
* @return layout which layout should be used
|
||||||
|
*/
|
||||||
|
lv_list_layout_t lv_list_get_layout(lv_obj_t * list);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the scroll bar mode of a list
|
* Get the scroll bar mode of a list
|
||||||
* @param list pointer to a list object
|
* @param list pointer to a list object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user