Skip to content

RTextLabel

Class in Math Module
Header: #include <src/core/math/RTextLabel.h>
Inherits: RPoint

Text label.

Mainly used to add to preview as information for the user, e.g. to display current snap mode.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.

RTextLabel()
RTextLabel(const RVector &position, const QString &text, const QVariant &userData=RDEFAULT_QVARIANT)
Creates a point object with the given position.
virtual ~RTextLabel()
virtual QSharedPointer< RShape > clone() const
QSharedPointer< RTextLabel > cloneToTextLabel() const
QString getText() const
QVariant getUserData() const
QString text
QVariant userData
virtual void print(QDebug dbg) const

RTextLabel::RTextLabel()

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. Creates a point object with an invalid position

RTextLabel::RTextLabel(const RVector &position, const QString &text, const QVariant &userData=RDEFAULT_QVARIANT)

Creates a point object with the given position.

Parameters:

  • position: the position

virtual RTextLabel::~RTextLabel()

virtual

virtual QSharedPointer< RShape > RTextLabel::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RTextLabel > RTextLabel::cloneToTextLabel() const

inline const

QString RTextLabel::getText() const

inline const

QVariant RTextLabel::getUserData() const

inline const

QString RTextLabel::text

QVariant RTextLabel::userData

virtual void RTextLabel::print(QDebug dbg) const

virtual const protected

Reimplemented from print.