35#ifndef __VSF_TGUI_CONTROLS_TEXT_LIST_H__
36#define __VSF_TGUI_CONTROLS_TEXT_LIST_H__
44#if VSF_TGUI_CFG_SUPPORT_TEXT_LIST == ENABLED
51#if defined(__VSF_TGUI_CONTROLS_TEXT_LIST_CLASS_IMPLEMENT)
52# define __PLOOC_CLASS_IMPLEMENT__
53# undef __VSF_TGUI_CONTROLS_TEXT_LIST_CLASS_IMPLEMENT
54#elif defined(__VSF_TGUI_CONTROLS_TEXT_LIST_CLASS_INHERIT)
55# define __PLOOC_CLASS_INHERIT__
56# undef __VSF_TGUI_CONTROLS_TEXT_LIST_CLASS_INHERIT
63#define __VSF_TGUI_INTERFACE_CONTROLS_TEXT_LIST { \
65 VSF_MSGT_NODE_HANDLER_TYPE_FSM, \
66 (vsf_msgt_method_fsm_t *)&vsf_tgui_text_list_msg_handler, \
68 .Status = (vsf_msgt_method_status_t *) \
69 &vsf_tgui_control_status_get, \
70 .Shoot = (vsf_msgt_method_shoot_t *)&vsf_tgui_control_shoot, \
76#define __tgui_text_list(__NAME, __PARENT_ADDR, __PREVIOUS, __NEXT, ...) \
77 tgui_control_base( __NAME, \
78 VSF_TGUI_COMPONENT_ID_TEXT_LIST, \
79 vsf_tgui_text_list_t, \
83 VSF_TGUI_V_CONTAINER_STATIC_INIT_DEFAULT \
84 VSF_TGUI_V_TEXT_LIST_STATIC_INIT_DEFAULT \
86 VSF_TGUI_V_TEXT_LIST_STATIC_INIT_OVERRIDE \
87 .tList.is_container = true, \
88 .tList.node_ptr = (vsf_msgt_node_t*) \
89 &((&((__PARENT_ADDR)->__NAME))->tList.tList##_FirstNode), \
90 .tList.parent_ptr = (vsf_msgt_container_t *) \
91 &(((vsf_tgui_container_t *)(&((__PARENT_ADDR)->__NAME)))->use_as__vsf_msgt_node_t), \
92 .tList.id = (VSF_TGUI_COMPONENT_ID_CONTAINER), \
94 __tgui_name_string_tag(__NAME.tList, vsf_tgui_text_list_t) \
95 .tList.bIsTransparent = true, \
96 .tList.bIsEnabled = true, \
97 .tList.bIsVisible = true, \
98 .tList.ContainerAttribute \
99 .u5Type = VSF_TGUI_CONTAINER_TYPE_LINE_STREAM_VERTICAL, \
100 .tList.ContainerAttribute.bIsAutoSize = true, \
101 .is_container = true, \
104 &((__PARENT_ADDR)->__NAME.tList), \
105 .ContainerAttribute \
106 .u5Type = VSF_TGUI_CONTAINER_TYPE_PLANE, \
107 .bIsHideContentInsideContainer = true, \
108 VSF_TGUI_V_CONTAINER_STATIC_INIT_OVERRIDE \
112#define tgui_text_list(__NAME, __PARENT_ADDR, __PREVIOUS, __NEXT, ...) \
113 __tgui_text_list( __NAME, \
119# define tgui_text_list_content(...) \
120 .tList.tContent = (vsf_tgui_label_t){ \
121 VSF_TGUI_V_LABEL_STATIC_INIT_DEFAULT \
122 VSF_TGUI_V_TEXT_LIST_CONTENT_INIT_DEFAULT \
124 VSF_TGUI_V_LABEL_STATIC_INIT_OVERRIDE \
125 VSF_TGUI_V_TEXT_LIST_CONTENT_INIT_OVERRIDE \
126 .id = VSF_TGUI_COMPONENT_ID_LABEL, \
128 .next = sizeof(vsf_tgui_label_t), \
130 __tgui_name_string_tag(tContent, vsf_tgui_label_t) \
131 .bIsEnabled = true, \
132 .bIsVisible = true, \
133 .tLabel.bIsAutoSize = true, \
142 implement(vsf_tgui_container_t)
143 implement(vsf_tgui_v_text_list_t)
152 vsf_tgui_label_t tBuffer;
159 implement(__vk_tgui_slider_t);
164 inherit_ex(__vk_tgui_slider_t, tSlider);
174end_def_class(vsf_tgui_text_list_t)
#define ENABLED
Definition __type.h:28
signed short int16_t
Definition lvgl.h:42
unsigned short uint16_t
Definition lvgl.h:41
short int_fast16_t
Definition stdint.h:24
Definition vsf_tgui_common.h:552
fsm_rt_t
Definition vsf_fsm.h:315
def_class(vsf_stream_fifo_t, which(vsf_stream_tx_t TX;vsf_stream_rx_t RX;), private:vsf_slist_queue_t union { vsf_stream_fifo_cfg_t cfg;struct { vsf_stream_dat_rdy_evt_t tDataReadyEventHandling;vsf_stream_dat_drn_evt_t tDataDrainEventHandling;vsf_stream_status_t Status;#if !defined(VSF_PBUF_QUEUE_CFG_ATOM_ACCESS) vsf_protect_region_t *pregion;#endif };};) end_def_class(vsf_stream_fifo_t) extern vsf_err_t vsf_stream_fifo_init(vsf_stream_fifo_t *obj_ptr
#define VSF_TGUI_CFG_TEXT_LIST_SUPPORT_SLIDE
Definition vsf_tgui_cfg.h:214
#define use_tgui_container(__NAME,...)
Definition vsf_tgui_control.h:298
const vsf_tgui_control_t * control_ptr
Definition vsf_tgui_scguiv_port.h:87
void vsf_tgui_text_list_select_set(vsf_tgui_text_list_t *ptTextList, int_fast16_t iSelect)
set the index of selection ! !
Definition vsf_tgui_text_list.c:453
fsm_rt_t vk_tgui_text_list_update(vsf_tgui_text_list_t *ptTextList)
Definition vsf_tgui_text_list.c:363
fsm_rt_t vsf_tgui_text_list_msg_handler(vsf_tgui_text_list_t *ptTextList, vsf_tgui_msg_t *ptMSG)
Definition vsf_tgui_text_list.c:282
int_fast16_t vsf_tgui_text_list_select_get(vsf_tgui_text_list_t *ptTextList)
Definition vsf_tgui_text_list.c:437
fsm_rt_t vk_tgui_text_list_init(vsf_tgui_text_list_t *ptTextList)
Definition vsf_tgui_text_list.c:413
declare_class(vsf_tgui_text_list_t) def_class(vsf_tgui_text_list_t
vsf_tgui_label_t tContent
Definition vsf_tgui_text_list.h:150
which(vsf_tgui_container_t vsf_tgui_v_text_list_t) use_tgui_container(tList