35#ifndef __VSF_TINY_GUI_H__
36#define __VSF_TINY_GUI_H__
41#if VSF_USE_TINY_GUI == ENABLED
43#ifndef VSF_TGUI_V_TEMPLATE_TYPE_HEADER_FILE
44#if VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL == VSF_TGUI_V_TEMPLATE_SIMPLE_VIEW
45# define VSF_TGUI_V_TEMPLATE_TYPE_HEADER_FILE "./view/simple_view/vsf_tgui_v_type.h"
46#elif VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL == VSF_TGUI_V_TEMPLATE_SCGUI_VIEW
47# define VSF_TGUI_V_TEMPLATE_TYPE_HEADER_FILE "./view/scgui_view/vsf_tgui_v_type.h"
49# undef VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL
50# define VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL VSF_TGUI_V_TEMPLATE_EXAMPLE
51# define VSF_TGUI_V_TEMPLATE_TYPE_HEADER_FILE "./view/template/vsf_tgui_v_type.h"
53#include VSF_TGUI_V_TEMPLATE_TYPE_HEADER_FILE
62#if defined(__VSF_TGUI_CLASS_IMPLEMENT)
63# define __PLOOC_CLASS_IMPLEMENT__
65#elif defined(__VSF_TGUI_CLASS_INHERIT)
66# define __PLOOC_CLASS_INHERIT__
91 __vsf_tgui_evt_queue_t* queue_ptr;
92 vsf_msgt_t* msg_tree_ptr;
94 const vsf_msgt_node_t* node_ptr;
99 __vk_tgui_focus_t Activated;
101#if VSF_TGUI_CFG_SUPPORT_MOUSE_LIKE_EVENTS == ENABLED
102 __vk_tgui_focus_t pointer_above;
108#if VSF_TGUI_CFG_SUPPORT_DIRTY_REGION == ENABLED \
109 && VSF_TGUI_CFG_SUPPORT_TRANSPARENT_CONTROL == ENABLED
110 uint8_t is_dirty_region_include_transparent_area : 1;
122 implement(vsf_msgt_t)
123 implement_ex(__vsf_tgui_evt_shooter_t, consumer)
124 __vsf_tgui_evt_queue_t msg_queue;
141 implement(vsf_tgui_v_port_t)
149#if VSF_TGUI_CFG_REFRESH_SCHEME == VSF_TGUI_REFRESH_SCHEME_BREADTH_FIRST_TRAVERSAL
155 bool is_ignore_first_refresh;
169 bool req_first_refresh);
192#if VSF_TGUI_CFG_SUPPORT_MOUSE_LIKE_EVENTS == ENABLED
197#if VSF_TGUI_CFG_REFRESH_SCHEME != VSF_TGUI_REFRESH_SCHEME_NONE
199bool vk_tgui_refresh(vsf_tgui_t *gui_ptr);
203bool vk_tgui_refresh_ex( vsf_tgui_t *gui_ptr,
208bool vk_tgui_refresh_dirty( vsf_tgui_t* gui_ptr,
256#ifdef __VSF_TGUI_CLASS_IMPLEMENT
283#undef __VSF_TGUI_CLASS_IMPLEMENT
284#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
signed int int32_t
Definition lvgl.h:44
unsigned char uint8_t
Definition lvgl.h:40
signed char int8_t
Definition lvgl.h:38
unsigned char uint_fast8_t
Definition stdint.h:23
char int_fast8_t
Definition stdint.h:22
Definition vsf_utilities.h:51
Definition vsf_tgui_common.h:265
Definition vsf_tgui_common.h:275
Definition vsf_tgui_common.h:585
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 vsf_tgui_set_pointer_location(vsf_tgui_t *gui_ptr, int_fast8_t idx, vsf_tgui_location_t *location_ptr)
Definition vsf_tgui.c:507
void vsf_tgui_low_level_refresh_ready(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:542
const vsf_tgui_location_t * vsf_tgui_get_pointer_location(vsf_tgui_t *gui_ptr, int_fast8_t idx)
Definition vsf_tgui.c:528
bool vk_tgui_update_tree(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *target_ptr)
Definition vsf_tgui.c:267
bool vk_tgui_update(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *target_ptr)
Definition vsf_tgui.c:231
uint8_t is_finger1_down
Definition vsf_tgui.h:139
bool vk_tgui_send_message(vsf_tgui_t *gui_ptr, vsf_tgui_evt_t event)
tgui msg queue producer
Definition vsf_tgui.c:201
vsf_tgui_location_t current[2]
Definition vsf_tgui.h:139
const vsf_tgui_control_t * vsf_tgui_actived_control_get(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:493
uint8_t is_finger0_down
Definition vsf_tgui.h:139
vsf_err_t vk_tgui_init(vsf_tgui_t *gui_ptr, const vsf_tgui_cfg_t *cfg_ptr)
bool vk_tgui_send_timer_event(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *target_ptr)
Definition vsf_tgui.c:249
end_def_structure(__vk_tgui_focus_t) declare_vsf_pt(__vsf_tgui_evt_shooter_t) def_vsf_pt(__vsf_tgui_evt_shooter_t
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:150
const vsf_tgui_control_t * vsf_tgui_pointed_control_get(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:500
vsf_tgui_v_port_t end_def_class(vsf_tgui_t) typedef struct vsf_tgui_cfg_t
Definition vsf_tgui.h:144
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:139
vsf_err_t vk_tgui_close_root_container(vsf_tgui_t *gui_ptr)
Definition vsf_tgui.c:178
int8_t finger_idx_pre
Definition vsf_tgui.h:139
vsf_tgui_cfg_t
Definition vsf_tgui.h:157
const vsf_tgui_control_t * previous_ptr
Definition vsf_tgui.h:84
uint8_t status
Definition vsf_tgui.h:139
struct vsf_tgui_control_t vsf_tgui_control_t
Definition vsf_tgui_common.h:549
struct vsf_tgui_root_container_t vsf_tgui_root_container_t
Definition vsf_tgui_common.h:550
def_structure(vsf_tgui_v_port_t) vk_disp_t *disp
vsf_tgui_region_t * vsf_tgui_v_refresh_loop_begin(vsf_tgui_t *gui_ptr, const vsf_tgui_region_t *planned_refresh_region_ptr)
begin a refresh loop !
Definition vsf_tgui_sv_port.c:372
bool vsf_tgui_v_refresh_loop_end(vsf_tgui_t *gui_ptr)
Definition vsf_tgui_sv_port.c:451