The QWaylandXdgSurface class provides desktop-style compositor-specific features to an xdg surface. 更多...
头: | #include <QWaylandXdgSurface> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
实例化: | XdgSurface |
继承: | QWaylandShellSurfaceTemplate |
|
QWaylandXdgSurface () | |
QWaylandXdgSurface (QWaylandXdgShell * xdgShell , QWaylandSurface * surface , const QWaylandResource & res ) | |
void | initialize (QWaylandXdgShell * xdgShell , QWaylandSurface * surface , const QWaylandResource & resource ) |
QWaylandXdgPopup * | popup () const |
QWaylandXdgShell * | shell () const |
QWaylandSurface * | surface () const |
QWaylandXdgToplevel * | toplevel () const |
QRect | windowGeometry () const |
void | popupCreated () |
void | shellChanged () |
void | surfaceChanged () |
void | toplevelCreated () |
void | windowGeometryChanged () |
QWaylandXdgSurface * | fromResource (::wl_resource * resource ) |
const struct wl_interface * | interface () |
此类属于 QWaylandXdgShell 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
.
[read-only]
popup
:
QWaylandXdgPopup
* const
This property holds the properties and methods that are specific to the popup QWaylandXdgSurface .
访问函数:
QWaylandXdgPopup * | popup () const |
通知程序信号:
void | popupCreated () |
另请参阅 QWaylandXdgSurface::toplevel and QWaylandXdgShell::popupCreated .
[read-only]
shell
:
QWaylandXdgShell
* const
This property holds the shell associated with this QWaylandXdgSurface .
访问函数:
QWaylandXdgShell * | shell () const |
通知程序信号:
void | shellChanged () |
[read-only]
surface
:
QWaylandSurface
* const
This property holds the surface associated with this QWaylandXdgSurface .
访问函数:
QWaylandSurface * | surface () const |
通知程序信号:
void | surfaceChanged () |
[read-only]
toplevel
:
QWaylandXdgToplevel
* const
This property holds the properties and methods that are specific to the toplevel QWaylandXdgSurface .
访问函数:
QWaylandXdgToplevel * | toplevel () const |
通知程序信号:
void | toplevelCreated () |
另请参阅 QWaylandXdgSurface::popup and QWaylandXdgShell::toplevelCreated .
[read-only]
windowGeometry
: const
QRect
This property holds the window geometry of the QWaylandXdgSurface . 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 () |
[explicit]
QWaylandXdgSurface::
QWaylandXdgSurface
()
Constructs a QWaylandXdgSurface.
[explicit]
QWaylandXdgSurface::
QWaylandXdgSurface
(
QWaylandXdgShell
*
xdgShell
,
QWaylandSurface
*
surface
, const
QWaylandResource
&
res
)
Constructs a QWaylandXdgSurface for surface and initializes it with the given xdgShell , surface , and resource res .
[static]
QWaylandXdgSurface
*QWaylandXdgSurface::
fromResource
(
::wl_resource
*
resource
)
返回 QWaylandXdgSurface corresponding to the resource .
[invokable]
void
QWaylandXdgSurface::
initialize
(
QWaylandXdgShell
*
xdgShell
,
QWaylandSurface
*
surface
, const
QWaylandResource
&
resource
)
初始化 QWaylandXdgSurface , associating it with the given xdgShell , surface and resource .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[static]
const
struct
wl_interface
*QWaylandXdgSurface::
interface
()
返回 Wayland 接口为 QWaylandXdgSurface .