1 /*
2  * Copyright (c) 2022 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 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_FORWARD_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_FORWARD_H
18 
19 #ifndef ACE_UNITTEST
20 namespace OHOS::Rosen {
21 class RSNode;
22 namespace Drawing {
23 class Canvas;
24 class RectF;
25 enum class ClipOp;
26 class Pen;
27 class Brush;
28 class Path;
29 enum class PathOp;
30 class Bitmap;
31 class Pixmap;
32 class ImageInfo;
33 class DrawCmdList;
34 class RoundRect;
35 class Data;
36 class Image;
37 class ColorSpace;
38 class Picture;
39 struct BitmapFormat;
40 class ImageFilter;
41 class PointF;
42 } // namespace Drawing
43 } // namespace OHOS::Rosen
44 namespace OHOS::Ace {
45 using RSCanvas = Rosen::Drawing::Canvas;
46 using RSRect = Rosen::Drawing::RectF;
47 using RSNode = Rosen::RSNode;
48 using RSClipOp = Rosen::Drawing::ClipOp;
49 using RSPen = Rosen::Drawing::Pen;
50 using RSBrush = Rosen::Drawing::Brush;
51 using RSPath = Rosen::Drawing::Path;
52 using RSPathOp = Rosen::Drawing::PathOp;
53 using RSBitmap = Rosen::Drawing::Bitmap;
54 using RSPixmap = Rosen::Drawing::Pixmap;
55 using RSImageInfo = Rosen::Drawing::ImageInfo;
56 using RSDrawCmdList = Rosen::Drawing::DrawCmdList;
57 using RSRoundRect = Rosen::Drawing::RoundRect;
58 using RSPoint = Rosen::Drawing::PointF;
59 using RSData = Rosen::Drawing::Data;
60 using RSImage = Rosen::Drawing::Image;
61 using RSColorSpace = Rosen::Drawing::ColorSpace;
62 using RSPicture = Rosen::Drawing::Picture;
63 using RSBitmapFormat = Rosen::Drawing::BitmapFormat;
64 using RSImageFilter = Rosen::Drawing::ImageFilter;
65 using RSRecordingPath = Rosen::Drawing::Path;
66 } // namespace OHOS::Ace
67 #else
68 #include "core/components_ng/render/drawing_mock.h"
69 #endif
70 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_FORWARD_H
71