text.h

Overview

Related Modules:

Graphic

Description:

Declares the Text class that provides functions to set basic text attributes, such as the text direction and alignment mode.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

OHOS::Text

Represents the base class of Text, providing the text attribute setting and text drawing capabilities for components that require font display.

Enumerations

Enumeration Name

Description

OHOS::UITextLanguageAlignment : uint8_t {   OHOS::TEXT_ALIGNMENT_LEFT = 0, OHOS::TEXT_ALIGNMENT_RIGHT, OHOS::TEXT_ALIGNMENT_CENTER, OHOS::TEXT_ALIGNMENT_TOP,   OHOS::TEXT_ALIGNMENT_BOTTOM }

Enumerates text alignment modes.

OHOS::UITextLanguageDirect : uint8_t { OHOS::TEXT_DIRECT_LTR = 0, OHOS::TEXT_DIRECT_RTL }

Enumerates text directions.