/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef C_INCLUDE_DRAWING_TEXT_DECLARATION_H #define C_INCLUDE_DRAWING_TEXT_DECLARATION_H /** * @addtogroup Drawing * @{ * * @brief Provides the 2D drawing capability. * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * * @since 8 * @version 1.0 */ /** * @file drawing_text_declaration.h * * @brief Declares the data structure related to text in 2D drawing. * * @kit ArkGraphics2D * @library libnative_drawing.so * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @since 8 * @version 1.0 */ #ifdef __cplusplus extern "C" { #endif /** * @brief Defines an OH_Drawing_FontCollection, which is used to load fonts. * * @since 8 * @version 1.0 */ typedef struct OH_Drawing_FontCollection OH_Drawing_FontCollection; /** * @brief Defines an OH_Drawing_Typography, which is used to manage the typography layout and display. * * @since 8 * @version 1.0 */ typedef struct OH_Drawing_Typography OH_Drawing_Typography; /** * @brief Defines an OH_Drawing_LineTypography, which is used to perform line layout. * * @since 14 * @version 1.0 */ typedef struct OH_Drawing_LineTypography OH_Drawing_LineTypography; /** * @brief Defines an OH_Drawing_TextStyle, which is used to manage text colors and decorations. * * @since 8 * @version 1.0 */ typedef struct OH_Drawing_TextStyle OH_Drawing_TextStyle; /** * @brief Defines an OH_Drawing_TypographyStyle, which is used to manage the typography style, * such as the text direction. * * @since 8 * @version 1.0 */ typedef struct OH_Drawing_TypographyStyle OH_Drawing_TypographyStyle; /** * @brief Defines an OH_Drawing_TypographyCreate, which is used to create an OH_Drawing_Typography object. * * @since 8 * @version 1.0 */ typedef struct OH_Drawing_TypographyCreate OH_Drawing_TypographyCreate; /** * @brief Defines an OH_Drawing_TextBox, which is used to create an OH_Drawing_TextBox object. * * @since 11 * @version 1.0 */ typedef struct OH_Drawing_TextBox OH_Drawing_TextBox; /** * @brief Defines an OH_Drawing_PositionAndAffinity, * which is used to create an OH_Drawing_PositionAndAffinity object. * @since 11 * @version 1.0 */ typedef struct OH_Drawing_PositionAndAffinity OH_Drawing_PositionAndAffinity; /** * @brief Defines an OH_Drawing_Range, which is used to create an OH_Drawing_Range object. * * @since 11 * @version 1.0 */ typedef struct OH_Drawing_Range OH_Drawing_Range; /** * @brief Defines an OH_Drawing_FontParser, which is used to parse system font files. * * @since 12 * @version 1.0 */ typedef struct OH_Drawing_FontParser OH_Drawing_FontParser; /** * @brief Defines an OH_Drawing_TextShadow, which is used to manage text shadow. * * @since 12 * @version 1.0 */ typedef struct OH_Drawing_TextShadow OH_Drawing_TextShadow; /** * @brief Defines an OH_Drawing_TextTab, which is used to to store the tab alignment type and position. * * @since 14 * @version 1.0 */ typedef struct OH_Drawing_TextTab OH_Drawing_TextTab; /** * @brief Defines an OH_Drawing_TextLine, which is used to manage text line. * * @since 14 * @version 1.0 */ typedef struct OH_Drawing_TextLine OH_Drawing_TextLine; /** * @brief Defines an OH_Drawing_Run, which is used to manage run. * * @since 14 * @version 1.0 */ typedef struct OH_Drawing_Run OH_Drawing_Run; #ifdef __cplusplus } #endif /** @} */ #endif