1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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 /** 17 * @addtogroup UI_Utils 18 * @{ 19 * 20 * @brief Defines basic UI utils. 21 * 22 * @since 1.0 23 * @version 1.0 24 */ 25 26 /** 27 * @file graphic_buffer.h 28 * 29 * @brief Defines the LCD buffer info for the graphics system. 30 * 31 * @since 1.0 32 * @version 1.0 33 */ 34 35 #ifndef GRAPHIC_LITE_BUFFER_H 36 #define GRAPHIC_LITE_BUFFER_H 37 38 #include "gfx_utils/common_macros.h" 39 #include "gfx_utils/graphic_types.h" 40 #include "gfx_utils/rect.h" 41 42 namespace OHOS { 43 44 /** 45 * @brief buffer info for drawing. 46 * @since 6.0 47 * @version 6.0 48 */ 49 struct BufferInfo { 50 Rect rect; 51 uint32_t stride; 52 void* phyAddr; 53 void* virAddr; 54 uint16_t width; 55 uint16_t height; 56 ColorMode mode; 57 uint32_t color; 58 }; 59 } // namespace OHOS 60 #endif // GRAPHIC_LITE_TYPES_H 61