The QWaylandXdgSurfaceV5 class provides desktop-style compositor-specific features to an xdg surface. 更多...
头: | #include <QWaylandXdgSurfaceV5> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
继承: | QWaylandShellSurfaceTemplate |
该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
enum | ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, ..., BottomRightEdge } |
enum | State { MaximizedState, FullscreenState, ResizingState, ActivatedState } |
|
|
QWaylandXdgSurfaceV5 () | |
QWaylandXdgSurfaceV5 (QWaylandXdgShellV5 * xdgShell , QWaylandSurface * surface , const QWaylandResource & res ) | |
bool | activated () const |
QString | appId () const |
QQmlListProperty<QObject> | data () |
bool | fullscreen () const |
void | initialize (QWaylandXdgShellV5 * xdgShell , QWaylandSurface * surface , const QWaylandResource & resource ) |
bool | maximized () const |
QWaylandXdgSurfaceV5 * | parentSurface () const |
bool | resizing () const |
void | sendClose () |
uint | sendConfigure (const QSize & size , const QVector<uint> & 状态 ) |
uint | sendConfigure (const QSize & size , const QVector<QWaylandXdgSurfaceV5::State> & 状态 ) |
uint | sendFullscreen (const QSize & size ) |
uint | sendMaximized (const QSize & size ) |
uint | sendResizing (const QSize & maxSize ) |
uint | sendUnmaximized (const QSize & size = QSize(0, 0)) |
QWaylandXdgShellV5 * | shell () const |
QSize | sizeForResize (const QSizeF & size , const QPointF & delta , QWaylandXdgSurfaceV5::ResizeEdge edge ) |
QVector<uint> | states () const |
QWaylandSurface * | surface () const |
QString | title () const |
QRect | windowGeometry () const |
virtual QWaylandQuickShellIntegration * | createIntegration (QWaylandQuickShellSurfaceItem * item ) override |
virtual Qt::WindowType | windowType () const override |
void | ackConfigure (uint serial ) |
void | activatedChanged () |
void | appIdChanged () |
void | fullscreenChanged () |
void | maximizedChanged () |
void | parentSurfaceChanged () |
void | resizingChanged () |
void | setFullscreen (QWaylandOutput * output ) |
void | setMaximized () |
void | setMinimized () |
void | setTopLevel () |
void | setTransient () |
void | shellChanged () |
void | showWindowMenu (QWaylandSeat * seat , const QPoint & localSurfacePosition ) |
void | startMove (QWaylandSeat * seat ) |
void | startResize (QWaylandSeat * seat , QWaylandXdgSurfaceV5::ResizeEdge edges ) |
void | statesChanged () |
void | surfaceChanged () |
void | titleChanged () |
void | unsetFullscreen () |
void | unsetMaximized () |
void | windowGeometryChanged () |
void | appendFunction (QQmlListProperty<QObject> * list , QObject * object ) |
QObject * | atFunction (QQmlListProperty<QObject> * list , int index ) |
void | clearFunction (QQmlListProperty<QObject> * list ) |
int | countFunction (QQmlListProperty<QObject> * list ) |
QWaylandXdgSurfaceV5 * | fromResource (::wl_resource * resource ) |
const struct wl_interface * | interface () |
QByteArray | interfaceName () |
QWaylandSurfaceRole * | role () |
const QMetaObject | staticMetaObject |
The QWaylandXdgSurfaceV5 class provides desktop-style compositor-specific features to an xdg surface.
此类属于 QWaylandXdgShellV5 extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style compositors, such as resizing and moving the surface.
It corresponds to the Wayland interface xdg_surface.
访问函数:
bool | activated () const |
通知程序信号:
void | activatedChanged () |
This property holds the app id of the QWaylandXdgSurfaceV5 .
访问函数:
QString | appId () const |
通知程序信号:
void | appIdChanged () |
访问函数:
bool | fullscreen () const |
通知程序信号:
void | fullscreenChanged () |
访问函数:
bool | maximized () const |
通知程序信号:
void | maximizedChanged () |
This property holds the XdgSurfaceV5 parent of this XdgSurfaceV5. When a parent surface is set, the parentSurfaceChanged() signal is guaranteed to be emitted before setTopLevel () 和 setTransient ().
访问函数:
QWaylandXdgSurfaceV5 * | parentSurface () const |
通知程序信号:
void | parentSurfaceChanged () |
另请参阅 QWaylandXdgSurfaceV5::setTopLevel () 和 QWaylandXdgSurfaceV5::setTransient ().
访问函数:
bool | resizing () const |
通知程序信号:
void | resizingChanged () |
This property holds the shell associated with this QWaylandXdgSurfaceV5 .
访问函数:
QWaylandXdgShellV5 * | shell () const |
通知程序信号:
void | shellChanged () |
This property holds the last states the client acknowledged for this QWaylandXdgSurfaceV5 .
通知程序信号:
void | statesChanged () |
This property holds the surface associated with this QWaylandXdgSurfaceV5 .
访问函数:
QWaylandSurface * | surface () const |
通知程序信号:
void | surfaceChanged () |
This property holds the title of the QWaylandXdgSurfaceV5 .
访问函数:
QString | title () const |
通知程序信号:
void | titleChanged () |
This property holds the window geometry of the QWaylandXdgSurfaceV5 . The window geometry describes the window's visible bounds from the user's perspective. The geometry includes title bars and borders if drawn by the client, but excludes drop shadows. It is meant to be used for aligning and tiling windows.
访问函数:
QRect | windowGeometry () const |
通知程序信号:
void | windowGeometryChanged () |
构造 QWaylandXdgSurfaceV5 .
构造 QWaylandXdgSurfaceV5 for surface and initializes it with the given xdgShell , surface , and resource res .
[signal]
void
QWaylandXdgSurfaceV5::
ackConfigure
(
uint
serial
)
This signal is emitted when the client has received configure events up to and including the configure event with serial serial and will draw its surface accordingly in the next committed buffer.
[static]
void
QWaylandXdgSurfaceV5::
appendFunction
(
QQmlListProperty
<
QObject
> *
list
,
QObject
*
object
)
[static]
QObject
*QWaylandXdgSurfaceV5::
atFunction
(
QQmlListProperty
<
QObject
> *
list
,
int
index
)
[static]
void
QWaylandXdgSurfaceV5::
clearFunction
(
QQmlListProperty
<
QObject
> *
list
)
[static]
int
QWaylandXdgSurfaceV5::
countFunction
(
QQmlListProperty
<
QObject
> *
list
)
[override virtual]
QWaylandQuickShellIntegration
*QWaylandXdgSurfaceV5::
createIntegration
(
QWaylandQuickShellSurfaceItem
*
item
)
[static]
QWaylandXdgSurfaceV5
*QWaylandXdgSurfaceV5::
fromResource
(
::wl_resource
*
resource
)
返回 QWaylandXdgSurfaceV5 corresponding to the resource .
初始化 QWaylandXdgSurfaceV5 , associating it with the given xdgShell , surface and resource .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[static]
const
struct
wl_interface
*QWaylandXdgSurfaceV5::
interface
()
返回 Wayland 接口为 QWaylandXdgSurfaceV5 .
[static]
QByteArray
QWaylandXdgSurfaceV5::
interfaceName
()
[static]
QWaylandSurfaceRole
*QWaylandXdgSurfaceV5::
role
()
Returns the surface role for the QWaylandXdgSurfaceV5 .
Sends a close event to the client.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Sends a configure event to the client. Parameter size contains the pixel size of the surface. Known 状态 are enumerated in QWaylandXdgSurfaceV5::State .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[signal]
void
QWaylandXdgSurfaceV5::
setFullscreen
(
QWaylandOutput
*
output
)
This signal is emitted when the client wants the
xdg_surface
to be in full screen mode. The client may specify an
output
it wishes the
xdg_surface
to be shown on.
另请参阅 fullscreen ().
[signal]
void
QWaylandXdgSurfaceV5::
setMaximized
()
This signal is emitted when the client wants the
xdg_surface
to be maximized.
另请参阅 maximized ().
[signal]
void
QWaylandXdgSurfaceV5::
setMinimized
()
This signal is emitted when the client wants the
xdg_surface
to be minimized.
[signal]
void
QWaylandXdgSurfaceV5::
setTopLevel
()
[signal]
void
QWaylandXdgSurfaceV5::
setTransient
()
[signal]
void
QWaylandXdgSurfaceV5::
showWindowMenu
(
QWaylandSeat
*
seat
, const
QPoint
&
localSurfacePosition
)
This signal is emitted when the client wants to show a context menu at localSurfacePosition , using the Wayland seat seat . It's typically emitted in response to the user right-clicking the window decorations.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[signal]
void
QWaylandXdgSurfaceV5::
startMove
(
QWaylandSeat
*
seat
)
This signal is emitted when the client wants to start an interactive move of the QWaylandXdgSurfaceV5 , typically in response to the window decorations being dragged by seat .
[signal]
void
QWaylandXdgSurfaceV5::
startResize
(
QWaylandSeat
*
seat
,
QWaylandXdgSurfaceV5::ResizeEdge
edges
)
This signal is emitted when the client wants to start an interactive resize of the QWaylandXdgSurfaceV5 , typically in response to the window decorations being dragged by seat on the window borders given by edges .
[signal]
void
QWaylandXdgSurfaceV5::
unsetFullscreen
()
This signal is emitted when the client doesn't want the
xdg_surface
to be in full screen mode anymore.
[signal]
void
QWaylandXdgSurfaceV5::
unsetMaximized
()
This signal is emitted when the client doesn't want the
xdg_surface
to be maximized anymore.
[override virtual]
Qt::WindowType
QWaylandXdgSurfaceV5::
windowType
() const