java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QOpenGLPaintDevice
- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
public class QOpenGLPaintDevice extends QtObject implements QPaintDevice
Enables painting to an OpenGL context using QPainter
Java wrapper for Qt class QOpenGLPaintDevice
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Constructor Summary
Constructors Modifier Constructor Description QOpenGLPaintDevice()
QOpenGLPaintDevice(int width, int height)
QOpenGLPaintDevice(QSize size)
protected
QOpenGLPaintDevice(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description int
colorCount()
QOpenGLContext
context()
int
depth()
double
devicePixelRatio()
double
devicePixelRatioF()
static double
devicePixelRatioFScale()
double
dotsPerMeterX()
double
dotsPerMeterY()
void
ensureActiveTarget()
int
height()
int
heightMM()
protected void
initPainter(QPainter painter)
int
logicalDpiX()
int
logicalDpiY()
protected int
metric(QPaintDevice.PaintDeviceMetric metric)
QPaintEngine
paintEngine()
boolean
paintFlipped()
boolean
paintingActive()
int
physicalDpiX()
int
physicalDpiY()
protected QPaintDevice
redirected(QPoint offset)
void
setDevicePixelRatio(double devicePixelRatio)
void
setDotsPerMeterX(double arg__1)
void
setDotsPerMeterY(double arg__1)
void
setPaintFlipped(boolean flipped)
void
setSize(QSize size)
protected QPainter
sharedPainter()
QSize
size()
int
width()
int
widthMM()
-
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
-
sharedPainter
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()
-