VSF Documented
vsf_tgui_sv_port.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_TINY_GUI_SV_PORT_H__
19#define __VSF_TINY_GUI_SV_PORT_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../vsf_tgui_cfg.h"
24
25#if VSF_USE_TINY_GUI == ENABLED \
26 && VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL == VSF_TGUI_V_TEMPLATE_SIMPLE_VIEW
27
28#define __VSF_DISP_CLASS_INHERIT__
30
31/*============================ MACROS ========================================*/
32
33#ifndef VSF_TGUI_CFG_SV_REFRESH_RATE
34# define VSF_TGUI_CFG_SV_REFRESH_RATE ENABLED
35#endif
36
37#ifndef VSF_TGUI_CFG_SV_DRAW_IMMEDIATELY
38# define VSF_TGUI_CFG_SV_DRAW_IMMEDIATELY DISABLED
39#endif
40
41#ifndef VSF_TGUI_CFG_SV_DRAW_DOUBLE_BUFFER
42# define VSF_TGUI_CFG_SV_DRAW_DOUBLE_BUFFER ENABLED
43#endif
44
45/*============================ MACROFIED FUNCTIONS ===========================*/
46
47#define vsf_tgui_vport_init(__vsf_tgui_v_port_ptr) \
48 do { \
49 (__vsf_tgui_v_port_ptr)->current_region.tSize.iHeight = 0; \
50 (__vsf_tgui_v_port_ptr)->current_region.tSize.iWidth = 0; \
51 } while(0)
52
53/*============================ TYPES =========================================*/
54
55declare_class(vsf_tgui_t)
56declare_structure(vsf_tgui_v_port_t)
57def_structure(vsf_tgui_v_port_t)
58 vk_disp_t *disp;
59 void *pfb;
61#if VSF_TGUI_CFG_SV_DRAW_DOUBLE_BUFFER == ENABLED
64#endif
67 size_t pfb_size;
69
70#if VSF_TGUI_CFG_SV_DRAW_IMMEDIATELY == ENABLED
71 volatile bool is_draw_ready;
72#endif
75#if VSF_TGUI_CFG_SV_REFRESH_RATE == ENABLED
79#endif
80end_def_structure(vsf_tgui_v_port_t)
81
82/*============================ GLOBAL VARIABLES ==============================*/
83/*============================ PROTOTYPES ====================================*/
84
85#endif
86
87#endif
88/* EOF */
Definition vsf_disp.h:173
uint64_t vsf_systimer_tick_t
Definition cortex_a_generic.h:73
unsigned short uint16_t
Definition lvgl.h:41
unsigned char uint8_t
Definition lvgl.h:40
vsf_tgui_region_t current_region
Definition vsf_tgui_sv_port.h:74
bool refresh_pending
Definition vsf_tgui_sv_port.h:63
volatile bool is_draw_ready
Definition vsf_tgui_sv_port.h:71
uint16_t refresh_cnt
Definition vsf_tgui_sv_port.h:77
bool refresh_pending_notify
Definition vsf_tgui_sv_port.h:65
vk_disp_area_t refresh_pending_area
Definition vsf_tgui_sv_port.h:68
declare_class(vsf_tgui_t) declare_structure(vsf_tgui_v_port_t) def_structure(vsf_tgui_v_port_t) vk_disp_t *disp
Definition __vk_tgui_slider.c:41
uint8_t refresh_pending_cnt
Definition vsf_tgui_sv_port.h:66
bool is_disp_inited
Definition vsf_tgui_sv_port.h:60
void * pfb
Definition vsf_tgui_sv_port.h:59
bool refresh_is_first_pfb
Definition vsf_tgui_sv_port.h:62
size_t pfb_size
Definition vsf_tgui_sv_port.h:67
uint16_t fps
Definition vsf_tgui_sv_port.h:78
vsf_tgui_region_t request_region
Definition vsf_tgui_sv_port.h:73
vsf_systimer_tick_t start_cnt
Definition vsf_tgui_sv_port.h:76
Definition vsf_disp.h:144
Definition vsf_tgui_common.h:275
vsf_tgui_evt_t declare_structure(__vk_tgui_focus_t) def_structure(__vk_tgui_focus_t) const vsf_tgui_control_t *current_ptr
end_def_structure(vsf_tgui_v_port_t) extern void __vsf_tgui_v_update_dirty_region(vsf_tgui_t *gui_ptr
def_structure(vsf_tgui_v_port_t) vk_disp_t *disp