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_WIN_H 17 #define HI_GV_WIN_H 18 19 /* add include here */ 20 #include "hi_type.h" 21 #include "hi_gv_conf.h" 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 /* 27 * brief Set window opacity. 28 * param[in] windowHandle Window handle. 29 * param[in] opacity Window opacity. 30 * retval ::HI_SUCCESS 31 * retval ::HI_ERR_COMM_LOST 32 */ 33 HI_S32 HI_GV_Win_SetOpacity(HIGV_HANDLE windowHandle, HI_U8 opacity); 34 35 /* 36 * brief Get first highlight child widget of widnow 37 * attention :This api is uded to get the highlight widget for softkeyboard. 38 * 39 * param[in] windowHandle Window handle. 40 * param[out] handleHilghtChild Highlight child. 41 * retval ::HI_SUCCESS 42 * retval ::HI_ERR_COMM_LOST 43 */ 44 HI_S32 HI_GV_Win_GetHilightChild(HIGV_HANDLE windowHandle, HIGV_HANDLE *handleHilghtChild); 45 46 /* 47 * brief Reset all highlight child and highlight the first child. 48 * attention:This API is used to redisplay the softkeyboard. 49 * 50 * param[in] windowHandle Window handle. 51 * retval ::HI_SUCCESS 52 * retval ::HI_ERR_COMM_LOST 53 */ 54 HI_S32 HI_GV_Win_ResetHilightChild(HIGV_HANDLE windowHandle); 55 56 /* 57 * brief Sync show win and get widget handle of done this show. 58 * attention:Return the second arg of HI_GV_Win_EndSyncShow. 59 * param[in] windowHandle Window handle. 60 * retval ::HIGV_HANDLE 61 * retval ::INVALID_HANDLE 62 * see : HI_GV_Win_EndSyncShow 63 */ 64 HI_S32 HI_GV_Win_SyncShow(HIGV_HANDLE windowHandle); 65 66 /* 67 * brief Done the sync show. 68 * param[in] windowHandle Window handle. 69 * param[in] handleWidget Widget handle of end window sync show . 70 * retval ::HI_SUCCESS 71 * retval ::HI_ERR_COMM_LOST 72 * retval ::HI_ERR_COMM_NOOP 73 * see : HI_GV_Win_SyncShow 74 */ 75 HI_S32 HI_GV_Win_EndSyncShow(HIGV_HANDLE windowHandle, HIGV_HANDLE handleWidget); 76 77 /* 78 * brief Get window level. 79 * param[in] windowHandle Window handle. 80 * param[out] level Window level. 81 * retval ::HI_SUCCESS 82 * retval ::HI_ERR_COMM_LOST 83 */ 84 HI_S32 HI_GV_Win_GetWinLevel(HIGV_HANDLE windowHandle, HI_U32 *level); 85 86 /* 87 * brief Advance window and child to load skin. 88 * attention : HIGV_STYLE_HIDE_UNLODRES style . 89 * param[in] windowHandle Window handle. 90 * retval ::HI_SUCCESS 91 * retval ::HI_ERR_COMM_LOST 92 */ 93 HI_S32 HI_GV_Win_LoadSkin(HIGV_HANDLE windowHandle); 94 95 #ifdef __cplusplus 96 } 97 #endif 98 #endif /* HI_GV_WIN_H */ 99