java.lang.Object
io.qt.QtObject
io.qt.gui.QOpenGLPaintDevice
- All Implemented Interfaces:
QPaintDevice,QtObjectInterface
Enables painting to an OpenGL context using QPainter
Java wrapper for Qt class QOpenGLPaintDevice
- Since:
- This class was introduced in Qt 5.0.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.PaintDeviceMetric -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal QOpenGLContextcontext()final intdepth()final doublefinal doublestatic doubleSeeQPaintDevice::devicePixelRatioFScale() final doublefinal doublevoidfinal intheight()final intheightMM()protected voidinitPainter(QPainter painter) SeeQPaintDevice::initPainter(QPainter*)const final intfinal intprotected intmetric(QPaintDevice.PaintDeviceMetric metric) final booleanfinal booleanfinal intfinal intprotected QPaintDeviceredirected(QPoint offset) SeeQPaintDevice::redirected(QPoint*)const final voidsetDevicePixelRatio(double devicePixelRatio) final voidsetDotsPerMeterX(double arg__1) final voidsetDotsPerMeterY(double arg__1) final voidsetPaintFlipped(boolean flipped) final voidprotected QPainterSeeQPaintDevice::sharedPainter()const final QSizesize()final intwidth()final intwidthMM()Methods inherited from class io.qt.QtObject
dispose, equals, isDisposedMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QOpenGLPaintDevice
public QOpenGLPaintDevice() -
QOpenGLPaintDevice
- Parameters:
size-
-
QOpenGLPaintDevice
public QOpenGLPaintDevice(int width, int height) - Parameters:
width-height-
-
-
Method Details
-
colorCount
- Specified by:
colorCountin interfaceQPaintDevice- Returns:
-
context
- Returns:
-
depth
- Specified by:
depthin interfaceQPaintDevice- Returns:
-
devicePixelRatio
- Specified by:
devicePixelRatioin interfaceQPaintDevice- Returns:
-
devicePixelRatioF
- Specified by:
devicePixelRatioFin interfaceQPaintDevice- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
dotsPerMeterX
- Returns:
-
dotsPerMeterY
- Returns:
-
height
- Specified by:
heightin interfaceQPaintDevice- Returns:
-
heightMM
- Specified by:
heightMMin interfaceQPaintDevice- Returns:
-
logicalDpiX
- Specified by:
logicalDpiXin interfaceQPaintDevice- Returns:
-
logicalDpiY
- Specified by:
logicalDpiYin interfaceQPaintDevice- Returns:
-
paintFlipped
- Returns:
-
paintingActive
- Specified by:
paintingActivein interfaceQPaintDevice- Returns:
-
physicalDpiX
- Specified by:
physicalDpiXin interfaceQPaintDevice- Returns:
-
physicalDpiY
- Specified by:
physicalDpiYin interfaceQPaintDevice- Returns:
-
setDevicePixelRatio
- Parameters:
devicePixelRatio-
-
setDotsPerMeterX
- Parameters:
arg__1-
-
setDotsPerMeterY
- Parameters:
arg__1-
-
setPaintFlipped
- Parameters:
flipped-
-
setSize
- Parameters:
size-
-
size
- Returns:
-
width
- Specified by:
widthin interfaceQPaintDevice- Returns:
-
widthMM
- Specified by:
widthMMin interfaceQPaintDevice- Returns:
-
ensureActiveTarget
-
initPainter
See
QPaintDevice::initPainter(QPainter*)const - Parameters:
painter-
-
metric
- Parameters:
metric-- Returns:
-
paintEngine
- Specified by:
paintEnginein interfaceQPaintDevice- Returns:
-
redirected
See
QPaintDevice::redirected(QPoint*)const - Parameters:
offset-- Returns:
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()See
QPaintDevice::devicePixelRatioFScale() - Returns:
-