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