The QtFactory is used to convert OpenTwin configuration objects to Qt objects. More...
#include "QtFactory.h"
Static Public Member Functions | |
static QColor | toQColor (const ot::Color &_color) noexcept |
Convert OpenTwin Color to Qt Color. | |
static QColor | toQColor (const ot::ColorF &_color) noexcept |
static ot::Color | toColor (const QColor &_color) |
static ot::ColorF | toColorF (const QColor &_color) |
static QPoint | toQPoint (const Point2D &_pt) noexcept |
static QPointF | toQPoint (const Point2DF &_pt) noexcept |
static QPointF | toQPoint (const Point2DD &_pt) noexcept |
static ot::Point2D | toPoint2D (const QPoint &_pt) |
static ot::Point2DD | toPoint2D (const QPointF &_pt) |
static QSize | toQSize (const Size2D &_s) noexcept |
static QSizeF | toQSize (const Size2DF &_s) noexcept |
static QSizeF | toQSize (const Size2DD &_s) noexcept |
static Size2D | toSize2D (const QSize &_s) |
static Size2DD | toSize2D (const QSizeF &_s) |
static QRect | toQRect (const Rect &_r) noexcept |
static QRectF | toQRect (const RectF &_r) noexcept |
static QRectF | toQRect (const RectD &_r) noexcept |
static Rect | toRect (const QRect &_r) |
static RectD | toRect (const QRectF &_r) |
static QMargins | toQMargins (const Margins &_m) noexcept |
static QMarginsF | toQMargins (const MarginsF &_m) noexcept |
static QMarginsF | toQMargins (const MarginsD &_m) noexcept |
static Margins | toMargins (const QMargins &_m) |
static MarginsD | toMargins (const QMarginsF &_m) |
static QFont | toQFont (const Font &_f) |
static Font | toFont (const QFont &_font) |
static QPen | toQPen (const Outline &_outline) |
static QPen | toQPen (const OutlineF &_outline) |
static Qt::Alignment | toQAlignment (Alignment _alignment) |
static QGradient::Spread | toQGradientSpread (ot::GradientSpread _spread) |
static QBrush | toQBrush (const ot::Painter2D *_painter) |
Creates a QBrush equivalent to the provided painter. Returns default if no painter provided. | |
static Qt::PenStyle | toQPenStyle (LineStyle _style) |
static Qt::PenCapStyle | toQPenCapStyle (LineCapStyle _style) |
static Qt::PenJoinStyle | toQPenJoinStyle (LineJoinStyle _style) |
static QPainterPath | toQPainterPath (const Path2DF &_path) |
static QTransform | toQTransform (const ot::Transform &_transform) |
static QTransform | toQTransformOnCenter (const ot::Transform &_transform, const QPointF &_centerPos) |
static ot::TableRange | toTableRange (const QTableWidgetSelectionRange &_range) |
static QTableWidgetSelectionRange | toQTableRange (const ot::TableRange &_range) |
static QString | toQString (QEvent::Type _type) |
The QtFactory is used to convert OpenTwin configuration objects to Qt objects.
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Creates a QBrush equivalent to the provided painter. Returns default if no painter provided.
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
static |
|
static |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |