RTextLabel
Class in Math Module
Header: #include <src/core/math/RTextLabel.h>
Inherits: RPoint
Description
Section titled “Description”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.
Public Functions
Section titled “Public Functions”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 |
Public Attributes
Section titled “Public Attributes”| QString | text |
| QVariant | userData |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) const |
Member Documentation
Section titled “Member Documentation”RTextLabel
Section titled “RTextLabel”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
Section titled “RTextLabel”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
~RTextLabel
Section titled “~RTextLabel”virtual RTextLabel::~RTextLabel()virtual
virtual QSharedPointer< RShape > RTextLabel::clone() constvirtual inline const
Reimplemented from clone.
cloneToTextLabel
Section titled “cloneToTextLabel”QSharedPointer< RTextLabel > RTextLabel::cloneToTextLabel() constinline const
getText
Section titled “getText”QString RTextLabel::getText() constinline const
getUserData
Section titled “getUserData”QVariant RTextLabel::getUserData() constinline const
QString RTextLabel::textuserData
Section titled “userData”QVariant RTextLabel::userDatavirtual void RTextLabel::print(QDebug dbg) constvirtual const protected
Reimplemented from print.