C

QSafeTextLayout Class

class SafeRenderer::QSafeTextLayout
Header: #include <QSafeTextLayout>
Since: QtSafeRenderer 1.1
Inherits: SafeRenderer::QSafeBitmapBuffer

This class was introduced in QtSafeRenderer 1.1.

Public Types

enum HorizontalAlignment { Left, Right, HorizontalCenter }
enum VerticalAlignment { Top, Bottom, VerticalCenter }

Public Functions

const SafeRenderer::QSafeFont *font() const
SafeRenderer::quint32 fontFileCRC() const
const SafeRenderer::qchar *fontName() const
SafeRenderer::QSafeTextLayout::HorizontalAlignment getHorizontalAlignment() const
SafeRenderer::QSafeTextLayout::VerticalAlignment getVerticalAlignment() const
void parseData(const SafeRenderer::quchar *const data, const SafeRenderer::quint32 length)
void setColor(const SafeRenderer::ARGB &color)
void setFont(const SafeRenderer::QSafeFont *const fontPtr)
void setText(const SafeRenderer::qchar *const textArg)
const SafeRenderer::qchar *text() const
void update()

Detailed Description

Member Type Documentation

enum QSafeTextLayout::HorizontalAlignment

This enum type specifies horizontal alignment:

ConstantValue
SafeRenderer::QSafeTextLayout::Left0
SafeRenderer::QSafeTextLayout::Right1
SafeRenderer::QSafeTextLayout::HorizontalCenter2

enum QSafeTextLayout::VerticalAlignment

This enum type specifies vertical alignment:

ConstantValue
SafeRenderer::QSafeTextLayout::Top0
SafeRenderer::QSafeTextLayout::Bottom1
SafeRenderer::QSafeTextLayout::VerticalCenter2

Member Function Documentation

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

Returns the font.

See also setFont().

SafeRenderer::quint32 QSafeTextLayout::fontFileCRC() const

Returns font file CRC value.

This function was introduced in QtSafeRenderer 1.1.

const SafeRenderer::qchar *QSafeTextLayout::fontName() const

Returns font name.

SafeRenderer::QSafeTextLayout::HorizontalAlignment QSafeTextLayout::getHorizontalAlignment() const

Returns the horizontal alignment.

SafeRenderer::QSafeTextLayout::VerticalAlignment QSafeTextLayout::getVerticalAlignment() const

Returns the vertical alignment.

void QSafeTextLayout::parseData(const SafeRenderer::quchar *const data, const SafeRenderer::quint32 length)

Parses data with length.

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

Sets the color.

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

Sets the font with parameter fontPtr.

See also font().

void QSafeTextLayout::setText(const SafeRenderer::qchar *const textArg)

Sets the text to textArg.

See also text().

const SafeRenderer::qchar *QSafeTextLayout::text() const

Returns the text.

See also setText().

void QSafeTextLayout::update()

Request for update.

Available under certain Qt licenses.
Find out more.