diff options
author | Liam <30486941+liamHowatt@users.noreply.github.com> | 2024-08-02 01:46:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 07:46:42 +0200 |
commit | 1d14386b99cdff731cc3367d1d8b5e96ffb8fcea (patch) | |
tree | 6c0ac804a785f54efebd372fd7070a5e2f840036 /src/widgets/buttonmatrix/lv_buttonmatrix_private.h | |
parent | a8c8275b560fa74b8bdd72d1d180c98d22a33fc8 (diff) | |
download | lvgl-1d14386b99cdff731cc3367d1d8b5e96ffb8fcea.tar.gz lvgl-1d14386b99cdff731cc3367d1d8b5e96ffb8fcea.zip |
refactor(API): don't expose private symbols in lvgl.h. phase-out "_lv*" names (#6068)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Diffstat (limited to 'src/widgets/buttonmatrix/lv_buttonmatrix_private.h')
-rw-r--r-- | src/widgets/buttonmatrix/lv_buttonmatrix_private.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/widgets/buttonmatrix/lv_buttonmatrix_private.h b/src/widgets/buttonmatrix/lv_buttonmatrix_private.h new file mode 100644 index 000000000..fdacdf3da --- /dev/null +++ b/src/widgets/buttonmatrix/lv_buttonmatrix_private.h @@ -0,0 +1,57 @@ +/** + * @file lv_buttonmatrix_private.h + * + */ + +#ifndef LV_BUTTONMATRIX_PRIVATE_H +#define LV_BUTTONMATRIX_PRIVATE_H + +#ifdef __cplusplus +extern "C" { +#endif + +/********************* + * INCLUDES + *********************/ + +#include "../../core/lv_obj_private.h" +#include "lv_buttonmatrix.h" + +#if LV_USE_BUTTONMATRIX != 0 + +/********************* + * DEFINES + *********************/ + +/********************** + * TYPEDEFS + **********************/ + +/*Data of button matrix*/ +struct lv_buttonmatrix_t { + lv_obj_t obj; + const char ** map_p; /*Pointer to the current map*/ + lv_area_t * button_areas; /*Array of areas of buttons*/ + lv_buttonmatrix_ctrl_t * ctrl_bits; /*Array of control bytes*/ + uint32_t btn_cnt; /*Number of button in 'map_p'(Handled by the library)*/ + uint32_t row_cnt; /*Number of rows in 'map_p'(Handled by the library)*/ + uint32_t btn_id_sel; /*Index of the active button (being pressed/released etc) or LV_BUTTONMATRIX_BUTTON_NONE*/ + uint32_t one_check : 1; /*Single button toggled at once*/ +}; + + +/********************** + * GLOBAL PROTOTYPES + **********************/ + +/********************** + * MACROS + **********************/ + +#endif /* LV_USE_BUTTONMATRIX != 0 */ + +#ifdef __cplusplus +} /*extern "C"*/ +#endif + +#endif /*LV_BUTTONMATRIX_PRIVATE_H*/ |