OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::QtFactory Class Reference

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)
 

Detailed Description

The QtFactory is used to convert OpenTwin configuration objects to Qt objects.

Member Function Documentation

◆ toColor()

static ot::Color ot::QtFactory::toColor ( const QColor & _color)
inlinestatic

◆ toColorF()

static ot::ColorF ot::QtFactory::toColorF ( const QColor & _color)
inlinestatic

◆ toFont()

ot::Font ot::QtFactory::toFont ( const QFont & _font)
static

◆ toMargins() [1/2]

static Margins ot::QtFactory::toMargins ( const QMargins & _m)
inlinestatic

◆ toMargins() [2/2]

static MarginsD ot::QtFactory::toMargins ( const QMarginsF & _m)
inlinestatic

◆ toPoint2D() [1/2]

static ot::Point2D ot::QtFactory::toPoint2D ( const QPoint & _pt)
inlinestatic

◆ toPoint2D() [2/2]

static ot::Point2DD ot::QtFactory::toPoint2D ( const QPointF & _pt)
inlinestatic

◆ toQAlignment()

Qt::Alignment ot::QtFactory::toQAlignment ( ot::Alignment _alignment)
static

◆ toQBrush()

QBrush ot::QtFactory::toQBrush ( const ot::Painter2D * _painter)
static

Creates a QBrush equivalent to the provided painter. Returns default if no painter provided.

◆ toQColor() [1/2]

static QColor ot::QtFactory::toQColor ( const ot::Color & _color)
inlinestaticnoexcept

Convert OpenTwin Color to Qt Color.

◆ toQColor() [2/2]

static QColor ot::QtFactory::toQColor ( const ot::ColorF & _color)
inlinestaticnoexcept

◆ toQFont()

QFont ot::QtFactory::toQFont ( const Font & _f)
static

◆ toQGradientSpread()

QGradient::Spread ot::QtFactory::toQGradientSpread ( ot::GradientSpread _spread)
static

◆ toQMargins() [1/3]

static QMargins ot::QtFactory::toQMargins ( const Margins & _m)
inlinestaticnoexcept

◆ toQMargins() [2/3]

static QMarginsF ot::QtFactory::toQMargins ( const MarginsD & _m)
inlinestaticnoexcept

◆ toQMargins() [3/3]

static QMarginsF ot::QtFactory::toQMargins ( const MarginsF & _m)
inlinestaticnoexcept

◆ toQPainterPath()

QPainterPath ot::QtFactory::toQPainterPath ( const Path2DF & _path)
static

◆ toQPen() [1/2]

QPen ot::QtFactory::toQPen ( const Outline & _outline)
static

◆ toQPen() [2/2]

QPen ot::QtFactory::toQPen ( const OutlineF & _outline)
static

◆ toQPenCapStyle()

Qt::PenCapStyle ot::QtFactory::toQPenCapStyle ( LineCapStyle _style)
static

◆ toQPenJoinStyle()

Qt::PenJoinStyle ot::QtFactory::toQPenJoinStyle ( LineJoinStyle _style)
static

◆ toQPenStyle()

Qt::PenStyle ot::QtFactory::toQPenStyle ( LineStyle _style)
static

◆ toQPoint() [1/3]

static QPoint ot::QtFactory::toQPoint ( const Point2D & _pt)
inlinestaticnoexcept

◆ toQPoint() [2/3]

static QPointF ot::QtFactory::toQPoint ( const Point2DD & _pt)
inlinestaticnoexcept

◆ toQPoint() [3/3]

static QPointF ot::QtFactory::toQPoint ( const Point2DF & _pt)
inlinestaticnoexcept

◆ toQRect() [1/3]

static QRect ot::QtFactory::toQRect ( const Rect & _r)
inlinestaticnoexcept

◆ toQRect() [2/3]

static QRectF ot::QtFactory::toQRect ( const RectD & _r)
inlinestaticnoexcept

◆ toQRect() [3/3]

static QRectF ot::QtFactory::toQRect ( const RectF & _r)
inlinestaticnoexcept

◆ toQSize() [1/3]

static QSize ot::QtFactory::toQSize ( const Size2D & _s)
inlinestaticnoexcept

◆ toQSize() [2/3]

static QSizeF ot::QtFactory::toQSize ( const Size2DD & _s)
inlinestaticnoexcept

◆ toQSize() [3/3]

static QSizeF ot::QtFactory::toQSize ( const Size2DF & _s)
inlinestaticnoexcept

◆ toQString()

QString ot::QtFactory::toQString ( QEvent::Type _type)
static

◆ toQTableRange()

QTableWidgetSelectionRange ot::QtFactory::toQTableRange ( const ot::TableRange & _range)
static

◆ toQTransform()

QTransform ot::QtFactory::toQTransform ( const ot::Transform & _transform)
static

◆ toQTransformOnCenter()

QTransform ot::QtFactory::toQTransformOnCenter ( const ot::Transform & _transform,
const QPointF & _centerPos )
static

◆ toRect() [1/2]

static Rect ot::QtFactory::toRect ( const QRect & _r)
inlinestatic

◆ toRect() [2/2]

static RectD ot::QtFactory::toRect ( const QRectF & _r)
inlinestatic

◆ toSize2D() [1/2]

static Size2D ot::QtFactory::toSize2D ( const QSize & _s)
inlinestatic

◆ toSize2D() [2/2]

static Size2DD ot::QtFactory::toSize2D ( const QSizeF & _s)
inlinestatic

◆ toTableRange()

ot::TableRange ot::QtFactory::toTableRange ( const QTableWidgetSelectionRange & _range)
static

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