• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 DRAWING_DEFINED
17 #define DRAWING_DEFINED
18 
19 #ifdef USE_SKIA_TXT
20 
21 #include "draw/path.h"
22 #include "effect/mask_filter.h"
23 #include "effect/path_effect.h"
24 #include "recording/recording_canvas.h"
25 #include "text/font.h"
26 #include "text/font_metrics.h"
27 #include "text/font_mgr.h"
28 #include "text/font_style.h"
29 #include "text/font_style_set.h"
30 #include "text/text_blob.h"
31 #include "text/text_blob_builder.h"
32 #include "text/typeface.h"
33 
34 namespace RSDrawing = OHOS::Rosen::Drawing;
35 using RSBlurType = RSDrawing::BlurType;
36 using RSBrush = RSDrawing::Brush;
37 using RSCanvas = RSDrawing::Canvas;
38 using RSColor = RSDrawing::Color;
39 using RSFilter = RSDrawing::Filter;
40 using RSFont = RSDrawing::Font;
41 using RSFontEdging = RSDrawing::FontEdging;
42 using RSFontHinting = RSDrawing::FontHinting;
43 using RSFontMetrics = RSDrawing::FontMetrics;
44 using RSFontMgr = RSDrawing::FontMgr;
45 using RSFontStyle = RSDrawing::FontStyle;
46 using RSFontStyleSet = RSDrawing::FontStyleSet;
47 using RSPath = RSDrawing::Path;
48 using RSPen = RSDrawing::Pen;
49 using RSPaint = RSDrawing::Paint;
50 using RSPoint = RSDrawing::Point;
51 using RSPathEffect = RSDrawing::PathEffect;
52 using RSMaskFilter = RSDrawing::MaskFilter;
53 using RSRect = RSDrawing::Rect;
54 using RSRoundRect = RSDrawing::RoundRect;
55 using RSScalar = RSDrawing::scalar;
56 using RSTextBlob = RSDrawing::TextBlob;
57 using RSTextBlobBuilder = RSDrawing::TextBlobBuilder;
58 using RSTypeface = RSDrawing::Typeface;
59 using RSFontArguments = RSDrawing::FontArguments;
60 
61 #endif
62 
63 #endif  // DRAWING_DEFINED