KLayout Manual: Main Index » Class Index » API reference - Class QPaintDevice

API reference - Class QPaintDevice

Notation used in Ruby API documentation

Description: Binding of QPaintDevice

Class hierarchy: QPaintDevice

Public constructors

QPaintDevicenewCreates a new object of this class

Public methods

[const]intcolorCountMethod int QPaintDevice::colorCount()
voidcreateEnsures the C++ object is created
[const]intdepthMethod int QPaintDevice::depth()
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]intheightMethod int QPaintDevice::height()
[const]intheightMMMethod int QPaintDevice::heightMM()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]intlogicalDpiXMethod int QPaintDevice::logicalDpiX()
[const]intlogicalDpiYMethod int QPaintDevice::logicalDpiY()
[const]intnumColorsMethod int QPaintDevice::numColors()
[virtual,const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine * QPaintDevice::paintEngine()
[const]boolpaintingActiveMethod bool QPaintDevice::paintingActive()
[const]intphysicalDpiXMethod int QPaintDevice::physicalDpiX()
[const]intphysicalDpiYMethod int QPaintDevice::physicalDpiY()
[const]intwidthMethod int QPaintDevice::width()
[const]intwidthMMMethod int QPaintDevice::widthMM()

Public static methods and constants

QPaintDevice_PaintDeviceMetricPdmDepthEnum constant enum QPaintDevice::PdmDepth
QPaintDevice_PaintDeviceMetricPdmDpiXEnum constant enum QPaintDevice::PdmDpiX
QPaintDevice_PaintDeviceMetricPdmDpiYEnum constant enum QPaintDevice::PdmDpiY
QPaintDevice_PaintDeviceMetricPdmHeightEnum constant enum QPaintDevice::PdmHeight
QPaintDevice_PaintDeviceMetricPdmHeightMMEnum constant enum QPaintDevice::PdmHeightMM
QPaintDevice_PaintDeviceMetricPdmNumColorsEnum constant enum QPaintDevice::PdmNumColors
QPaintDevice_PaintDeviceMetricPdmPhysicalDpiXEnum constant enum QPaintDevice::PdmPhysicalDpiX
QPaintDevice_PaintDeviceMetricPdmPhysicalDpiYEnum constant enum QPaintDevice::PdmPhysicalDpiY
QPaintDevice_PaintDeviceMetricPdmWidthEnum constant enum QPaintDevice::PdmWidth
QPaintDevice_PaintDeviceMetricPdmWidthMMEnum constant enum QPaintDevice::PdmWidthMM

Protected methods (static, non-static and constructors)

[virtual,const]intmetric(const QPaintDevice_PaintDeviceMetric metric)Virtual method int QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric)

Detailed description

[static] QPaintDevice_PaintDeviceMetric PdmDepth

Description: Enum constant enum QPaintDevice::PdmDepth

[static] QPaintDevice_PaintDeviceMetric PdmDpiX

Description: Enum constant enum QPaintDevice::PdmDpiX

[static] QPaintDevice_PaintDeviceMetric PdmDpiY

Description: Enum constant enum QPaintDevice::PdmDpiY

[static] QPaintDevice_PaintDeviceMetric PdmHeight

Description: Enum constant enum QPaintDevice::PdmHeight

[static] QPaintDevice_PaintDeviceMetric PdmHeightMM

Description: Enum constant enum QPaintDevice::PdmHeightMM

[static] QPaintDevice_PaintDeviceMetric PdmNumColors

Description: Enum constant enum QPaintDevice::PdmNumColors

[static] QPaintDevice_PaintDeviceMetric PdmPhysicalDpiX

Description: Enum constant enum QPaintDevice::PdmPhysicalDpiX

[static] QPaintDevice_PaintDeviceMetric PdmPhysicalDpiY

Description: Enum constant enum QPaintDevice::PdmPhysicalDpiY

[static] QPaintDevice_PaintDeviceMetric PdmWidth

Description: Enum constant enum QPaintDevice::PdmWidth

[static] QPaintDevice_PaintDeviceMetric PdmWidthMM

Description: Enum constant enum QPaintDevice::PdmWidthMM

[const] int colorCount

Description: Method int QPaintDevice::colorCount()

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[const] int depth

Description: Method int QPaintDevice::depth()

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] int height

Description: Method int QPaintDevice::height()

[const] int heightMM

Description: Method int QPaintDevice::heightMM()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] int logicalDpiX

Description: Method int QPaintDevice::logicalDpiX()

[const] int logicalDpiY

Description: Method int QPaintDevice::logicalDpiY()

[virtual,const] int metric(const QPaintDevice_PaintDeviceMetric metric)

Description: Virtual method int QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric)

This method can be reimplemented in a derived class.

[static] QPaintDevice new

Description: Creates a new object of this class

[const] int numColors

Description: Method int QPaintDevice::numColors()

[virtual,const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine * QPaintDevice::paintEngine()

This method can be reimplemented in a derived class.

[const] bool paintingActive

Description: Method bool QPaintDevice::paintingActive()

[const] int physicalDpiX

Description: Method int QPaintDevice::physicalDpiX()

[const] int physicalDpiY

Description: Method int QPaintDevice::physicalDpiY()

[const] int width

Description: Method int QPaintDevice::width()

[const] int widthMM

Description: Method int QPaintDevice::widthMM()