35#ifndef __VSF_TGUI_CONTROLS_LIST_H__
36#define __VSF_TGUI_CONTROLS_LIST_H__
43#if VSF_TGUI_CFG_SUPPORT_LIST == ENABLED
49#if defined(__VSF_TGUI_CONTROLS_LIST_CLASS_IMPLEMENT)
50# define __PLOOC_CLASS_IMPLEMENT__
51# undef __VSF_TGUI_CONTROLS_LIST_CLASS_IMPLEMENT
52#elif defined(__VSF_TGUI_CONTROLS_LIST_CLASS_INHERIT)
53# define __PLOOC_CLASS_INHERIT__
54# undef __VSF_TGUI_CONTROLS_LIST_CLASS_INHERIT
62# define __VSF_TGUI_INTERFACE_CONTROLS_LIST { \
64 VSF_MSGT_NODE_HANDLER_TYPE_FSM, \
65 (vsf_msgt_method_fsm_t *)&vsf_tgui_list_msg_handler, \
67 .Status = (vsf_msgt_method_status_t *) \
68 &vsf_tgui_control_status_get, \
69 .Shoot = (vsf_msgt_method_shoot_t *)&vsf_tgui_control_shoot, \
75# define __tgui_list( __NAME, \
79 tgui_container_base( __NAME, \
80 VSF_TGUI_COMPONENT_ID_LIST, \
85 VSF_TGUI_V_LIST_STATIC_INIT_DEFAULT \
87 VSF_TGUI_V_LIST_STATIC_INIT_OVERRIDE \
90 .u5Type = VSF_TGUI_CONTAINER_TYPE_PLANE, \
92 .bIsAutoSize = false, \
93 .bIsHideContentInsideContainer = false, \
95 (vsf_msgt_container_t *)&((__PARENT_ADDR)-> \
96 __NAME.use_as__vsf_msgt_node_t), \
97 .list.id = VSF_TGUI_COMPONENT_ID_CONTAINER, \
99 .list.is_container = true, \
100 .list.bIsTransparent = true, \
101 .list.ContainerAttribute \
102 .bIsAutoSize = true, \
103 .list.bIsEnabled = true, \
104 .list.bIsVisible = true, \
107 &((__PARENT_ADDR)-> \
108 __NAME.list.list_FirstNode), \
110 __tgui_name_string_tag( __NAME.list, \
115#define tgui_list( __NAME, \
120 __tgui_list( __NAME, \
126# define tgui_list_items(...) \
128 VSF_TGUI_V_CONTAINER_STATIC_INIT_DEFAULT \
129 .is_container = false, \
130 .bIsTransparent = false, \
132 VSF_TGUI_V_CONTAINER_STATIC_INIT_OVERRIDE \
136#define __use_tgui_list(__NAME, ...) \
138 implement(vsf_tgui_list_t); \
140 vsf_msgt_node_t __NAME##_FirstNode ; \
141 use_tgui_container(list, __VA_ARGS__) \
145#define use_tgui_list(__NAME, ...) __use_tgui_list(__NAME, __VA_ARGS__)
166 implement(vsf_tgui_container_t)
167 implement(vsf_tgui_v_list_t)
173 implement(__vk_tgui_slider_t)
187 inherit_ex(__vk_tgui_slider_t, tSlider)
232#if VSF_TGUI_CFG_LIST_SUPPORT_SCROOLBAR == ENABLED
233VSF_CAL_SECTION(
".text.vsf.component.tgui.vsf_tgui_list_scrollbar_regions_generate")
237 const vsf_tgui_list_t*
ptList,
#define VSF_CAL_SECTION(__SEC)
Definition __compiler.h:181
#define ENABLED
Definition __type.h:28
unsigned char uint8_t
Definition lvgl.h:40
unsigned char uint_fast8_t
Definition stdint.h:23
short int_fast16_t
Definition stdint.h:24
Definition vsf_tgui_common.h:552
Definition vsf_tgui_common.h:275
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_LIST_SUPPORT_SLIDE
Definition vsf_tgui_cfg.h:224
struct vsf_tgui_control_t vsf_tgui_control_t
Definition vsf_tgui_common.h:549
which(vsf_tgui_control_t vsf_tgui_v_label_t) public vsf_tgui_msg_t * ptMSG
Definition vsf_tgui_label.h:157
fsm_rt_t vk_tgui_list_update(vsf_tgui_list_t *ptList)
Definition vsf_tgui_list.c:392
which(vsf_tgui_container_t vsf_tgui_v_list_t) union
Definition vsf_tgui_list.h:165
declare_class(vsf_tgui_list_t) def_class(vsf_tgui_list_t
int_fast16_t vk_tgui_list_selected_item_get(vsf_tgui_list_t *ptList)
Definition vsf_tgui_list.c:458
vsf_tgui_container_t ptList[]
Definition vsf_tgui_list.h:214
int_fast16_t vk_tgui_list_display_item_start_get(vsf_tgui_list_t *ptList)
Definition vsf_tgui_list.c:432
end_def_class(vsf_tgui_list_t) extern fsm_rt_t vk_tgui_list_update(vsf_tgui_list_t *ptList)
int_fast16_t vk_tgui_list_selected_item_set(vsf_tgui_list_t *ptList, uint_fast8_t chSelectIndex)
Definition vsf_tgui_list.c:469
fsm_rt_t vsf_tgui_list_msg_handler(vsf_tgui_list_t *control_ptr, vsf_tgui_msg_t *ptMSG)
Definition vsf_tgui_list.c:284
int_fast16_t vk_tgui_list_display_item_start_set(vsf_tgui_list_t *ptList, uint_fast8_t chStartIndex)
Definition vsf_tgui_list.c:443
vsf_tgui_list_scrollbar_region_t * vsf_tgui_list_scrollbar_regions_generate(const vsf_tgui_control_t *control_ptr, const vsf_tgui_list_t *ptList, uint_fast8_t chScalingRatio, vsf_tgui_list_scrollbar_region_t *ptOutputBuffer)
Definition vsf_tgui_list.c:487
vsf_tgui_list_work_mode_t
Definition vsf_tgui_list.h:150
@ VSF_TGUI_LIST_MODE_ITEM_SELECTION
Definition vsf_tgui_list.h:153
@ VSF_TGUI_LIST_MODE_ITEM_SELECTION_CENTER_ALIGN
Definition vsf_tgui_list.h:154
@ VSF_TGUI_LIST_MODE_FREE_MOVE_STICK_TO_ITEM
Definition vsf_tgui_list.h:151
@ VSF_TGUI_LIST_MODE_FREE_MOVE
Definition vsf_tgui_list.h:152
fsm_rt_t vk_tgui_list_init(vsf_tgui_list_t *ptList)
Definition vsf_tgui_list.c:411
const vsf_tgui_control_t * control_ptr
Definition vsf_tgui_scguiv_port.h:87