C

SafeRenderer::QSafeTextLayout Class

class SafeRenderer::QSafeTextLayout

The QSafeTextLayout class contains functions for the text layout manipulation. More...

Header: #include <QSafeTextLayout>
Since: QtSafeRenderer 1.1

Public Functions

QSafeTextLayout()
const SafeRenderer::QSafeFont *font() const
(since QtSafeRenderer 1.1) SafeRenderer::quint32 fontFileCRC() const
SafeRenderer::HorizontalAlignment getHorizontalAlignment() const
SafeRenderer::VerticalAlignment getVerticalAlignment() const
void parseData(const SafeRenderer::QSafeByteArray &bufferArg)
void setColor(const SafeRenderer::ARGB &colorArg)
void setFont(const SafeRenderer::QSafeFont *const fontPtr)
void setText(const SafeRenderer::QSafeString &textArg)
const SafeRenderer::QSafeString &text() const &
void update() const

Detailed Description

Member Function Documentation

QSafeTextLayout::QSafeTextLayout()

Constructs QSafeTextLayout instance.

const SafeRenderer::QSafeFont *QSafeTextLayout::font() const

Returns the font.

See also setFont().

[since QtSafeRenderer 1.1] SafeRenderer::quint32 QSafeTextLayout::fontFileCRC() const

Returns font file CRC value.

This function was introduced in QtSafeRenderer 1.1.

SafeRenderer::HorizontalAlignment QSafeTextLayout::getHorizontalAlignment() const

Returns the horizontal alignment.

SafeRenderer::VerticalAlignment QSafeTextLayout::getVerticalAlignment() const

Returns the vertical alignment.

void QSafeTextLayout::parseData(const SafeRenderer::QSafeByteArray &bufferArg)

Parses text layout data from the given data buffer bufferArg.

In case of an error, following exception will be thrown:

ExceptionIdDescription
SafeRenderer::QSafeTextLayoutExceptionSafeRenderer::QSafeTextLayoutException::TextLayoutException::InvalidDataInvalid data
SafeRenderer::QSafeTextLayoutExceptionSafeRenderer::QSafeTextLayoutException::TextLayoutException::InvalidDataNo data

void QSafeTextLayout::setColor(const SafeRenderer::ARGB &colorArg)

Sets the text color to the given colorArg.

void QSafeTextLayout::setFont(const SafeRenderer::QSafeFont *const fontPtr)

Sets the font with parameter fontPtr.

See also font().

void QSafeTextLayout::setText(const SafeRenderer::QSafeString &textArg)

Sets the text to textArg.

See also text().

const SafeRenderer::QSafeString &QSafeTextLayout::text() const &

Returns the text.

See also setText().

void QSafeTextLayout::update() const

Requests an update.

Available under certain Qt licenses.
Find out more.