C

QSafeEventSetTextColor Class

class SafeRenderer::QSafeEventSetTextColor

The QSafeEventSetTextColor class provides an event that changes the color of the text element. More...

Header: #include <QSafeEventSetTextColor>
Since: QtSafeRenderer 1.1
Inherits: SafeRenderer::QSafeEvent

This class was introduced in QtSafeRenderer 1.1.

Public Functions

void getColor(SafeRenderer::quint32 &redArg, SafeRenderer::quint32 &greenArg, SafeRenderer::quint32 &blueArg) const
SafeRenderer::quint32 id() const
void setColor(const SafeRenderer::quint32 redArg, const SafeRenderer::quint32 greenArg, const SafeRenderer::quint32 blueArg)
void setId(const SafeRenderer::quint32 valueArg)

Detailed Description

Member Function Documentation

void QSafeEventSetTextColor::getColor(SafeRenderer::quint32 &redArg, SafeRenderer::quint32 &greenArg, SafeRenderer::quint32 &blueArg) const

Gets the red (redArg), green (greenArg), and blue (blueArg) components of the RGB color value.

SafeRenderer::quint32 QSafeEventSetTextColor::id() const

Returns this event's item id.

See also setId().

void QSafeEventSetTextColor::setColor(const SafeRenderer::quint32 redArg, const SafeRenderer::quint32 greenArg, const SafeRenderer::quint32 blueArg)

Sets the color value.

  • redArg is the red component of the color
  • greenArg is the green component of the color
  • blueArg is the blue component of the color

void QSafeEventSetTextColor::setId(const SafeRenderer::quint32 valueArg)

Sets the item id.

valueArg is the hash of the Safe Item's objectName in QML.

See also id().

Available under certain Qt licenses.
Find out more.