RTextLayout
Class in Core Module
Header: #include <src/core/RTextLayout.h>
Description
Section titled “Description”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.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Functions
Section titled “Public Functions”RTextLayout() |
|
RTextLayout(const QList< RPainterPath > &pps, const QColor &color) |
|
RTextLayout(QSharedPointer< QTextLayout > layout, const QTransform &transform, const QColor &color) |
|
| RBox | getBoundingBox() const |
| QColor | getColor() const |
| QString | getFont() const |
| double | getHeight() const |
| QSharedPointer< QTextLayout > | getLayout() const |
| QString | getText() const |
| QTransform | getTransform() const |
| bool | hasPainterPath() const |
| bool | isBold() const |
| bool | isEmpty() const |
| bool | isItalic() const |
| bool | isTTF() const |
| bool | isUnderline() const |
Public Attributes
Section titled “Public Attributes”| RBox | boundingBox |
| QColor | color |
| int | correspondingPainterPaths |
| double | height |
| QSharedPointer< QTextLayout > | layout |
| QList< RPainterPath > | painterPaths |
| QTransform | transform |
| bool | ttf |
Member Documentation
Section titled “Member Documentation”RTextLayout
Section titled “RTextLayout”RTextLayout::RTextLayout()inline
RTextLayout
Section titled “RTextLayout”RTextLayout::RTextLayout(const QList< RPainterPath > &pps, const QColor &color)inline
RTextLayout
Section titled “RTextLayout”RTextLayout::RTextLayout(QSharedPointer< QTextLayout > layout, const QTransform &transform, const QColor &color)inline
Non-Scriptable: This function is not available in script environments.
getBoundingBox
Section titled “getBoundingBox”RBox RTextLayout::getBoundingBox() constinline const
getColor
Section titled “getColor”QColor RTextLayout::getColor() constinline const
getFont
Section titled “getFont”QString RTextLayout::getFont() constinline const
getHeight
Section titled “getHeight”double RTextLayout::getHeight() constinline const
getLayout
Section titled “getLayout”QSharedPointer< QTextLayout > RTextLayout::getLayout() constinline const
getText
Section titled “getText”QString RTextLayout::getText() constinline const
getTransform
Section titled “getTransform”QTransform RTextLayout::getTransform() constinline const
hasPainterPath
Section titled “hasPainterPath”bool RTextLayout::hasPainterPath() constinline const
isBold
Section titled “isBold”bool RTextLayout::isBold() constinline const
isEmpty
Section titled “isEmpty”bool RTextLayout::isEmpty() constinline const
isItalic
Section titled “isItalic”bool RTextLayout::isItalic() constinline const
bool RTextLayout::isTTF() constinline const
isUnderline
Section titled “isUnderline”bool RTextLayout::isUnderline() constinline const
boundingBox
Section titled “boundingBox”RBox RTextLayout::boundingBoxQColor RTextLayout::colorcorrespondingPainterPaths
Section titled “correspondingPainterPaths”int RTextLayout::correspondingPainterPathsheight
Section titled “height”double RTextLayout::heightlayout
Section titled “layout”QSharedPointer<QTextLayout> RTextLayout::layoutpainterPaths
Section titled “painterPaths”QList<RPainterPath> RTextLayout::painterPathstransform
Section titled “transform”QTransform RTextLayout::transformbool RTextLayout::ttf