QCAD
Open Source 2D CAD
RTextLayout Class Reference

Copyright (c) 2011-2017 by Andrew Mustun. More...

#include <RTextLayout.h>

Public Member Functions

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
 
 RTextLayout ()
 
 RTextLayout (QSharedPointer< QTextLayout > layout, const QTransform &transform, const QColor &color)
 
 RTextLayout (const QList< RPainterPath > &pps, const QColor &color)
 

Public Attributes

RBox boundingBox
 
QColor color
 
int correspondingPainterPaths
 
double height
 
QSharedPointer< QTextLayout > layout
 
QList< RPainterPathpainterPaths
 
QTransform transform
 
bool ttf
 

Detailed Description

Copyright (c) 2011-2017 by Andrew Mustun.

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.

Constructor & Destructor Documentation

RTextLayout::RTextLayout ( )
inline
RTextLayout::RTextLayout ( QSharedPointer< QTextLayout >  layout,
const QTransform &  transform,
const QColor &  color 
)
inline
Non-Scriptable:
This function is not available in script environments.
RTextLayout::RTextLayout ( const QList< RPainterPath > &  pps,
const QColor &  color 
)
inline

Member Function Documentation

RBox RTextLayout::getBoundingBox ( ) const
inline
QColor RTextLayout::getColor ( ) const
inline
QString RTextLayout::getFont ( ) const
inline
double RTextLayout::getHeight ( ) const
inline
QSharedPointer<QTextLayout> RTextLayout::getLayout ( ) const
inline
QString RTextLayout::getText ( ) const
inline
QTransform RTextLayout::getTransform ( ) const
inline
bool RTextLayout::hasPainterPath ( ) const
inline
bool RTextLayout::isBold ( ) const
inline
bool RTextLayout::isEmpty ( ) const
inline
bool RTextLayout::isItalic ( ) const
inline
bool RTextLayout::isTTF ( ) const
inline

Member Data Documentation

RBox RTextLayout::boundingBox
QColor RTextLayout::color
int RTextLayout::correspondingPainterPaths
double RTextLayout::height
QSharedPointer<QTextLayout> RTextLayout::layout
QList<RPainterPath> RTextLayout::painterPaths
QTransform RTextLayout::transform
bool RTextLayout::ttf

The documentation for this class was generated from the following file: