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's class QOpenGLPaintDevice
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Constructor Summary
ModifierConstructorDescriptionQOpenGLPaintDevice
(int width, int height) QOpenGLPaintDevice
(QSize size) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final QOpenGLContext
context()
final int
depth()
final double
final double
static double
final double
final double
void
final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) final int
final int
protected int
metric
(QPaintDevice.PaintDeviceMetric metric) final boolean
final boolean
final int
final int
protected QPaintDevice
redirected
(QPoint offset) final void
setDevicePixelRatio
(double devicePixelRatio) final void
setDotsPerMeterX
(double arg__1) final void
setDotsPerMeterY
(double arg__1) final void
setPaintFlipped
(boolean flipped) final void
protected QPainter
final QSize
size()
final int
width()
final int
widthMM()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QOpenGLPaintDevice
public QOpenGLPaintDevice() -
QOpenGLPaintDevice
-
QOpenGLPaintDevice
public QOpenGLPaintDevice(int width, int height) -
QOpenGLPaintDevice
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
context
-
depth
- Specified by:
depth
in interfaceQPaintDevice
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
dotsPerMeterX
-
dotsPerMeterY
-
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
paintFlipped
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
setDevicePixelRatio
-
setDotsPerMeterX
-
setDotsPerMeterY
-
setPaintFlipped
-
setSize
-
size
-
width
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
- Specified by:
widthMM
in interfaceQPaintDevice
-
ensureActiveTarget
-
initPainter
-
metric
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()
-