35#ifndef __VSF_TINY_GUI_H__
36#define __VSF_TINY_GUI_H__
41#if VSF_USE_TINY_GUI == ENABLED
49#if defined(__VSF_TGUI_CLASS_IMPLEMENT)
50# define __PLOOC_CLASS_IMPLEMENT__
52#elif defined(__VSF_TGUI_CLASS_INHERIT)
53# define __PLOOC_CLASS_INHERIT__
78 __vsf_tgui_evt_queue_t* queue_ptr;
79 vsf_msgt_t* msg_tree_ptr;
81 const vsf_msgt_node_t* node_ptr;
86 __vk_tgui_focus_t Activated;
88#if VSF_TGUI_CFG_SUPPORT_MOUSE_LIKE_EVENTS == ENABLED
89 __vk_tgui_focus_t pointer_above;
105 implement(vsf_msgt_t)
106 implement_ex(__vsf_tgui_evt_shooter_t, consumer)
107 __vsf_tgui_evt_queue_t msg_queue;
124end_def_class(vsf_tgui_t)
126typedef struct vsf_tgui_cfg_t {
129#if VSF_TGUI_CFG_REFRESH_SCHEME == VSF_TGUI_REFRESH_SCHEME_BREADTH_FIRST_TRAVERSAL
135 bool is_ignore_first_refresh;
144vsf_err_t vk_tgui_init(vsf_tgui_t* gui_ptr,
const vsf_tgui_cfg_t *cfg_ptr);
149 bool req_first_refresh);
172#if VSF_TGUI_CFG_SUPPORT_MOUSE_LIKE_EVENTS == ENABLED
177#if VSF_TGUI_CFG_REFRESH_SCHEME != VSF_TGUI_REFRESH_SCHEME_NONE
179bool vk_tgui_refresh(vsf_tgui_t *gui_ptr);
182bool vk_tgui_refresh_ex( vsf_tgui_t *gui_ptr,
209bool vsf_tgui_v_refresh_loop_end(vsf_tgui_t* gui_ptr);
232#ifdef __VSF_TGUI_CLASS_IMPLEMENT
254#undef __VSF_TGUI_CLASS_IMPLEMENT
255#undef __VSF_TGUI_CLASS_INHERIT
vsf_err_t
Definition __type.h:42
declare_class(vsf_tgui_t)
Definition __vk_tgui_slider.c:41
u8 position[WLAN_USER_POSITION_LEN]
Definition ieee80211.h:144
__le16 duration
Definition ieee80211.h:1
unsigned char uint_fast8_t
Definition stdint.h:23
int int32_t
Definition stdint.h:8
unsigned char uint8_t
Definition stdint.h:5
signed char int8_t
Definition stdint.h:4
char int_fast8_t
Definition stdint.h:22
Definition vsf_utilities.h:51
Definition vsf_tgui_common.h:226
Definition vsf_tgui_common.h:236
Definition vsf_tgui_common.h:539
int16_t vsf_evt_t
Definition vsf_eda.h:654
#define def_params(...)
Definition vsf_fsm.h:76
vsf_prio_t
Definition vsf_kernel_common.h:37
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 declare_vsf_pt(__name)
Definition vsf_pt.h:207
#define end_def_vsf_pt(...)
Definition vsf_pt.h:191
#define def_vsf_pt(__name,...)
Definition vsf_pt.h:190
#define declare_vsf_rng_buf(__name)
Definition vsf_queue.h:175
#define def_vsf_rng_buf(__name, __type)
Definition vsf_queue.h:242
bool vk_tgui_update_tree(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *target_ptr)
Definition vsf_tgui.c:252
bool vk_tgui_update(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *target_ptr)
Definition vsf_tgui.c:216
bool vk_tgui_send_message(vsf_tgui_t *gui_ptr, vsf_tgui_evt_t event)
tgui msg queue producer
Definition vsf_tgui.c:191
bool vsf_tgui_set_pointer_location(vsf_tgui_t *gui_ptr, int_fast8_t idx, vsf_tgui_location_t *location_ptr)
Definition vsf_tgui.c:468
const vsf_tgui_control_t * vsf_tgui_actived_control_get(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:454
bool vk_tgui_send_timer_event(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *target_ptr)
Definition vsf_tgui.c:234
vsf_err_t vk_tgui_set_root_container(vsf_tgui_t *gui_ptr, vsf_tgui_root_container_t *root_node_ptr, bool req_first_refresh)
Definition vsf_tgui.c:140
const vsf_tgui_control_t * vsf_tgui_pointed_control_get(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:461
void vsf_tgui_low_level_refresh_ready(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:503
vsf_err_t vk_tgui_close_root_container(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:168
const vsf_tgui_location_t * vsf_tgui_get_pointer_location(vsf_tgui_t *gui_ptr, int_fast8_t idx)
Definition vsf_tgui.c:489
uint8_t is_finger1_down
Definition vsf_tgui.h:122
vsf_tgui_location_t current[2]
Definition vsf_tgui.h:122
uint8_t is_finger0_down
Definition vsf_tgui.h:122
end_def_structure(__vk_tgui_focus_t) declare_vsf_pt(__vsf_tgui_evt_shooter_t) def_vsf_pt(__vsf_tgui_evt_shooter_t
vsf_tgui_evt_t declare_structure(__vk_tgui_focus_t) def_structure(__vk_tgui_focus_t) const vsf_tgui_control_t *current_ptr
vsf_tgui_location_t location_pre[2]
Definition vsf_tgui.h:122
int8_t finger_idx_pre
Definition vsf_tgui.h:122
const vsf_tgui_control_t * previous_ptr
Definition vsf_tgui.h:71
uint8_t status
Definition vsf_tgui.h:122
struct vsf_tgui_control_t vsf_tgui_control_t
Definition vsf_tgui_common.h:506
struct vsf_tgui_root_container_t vsf_tgui_root_container_t
Definition vsf_tgui_common.h:507