1 /* 2 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef HI_GV_CONF_H 17 #define HI_GV_CONF_H 18 19 typedef unsigned int HIGV_HANDLE; 20 21 #ifndef HIGV_UNUSED 22 #define HIGV_UNUSED(expr) \ 23 do { \ 24 (void)(expr); \ 25 } while (0) 26 #endif 27 28 #ifdef __LP64__ 29 typedef unsigned long long HI_PARAM; 30 typedef struct { 31 long long x; 32 long long y; 33 long long w; 34 long long h; 35 } HIGV_RECT_WRAPPER; 36 #else 37 typedef unsigned int HI_PARAM; 38 typedef struct { 39 int x; 40 int y; 41 int w; 42 int h; 43 } HIGV_RECT_WRAPPER; 44 #endif 45 46 typedef HI_PARAM HIGV_COLOR_WRAPPER; 47 48 #define HIGV_COMMON_MODID_START 50 49 #define HIGV_PERFORMACE 1 50 #define HIGV_USE_ADP_INPUT 1 51 #define HIGV_KEY_SINGLEQUE 1 52 #define HI_OS_LINUX 1 53 #define HI_OS_TYPE HI_OS_LINUX 54 55 #define HIGV_USE_TOUCHSCREEN_INPUT 1 56 #define HIGV_USE_MOUSE_INPUT 1 57 #define HIGV_USE_WIDGET_BUTTON 1 58 #define HIGV_USE_WIDGET_SCROLLBAR 1 59 #define HIGV_USE_WIDGET_LABEL 1 60 #define HIGV_USE_WIDGET_IMAGE 1 61 #define HIGV_USE_WIDGET_MSGBOX 1 62 #define HIGV_USE_WIDGET_IMAGEEX 1 63 #define HIGV_USE_WIDGET_EDIT 1 64 #define HIGV_USE_WIDGET_PROGRESSBAR 1 65 #define HIGV_USE_WIDGET_SCROLLTEXT 1 66 #define HIGV_USE_WIDGET_SCROLLGRID 1 67 #define HIGV_USE_WIDGET_CLOCK 1 68 #define HIGV_USE_WIDGET_LISTBOX 1 69 #define HIGV_USE_WIDGET_TRACKBAR 1 70 #define HIGV_USE_WIDGET_SLIDEUNLOCK 1 71 #define HIGV_USE_WIDGET_WHEELVIEW 1 72 #define HIGV_USE_MODULE_IME 1 73 #define HIGV_USE_MODULE_CURSOR 1 74 #define HIGV_USE_MODULE_TOUCH 1 75 #define HIGV_USE_WIDGET_SCROLLVIEW 1 76 #define HIGV_USE_WIDGET_CONTENTBOX 1 77 #define HIGV_USE_WIDGET_SCALEVIEW 1 78 #define HIGV_USE_WIDGET_MULTIEDIT 1 79 #define HIGV_USE_WIDGET_CHARTS 1 80 #endif // HI_GV_CONF_H 81