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
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
final QOpenGLContext
context()
final int
depth()
final double
final double
static double
SeeQPaintDevice::
devicePixelRatioFScale() final double
final double
void
final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) SeeQPaintDevice::
initPainter(QPainter*)const final int
final int
protected int
metric
(QPaintDevice.PaintDeviceMetric metric) final boolean
final boolean
final int
final int
protected QPaintDevice
redirected
(QPoint offset) SeeQPaintDevice::
redirected(QPoint*)const 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
SeeQPaintDevice::
sharedPainter()const 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
- Parameters:
size
-
-
QOpenGLPaintDevice
public QOpenGLPaintDevice(int width, int height) - Parameters:
width
-height
-
-
-
Method Details
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
- Returns:
-
context
- Returns:
-
depth
- Specified by:
depth
in interfaceQPaintDevice
- Returns:
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
- Returns:
-
devicePixelRatioF
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
dotsPerMeterX
- Returns:
-
dotsPerMeterY
- Returns:
-
height
- Specified by:
height
in interfaceQPaintDevice
- Returns:
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
- Returns:
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
- Returns:
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
- Returns:
-
paintFlipped
- Returns:
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
- Returns:
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
- Returns:
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
- Returns:
-
setDevicePixelRatio
- Parameters:
devicePixelRatio
-
-
setDotsPerMeterX
- Parameters:
arg__1
-
-
setDotsPerMeterY
- Parameters:
arg__1
-
-
setPaintFlipped
- Parameters:
flipped
-
-
setSize
- Parameters:
size
-
-
size
- Returns:
-
width
- Specified by:
width
in interfaceQPaintDevice
- Returns:
-
widthMM
- Specified by:
widthMM
in interfaceQPaintDevice
- Returns:
-
ensureActiveTarget
-
initPainter
See
QPaintDevice::
initPainter(QPainter*)const - Parameters:
painter
-
-
metric
- Parameters:
metric
-- Returns:
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
- Returns:
-
redirected
See
QPaintDevice::
redirected(QPoint*)const - Parameters:
offset
-- Returns:
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()See
QPaintDevice::
devicePixelRatioFScale() - Returns:
-