주요 내용으로 건너뛰기

BoundingArea

touchgfx/widgets/TextArea.hpp

Structure for the relationship between a bounding rectangle and the contained text.

Public Functions

BoundingArea()
Initializes a new instance of the BoundingArea class which is invalid by default.
BoundingArea(const Rect & boundingRect, const Unicode::UnicodeChar * containedText)
Initializes a new instance of the BoundingArea class.
RectgetRect() const
Gets bounding rectangle.
boolisValid(const Unicode::UnicodeChar * currentText) const
Query if the bounding area is valid.

Public Functions Documentation

BoundingArea

Initializes a new instance of the BoundingArea class which is invalid by default.

BoundingArea

BoundingArea(const Rect &boundingRect ,
const Unicode::UnicodeChar *containedText
)

Initializes a new instance of the BoundingArea class.

Parameters:
boundingRectThe bounding rectangle of this text area.
containedTextA pointer to the text contained in the bounding rectangle.

getRect

Rect getRect()const

Gets bounding rectangle.

Returns:

The bounding rectangle.

isValid

bool isValid(const Unicode::UnicodeChar *currentText)

Query if the bounding area is valid.

Parameters:
currentTextA pointer to the current text of this text area.
Returns:

True if valid otherwise false.