• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/graphic_types.h"
39 #include "gfx_utils/rect.h"
40 
41 namespace OHOS {
42 /**
43  * @brief buffer info for drawing.
44  * @since 6.0
45  * @version 6.0
46  */
47 struct BufferInfo {
48     Rect rect;
49     int32_t stride;
50     void *phyAddr;
51     void *virAddr;
52     uint16_t width;
53     uint16_t height;
54     ColorMode mode;
55     uint32_t color;
56 };
57 } // namespace OHOS
58 #endif // GRAPHIC_LITE_TYPES_H