From 96f227e7e1ec4998160d168d8040112a60731fe2 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sun, 17 Mar 2019 05:07:16 +0100 Subject: [PATCH] lv_roller.h: add missing declaration --- lv_objx/lv_roller.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lv_objx/lv_roller.h b/lv_objx/lv_roller.h index a355de112..7314ed4a2 100644 --- a/lv_objx/lv_roller.h +++ b/lv_objx/lv_roller.h @@ -126,6 +126,19 @@ void lv_roller_set_style(lv_obj_t *roller, lv_roller_style_t type, lv_style_t *s /*===================== * Getter functions *====================*/ +/** + * Get the id of the selected option + * @param roller pointer to a roller object + * @return id of the selected option (0 ... number of option - 1); + */ +uint16_t lv_roller_get_selected(const lv_obj_t *roller); + +/** + * Get the current selected option as a string + * @param roller pointer to roller object + * @param buf pointer to an array to store the string + */ +void lv_roller_get_selected_str(const lv_obj_t * roller, char * buf); /** * Get the align attribute. Default alignment after _create is LV_LABEL_ALIGN_CENTER