1 /* 2 * Copyright (c) 2022-2023 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_H 17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_H 18 19 #ifndef ACE_UNITTEST 20 #include "draw/canvas.h" 21 #include "draw/shadow.h" 22 #include "drawing/engine_adapter/skia_adapter/skia_canvas.h" 23 #include "image/image.h" 24 #include "rosen_text/ui/font_collection.h" 25 #include "rosen_text/ui/typography.h" 26 #include "rosen_text/ui/typography_create.h" 27 #include "utils/camera3d.h" 28 #include "utils/point3.h" 29 #include "utils/scalar.h" 30 31 namespace OHOS::Ace { 32 using RSCanvas = Rosen::Drawing::Canvas; 33 using RSImage = Rosen::Drawing::Image; 34 using RSBrush = Rosen::Drawing::Brush; 35 using RSFilter = Rosen::Drawing::Filter; 36 using RSColorFilter = Rosen::Drawing::ColorFilter; 37 using RSColorMatrix = Rosen::Drawing::ColorMatrix; 38 using RSPen = Rosen::Drawing::Pen; 39 using RSColor = Rosen::Drawing::Color; 40 using RSRect = Rosen::Drawing::RectF; 41 using RSRoundRect = Rosen::Drawing::RoundRect; 42 using RSRRect = Rosen::Drawing::Rect; 43 using RSPoint = Rosen::Drawing::PointF; 44 using RSRPoint = Rosen::Drawing::Point; 45 using RSPoint3 = Rosen::Drawing::Point3; 46 using RSShadowFlags = Rosen::Drawing::ShadowFlags; 47 using RSBlendMode = Rosen::Drawing::BlendMode; 48 using RSSamplingOptions = Rosen::Drawing::SamplingOptions; 49 using RSRoundRect = Rosen::Drawing::RoundRect; 50 using RSPath = Rosen::Drawing::Path; 51 using RSBitmap = Rosen::Drawing::Bitmap; 52 using RSBitmapFormat = Rosen::Drawing::BitmapFormat; 53 using RSColorType = Rosen::Drawing::ColorType; 54 using RSAlphaType = Rosen::Drawing::AlphaType; 55 using RSScalar = Rosen::Drawing::scalar; 56 using RSClipOp = Rosen::Drawing::ClipOp; 57 using RSSkCanvas = Rosen::Drawing::SkiaCanvas; 58 using RSMatrix = Rosen::Drawing::Matrix; 59 using RSCamera3D = Rosen::Drawing::Camera3D; 60 using RSMaskFilter = Rosen::Drawing::MaskFilter; 61 using RSBlurType = Rosen::Drawing::BlurType; 62 63 using RSPathEffect = rosen::PathEffect; 64 using RSPathDirection = rosen::PathDirection; 65 using RSPathDashStyle = rosen::PathDashStyle; 66 using RSParagraph = rosen::Typography; 67 using RSTypographyProperties = rosen::TypographyProperties; 68 using RSParagraphBuilder = rosen::TypographyCreate; 69 using RSFontCollection = rosen::FontCollection; 70 using RSParagraphStyle = rosen::TypographyStyle; 71 using RSTextStyle = rosen::TextStyle; 72 using RSColorQuad = rosen::ColorQuad; 73 using RSShaderEffect = rosen::ShaderEffect; 74 using RSTileMode = rosen::TileMode; 75 } // namespace OHOS::Ace 76 #else 77 #include "core/components_ng/render/drawing_mock.h" 78 #endif 79 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_RENDER_DRAWING_H 80