Chemical Data Processing Library Python API - Version 1.1.1
Static Public Member Functions | List of all members
CDPL.Vis.QtBackend.QtObjectFactory Class Reference

Provides methods for the creation of QFont, QColor, QPen and QBrush objects from Font, Color, Pen and Brush instances. More...

+ Inheritance diagram for CDPL.Vis.QtBackend.QtObjectFactory:

Static Public Member Functions

PyQt5.QtGui.QFont createQFont (Vis.Font font)
 Creates a QFont object that corresponds to the specified font. More...
 
PyQt5.QtGui.QColor createQColor (Vis.Color color)
 Creates a QColor object that corresponds to the specified color. More...
 
PyQt5.QtGui.QPen createQPen (Vis.Pen pen)
 Creates a QPen object that corresponds to the specified pen. More...
 
PyQt5.QtGui.QBrush createQBrush (Vis.Brush brush)
 Creates a QBrush object that corresponds to the specified brush. More...
 
PyQt5.QtGui.QPainterPath createQPainterPath (Vis.Path2D path, PyQt5.QtGui.QPainterPath qt_path)
 Creates a QPainterPath object that corresponds to the specified path. More...
 

Detailed Description

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].

Member Function Documentation

◆ createQFont()

PyQt5.QtGui.QFont CDPL.Vis.QtBackend.QtObjectFactory.createQFont ( Vis.Font  font)
static

Creates a QFont object that corresponds to the specified font.

Parameters
fontThe font object.
Returns
A QFont object equivalent to font.

◆ createQColor()

PyQt5.QtGui.QColor CDPL.Vis.QtBackend.QtObjectFactory.createQColor ( Vis.Color  color)
static

Creates a QColor object that corresponds to the specified color.

Parameters
colorThe color object.
Returns
A QColor object equivalent to color.

◆ createQPen()

PyQt5.QtGui.QPen CDPL.Vis.QtBackend.QtObjectFactory.createQPen ( Vis.Pen  pen)
static

Creates a QPen object that corresponds to the specified pen.

Parameters
penThe pen object.
Returns
A QPen object equivalent to pen.

◆ createQBrush()

PyQt5.QtGui.QBrush CDPL.Vis.QtBackend.QtObjectFactory.createQBrush ( Vis.Brush  brush)
static

Creates a QBrush object that corresponds to the specified brush.

Parameters
brushThe brush object.
Returns
A QBrush object equivalent to brush.

◆ createQPainterPath()

PyQt5.QtGui.QPainterPath CDPL.Vis.QtBackend.QtObjectFactory.createQPainterPath ( Vis.Path2D  path,
PyQt5.QtGui.QPainterPath  qt_path 
)
static

Creates a QPainterPath object that corresponds to the specified path.

Parameters
pathThe path object.
qt_pathThe QPainterPath object to create.
Returns
The argument qt_path.