java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QObject
io.qt.gui.QWindow
io.qt.gui.QPaintDeviceWindow
io.qt.opengl.QOpenGLWindow
- All Implemented Interfaces:
QPaintDevice
,QSurface
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
public class QOpenGLWindow extends QPaintDeviceWindow
Convenience subclass of QWindow to perform OpenGL painting
Java wrapper for Qt class QOpenGLWindow
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QOpenGLWindow.UpdateBehavior
Java wrapper for Qt enum QOpenGLWindow::UpdateBehaviorNested classes/interfaces inherited from class io.qt.gui.QWindow
QWindow.AncestorMode, QWindow.Visibility
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QBooleanProperty, QObject.QByteProperty, QObject.QCharProperty, QObject.QComputedBooleanProperty, QObject.QComputedByteProperty, QObject.QComputedCharProperty, QObject.QComputedDoubleProperty, QObject.QComputedFloatProperty, QObject.QComputedIntProperty, QObject.QComputedLongProperty, QObject.QComputedProperty<T>, QObject.QComputedShortProperty, QObject.QDeclarativeConstructor, QObject.QDoubleProperty, QObject.QFloatProperty, QObject.QIntProperty, QObject.QLongProperty, QObject.QProperty<T>, QObject.QShortProperty, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
Nested classes/interfaces inherited from interface io.qt.gui.QSurface
QSurface.Impl, QSurface.MemberAccess, QSurface.SurfaceType
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal0
frameSwapped
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.gui.QWindow
activeChanged, contentOrientationChanged, focusObjectChanged, heightChanged, maximumHeightChanged, maximumWidthChanged, minimumHeightChanged, minimumWidthChanged, modalityChanged, opacityChanged, screenChanged, transientParentChanged, visibilityChanged, visibleChanged, widthChanged, windowStateChanged, windowTitleChanged, xChanged, yChanged
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description QOpenGLContext
context()
int
defaultFramebufferObject()
void
doneCurrent()
QImage
grabFramebuffer()
protected void
initializeGL()
boolean
isValid()
void
makeCurrent()
protected int
metric(QPaintDevice.PaintDeviceMetric metric)
protected void
paintEvent(QPaintEvent event)
protected void
paintGL()
protected void
paintOverGL()
protected void
paintUnderGL()
protected QPaintDevice
redirected(QPoint arg__1)
protected void
resizeEvent(QResizeEvent event)
protected void
resizeGL(int w, int h)
QOpenGLContext
shareContext()
QOpenGLWindow.UpdateBehavior
updateBehavior()
Methods inherited from class io.qt.gui.QPaintDeviceWindow
colorCount, depth, devicePixelRatioF, devicePixelRatioFScale, exposeEvent, heightMM, initPainter, logicalDpiX, logicalDpiY, paintEngine, paintingActive, physicalDpiX, physicalDpiY, sharedPainter, update, update, update, widthMM
Methods inherited from class io.qt.gui.QWindow
accessibleRoot, alert, baseSize, close, closeEvent, contentOrientation, create, cursor, destroy, devicePixelRatio, event, filePath, flags, focusInEvent, focusObject, focusOutEvent, format, frameGeometry, frameMargins, framePosition, fromWinId, geometry, height, hide, hideEvent, icon, isActive, isAncestorOf, isAncestorOf, isExposed, isModal, isTopLevel, isVisible, keyPressEvent, keyReleaseEvent, lower, mapFromGlobal, mapFromGlobal, mapToGlobal, mapToGlobal, mask, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, modality, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, moveEvent, nonTransientParent, opacity, parent, position, raise, reportContentOrientationChange, requestActivate, requestedFormat, requestUpdate, resize, resize, screen, setBaseSize, setCursor, setFilePath, setFlag, setFlag, setFlags, setFlags, setFormat, setFramePosition, setGeometry, setGeometry, setHeight, setIcon, setKeyboardGrabEnabled, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setModality, setMouseGrabEnabled, setOpacity, setParent, setPosition, setPosition, setScreen, setSizeIncrement, setSurfaceType, setTitle, setTransientParent, setVisibility, setVisible, setWidth, setWindowState, setWindowStates, setWindowStates, setX, setY, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, startSystemMove, startSystemResize, startSystemResize, supportsOpenGL, surfaceType, tabletEvent, title, toString, touchEvent, transientParent, type, unsetCursor, visibility, wheelEvent, width, windowState, windowStates, winId, x, y
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, eventFilter, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
frameSwapped
-
-
Constructor Details
-
QOpenGLWindow
Overloaded constructor for
QOpenGLWindow(io.qt.gui.QOpenGLContext, io.qt.opengl.QOpenGLWindow.UpdateBehavior, io.qt.gui.QWindow)
withparent = null
. -
QOpenGLWindow
Overloaded constructor for
QOpenGLWindow(io.qt.gui.QOpenGLContext, io.qt.opengl.QOpenGLWindow.UpdateBehavior, io.qt.gui.QWindow)
with:
updateBehavior = io.qt.opengl.QOpenGLWindow.UpdateBehavior.NoPartialUpdate
parent = null
-
QOpenGLWindow
public QOpenGLWindow(QOpenGLContext shareContext, QOpenGLWindow.UpdateBehavior updateBehavior, QWindow parent) -
QOpenGLWindow
Overloaded constructor for
QOpenGLWindow(io.qt.opengl.QOpenGLWindow.UpdateBehavior, io.qt.gui.QWindow)
withparent = null
. -
QOpenGLWindow
public QOpenGLWindow()Overloaded constructor for
QOpenGLWindow(io.qt.opengl.QOpenGLWindow.UpdateBehavior, io.qt.gui.QWindow)
with:
updateBehavior = io.qt.opengl.QOpenGLWindow.UpdateBehavior.NoPartialUpdate
parent = null
-
QOpenGLWindow
-
QOpenGLWindow
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QOpenGLWindow
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
context
-
defaultFramebufferObject
-
doneCurrent
-
grabFramebuffer
-
isValid
-
makeCurrent
-
shareContext
-
updateBehavior
-
initializeGL
-
metric
- Overrides:
metric
in classQPaintDeviceWindow
-
paintEvent
- Overrides:
paintEvent
in classQPaintDeviceWindow
-
paintGL
-
paintOverGL
-
paintUnderGL
-
redirected
- Overrides:
redirected
in classQPaintDeviceWindow
-
resizeEvent
- Overrides:
resizeEvent
in classQWindow
-
resizeGL
-