- All Implemented Interfaces:
QSurface
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
- Direct Known Subclasses:
QPaintDeviceWindow
,QQuickWindow
public class QWindow extends QObject implements QSurface
Represents a window in the underlying windowing system
Java wrapper for Qt class QWindow
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QWindow.AncestorMode
Java wrapper for Qt enum QWindow::AncestorModestatic class
QWindow.Visibility
Java wrapper for Qt enum QWindow::VisibilityNested 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.QSurface
QSurface.Impl, QSurface.MemberAccess, QSurface.SurfaceType
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description QWindow()
Overloaded constructor forQWindow(io.qt.gui.QScreen)
withscreen = null
.protected
QWindow(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.QWindow(QScreen screen)
QWindow(QWindow parent)
protected
QWindow(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QAccessibleInterface
accessibleRoot()
void
alert(int msec)
QSize
baseSize()
boolean
close()
See QWindow::close()protected void
closeEvent(QCloseEvent arg__1)
Qt.ScreenOrientation
contentOrientation()
void
create()
QCursor
cursor()
The cursor shape for this windowvoid
destroy()
double
devicePixelRatio()
boolean
event(QEvent arg__1)
protected void
exposeEvent(QExposeEvent arg__1)
String
filePath()
The file name this window is representingQt.WindowFlags
flags()
protected void
focusInEvent(QFocusEvent arg__1)
QObject
focusObject()
protected void
focusOutEvent(QFocusEvent arg__1)
QSurfaceFormat
format()
QRect
frameGeometry()
QMargins
frameMargins()
QPoint
framePosition()
static QWindow
fromWinId(long id)
QRect
geometry()
int
height()
void
hide()
See QWindow::hide()protected void
hideEvent(QHideEvent arg__1)
QIcon
icon()
Returns the window's icon in the windowing systemboolean
isActive()
boolean
isAncestorOf(QWindow child)
Overloaded function forisAncestorOf(io.qt.gui.QWindow, io.qt.gui.QWindow.AncestorMode)
withmode = io.qt.gui.QWindow.AncestorMode.IncludeTransients
.boolean
isAncestorOf(QWindow child, QWindow.AncestorMode mode)
boolean
isExposed()
boolean
isModal()
boolean
isTopLevel()
boolean
isVisible()
protected void
keyPressEvent(QKeyEvent arg__1)
protected void
keyReleaseEvent(QKeyEvent arg__1)
void
lower()
See QWindow::lower()QPoint
mapFromGlobal(QPoint pos)
QPointF
mapFromGlobal(QPointF pos)
QPoint
mapToGlobal(QPoint pos)
QPointF
mapToGlobal(QPointF pos)
QRegion
mask()
int
maximumHeight()
QSize
maximumSize()
int
maximumWidth()
int
minimumHeight()
QSize
minimumSize()
int
minimumWidth()
Qt.WindowModality
modality()
protected void
mouseDoubleClickEvent(QMouseEvent arg__1)
protected void
mouseMoveEvent(QMouseEvent arg__1)
protected void
mousePressEvent(QMouseEvent arg__1)
protected void
mouseReleaseEvent(QMouseEvent arg__1)
protected void
moveEvent(QMoveEvent arg__1)
QWindow
nonTransientParent()
Overloaded function forparent(io.qt.gui.QWindow.AncestorMode)
withmode = io.qt.gui.QWindow.AncestorMode.ExcludeTransients
.double
opacity()
protected void
paintEvent(QPaintEvent arg__1)
QWindow
parent(QWindow.AncestorMode mode)
QPoint
position()
Returns the position of the window on the desktop excluding any window framevoid
raise()
See QWindow::raise()void
reportContentOrientationChange(Qt.ScreenOrientation orientation)
void
requestActivate()
QSurfaceFormat
requestedFormat()
void
requestUpdate()
void
resize(int w, int h)
void
resize(QSize newSize)
Set the size of the window, excluding any window frame, to newSizeprotected void
resizeEvent(QResizeEvent arg__1)
QScreen
screen()
void
setBaseSize(QSize size)
void
setCursor(QCursor arg__1)
Set the cursor shape for this windowvoid
setFilePath(String filePath)
Set the file name this window is representingvoid
setFlag(Qt.WindowType arg__1)
Overloaded function forsetFlag(io.qt.core.Qt.WindowType, boolean)
withon = true
.void
setFlag(Qt.WindowType arg__1, boolean on)
void
setFlags(Qt.WindowFlags flags)
void
setFlags(Qt.WindowType... flags)
Overloaded function forsetFlags(io.qt.core.Qt.WindowFlags)
.void
setFormat(QSurfaceFormat format)
void
setFramePosition(QPoint point)
void
setGeometry(int posx, int posy, int w, int h)
void
setGeometry(QRect rect)
Sets the geometry of the window, excluding its window frame, to rectvoid
setHeight(int arg)
void
setIcon(QIcon icon)
Sets the window's icon in the windowing systemboolean
setKeyboardGrabEnabled(boolean grab)
void
setMask(QRegion region)
void
setMaximumHeight(int h)
void
setMaximumSize(QSize size)
void
setMaximumWidth(int w)
void
setMinimumHeight(int h)
void
setMinimumSize(QSize size)
void
setMinimumWidth(int w)
void
setModality(Qt.WindowModality modality)
boolean
setMouseGrabEnabled(boolean grab)
void
setOpacity(double level)
void
setParent(QWindow parent)
void
setPosition(int posx, int posy)
Set the position of the window on the desktop to posx, posyvoid
setPosition(QPoint pt)
Set the position of the window on the desktop to ptvoid
setScreen(QScreen screen)
void
setSizeIncrement(QSize size)
void
setSurfaceType(QSurface.SurfaceType surfaceType)
void
setTitle(String arg__1)
void
setTransientParent(QWindow parent)
void
setVisibility(QWindow.Visibility v)
void
setVisible(boolean visible)
void
setWidth(int arg)
void
setWindowState(Qt.WindowState state)
Set the screen-occupation state of the windowvoid
setWindowStates(Qt.WindowState... states)
Overloaded function forsetWindowStates(io.qt.core.Qt.WindowStates)
.void
setWindowStates(Qt.WindowStates states)
Set the screen-occupation state of the windowvoid
setX(int arg)
void
setY(int arg)
void
show()
See QWindow::show()protected void
showEvent(QShowEvent arg__1)
void
showFullScreen()
void
showMaximized()
void
showMinimized()
void
showNormal()
QSize
size()
QSize
sizeIncrement()
boolean
startSystemMove()
Start a system-specific move operationboolean
startSystemResize(Qt.Edge... edges)
Overloaded function forstartSystemResize(io.qt.core.Qt.Edges)
.boolean
startSystemResize(Qt.Edges edges)
Start a system-specific resize operationboolean
supportsOpenGL()
See QSurface::QSurface.SurfaceType
surfaceType()
protected void
tabletEvent(QTabletEvent arg__1)
String
title()
String
toString()
protected void
touchEvent(QTouchEvent arg__1)
QWindow
transientParent()
Qt.WindowType
type()
void
unsetCursor()
Restores the default arrow cursor for this windowQWindow.Visibility
visibility()
protected void
wheelEvent(QWheelEvent arg__1)
int
width()
Qt.WindowState
windowState()
The screen-occupation state of the windowQt.WindowStates
windowStates()
The screen-occupation state of the windowlong
winId()
int
x()
int
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. -
activeChanged
-
contentOrientationChanged
-
focusObjectChanged
-
heightChanged
-
maximumHeightChanged
-
maximumWidthChanged
-
minimumHeightChanged
-
minimumWidthChanged
-
modalityChanged
-
opacityChanged
-
screenChanged
-
transientParentChanged
-
visibilityChanged
-
visibleChanged
-
widthChanged
-
windowStateChanged
-
windowTitleChanged
-
xChanged
-
yChanged
-
-
Constructor Details
-
QWindow
public QWindow()Overloaded constructor for
QWindow(io.qt.gui.QScreen)
withscreen = null
. -
QWindow
-
QWindow
-
QWindow
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QWindow
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
alert
public final void alert(int msec) -
baseSize
-
close
public final boolean close()See QWindow::close()
-
contentOrientation
-
create
-
cursor
The cursor shape for this window
-
destroy
-
devicePixelRatio
-
filePath
The file name this window is representing
-
flags
-
frameGeometry
-
frameMargins
-
framePosition
-
geometry
-
height
-
hide
public final void hide()See QWindow::hide()
-
icon
Returns the window's icon in the windowing system
-
isActive
-
isAncestorOf
Overloaded function for
isAncestorOf(io.qt.gui.QWindow, io.qt.gui.QWindow.AncestorMode)
withmode = io.qt.gui.QWindow.AncestorMode.IncludeTransients
. -
isAncestorOf
-
isExposed
-
isModal
-
isTopLevel
-
isVisible
-
lower
public final void lower()See QWindow::lower()
-
mapFromGlobal
-
mapFromGlobal
-
mapToGlobal
-
mapToGlobal
-
mask
-
maximumHeight
-
maximumSize
-
maximumWidth
-
minimumHeight
-
minimumSize
-
minimumWidth
-
modality
-
opacity
-
parent
-
position
Returns the position of the window on the desktop excluding any window frame
-
raise
public final void raise()See QWindow::raise()
-
reportContentOrientationChange
-
requestActivate
public final void requestActivate() -
requestUpdate
public final void requestUpdate() -
requestedFormat
-
resize
Set the size of the window, excluding any window frame, to newSize
-
resize
-
screen
-
setBaseSize
-
setCursor
Set the cursor shape for this window
-
setFilePath
Set the file name this window is representing
-
setFlag
Overloaded function for
setFlag(io.qt.core.Qt.WindowType, boolean)
withon = true
. -
setFlag
-
setFlags
Overloaded function for
setFlags(io.qt.core.Qt.WindowFlags)
. -
setFlags
-
setFormat
-
setFramePosition
-
setGeometry
Sets the geometry of the window, excluding its window frame, to rect
-
setGeometry
public final void setGeometry(int posx, int posy, int w, int h) -
setHeight
public final void setHeight(int arg) -
setIcon
Sets the window's icon in the windowing system
-
setKeyboardGrabEnabled
-
setMask
-
setMaximumHeight
public final void setMaximumHeight(int h) -
setMaximumSize
-
setMaximumWidth
public final void setMaximumWidth(int w) -
setMinimumHeight
public final void setMinimumHeight(int h) -
setMinimumSize
-
setMinimumWidth
public final void setMinimumWidth(int w) -
setModality
-
setMouseGrabEnabled
-
setOpacity
-
setParent
-
setPosition
Set the position of the window on the desktop to pt
-
setPosition
Set the position of the window on the desktop to posx, posy
-
setScreen
-
setSizeIncrement
-
setSurfaceType
-
setTitle
-
setTransientParent
-
setVisibility
-
setVisible
public final void setVisible(boolean visible) -
setWidth
public final void setWidth(int arg) -
setWindowState
Set the screen-occupation state of the window
-
setWindowStates
Overloaded function for
setWindowStates(io.qt.core.Qt.WindowStates)
. -
setWindowStates
Set the screen-occupation state of the window
-
setX
public final void setX(int arg) -
setY
public final void setY(int arg) -
show
public final void show()See QWindow::show()
-
showFullScreen
public final void showFullScreen() -
showMaximized
public final void showMaximized() -
showMinimized
public final void showMinimized() -
showNormal
public final void showNormal() -
sizeIncrement
-
startSystemMove
public final boolean startSystemMove()Start a system-specific move operation
-
startSystemResize
Overloaded function for
startSystemResize(io.qt.core.Qt.Edges)
. -
startSystemResize
Start a system-specific resize operation
-
supportsOpenGL
See QSurface::
- Specified by:
supportsOpenGL
in interfaceQSurface
-
title
-
transientParent
-
type
-
unsetCursor
Restores the default arrow cursor for this window
-
visibility
-
width
-
winId
-
windowState
The screen-occupation state of the window
-
windowStates
The screen-occupation state of the window
-
x
-
y
-
accessibleRoot
-
closeEvent
-
event
-
exposeEvent
-
focusInEvent
-
focusObject
-
focusOutEvent
-
format
-
hideEvent
-
keyPressEvent
-
keyReleaseEvent
-
mouseDoubleClickEvent
-
mouseMoveEvent
-
mousePressEvent
-
mouseReleaseEvent
-
moveEvent
-
paintEvent
-
resizeEvent
-
showEvent
-
size
-
surfaceType
- Specified by:
surfaceType
in interfaceQSurface
-
tabletEvent
-
touchEvent
-
wheelEvent
-
fromWinId
-
nonTransientParent
Overloaded function for
parent(io.qt.gui.QWindow.AncestorMode)
withmode = io.qt.gui.QWindow.AncestorMode.ExcludeTransients
. -
toString
-