Provides methods for the creation of QFont
, QColor
, QPen
and QBrush
objects from Font, Color, Pen and Brush instances.
More...
#include <QtObjectFactory.hpp>
|
static QFont | createQFont (const Font &font) |
| Creates a QFont object that corresponds to the specified font. More...
|
|
static QColor | createQColor (const Color &color) |
| Creates a QColor object that corresponds to the specified color. More...
|
|
static QPen | createQPen (const Pen &pen) |
| Creates a QPen object that corresponds to the specified pen. More...
|
|
static QBrush | createQBrush (const Brush &brush) |
| Creates a QBrush object that corresponds to the specified brush. More...
|
|
static QPainterPath & | createQPainterPath (const Path2D &path, QPainterPath &qt_path) |
| Creates a QPainterPath object that corresponds to the specified path. More...
|
|
Provides methods for the creation of QFont
, QColor
, QPen
and QBrush
objects from Font, Color, Pen and Brush instances.
For information about QFont
, QColor
, QPen
and QBrush
see [QTDOC].
◆ createQFont()
static QFont CDPL::Vis::QtObjectFactory::createQFont |
( |
const Font & |
font | ) |
|
|
static |
Creates a QFont
object that corresponds to the specified font.
- Parameters
-
- Returns
- A
QFont
object equivalent to font.
◆ createQColor()
static QColor CDPL::Vis::QtObjectFactory::createQColor |
( |
const Color & |
color | ) |
|
|
static |
Creates a QColor
object that corresponds to the specified color.
- Parameters
-
- Returns
- A
QColor
object equivalent to color.
◆ createQPen()
static QPen CDPL::Vis::QtObjectFactory::createQPen |
( |
const Pen & |
pen | ) |
|
|
static |
Creates a QPen
object that corresponds to the specified pen.
- Parameters
-
- Returns
- A
QPen
object equivalent to pen.
◆ createQBrush()
static QBrush CDPL::Vis::QtObjectFactory::createQBrush |
( |
const Brush & |
brush | ) |
|
|
static |
Creates a QBrush
object that corresponds to the specified brush.
- Parameters
-
- Returns
- A
QBrush
object equivalent to brush.
◆ createQPainterPath()
static QPainterPath& CDPL::Vis::QtObjectFactory::createQPainterPath |
( |
const Path2D & |
path, |
|
|
QPainterPath & |
qt_path |
|
) |
| |
|
static |
Creates a QPainterPath
object that corresponds to the specified path.
- Parameters
-
path | The path object. |
qt_path | The QPainterPath object to create. |
- Returns
- The argument qt_path.
The documentation for this class was generated from the following file: