4#ifndef QWAYLANDXDGSHELL_P_H
5#define QWAYLANDXDGSHELL_P_H
7#include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h>
8#include <QtWaylandCompositor/private/qwaylandshell_p.h>
9#include <QtWaylandCompositor/private/qwayland-server-xdg-shell.h>
11#include <QtWaylandCompositor/QWaylandXdgShell>
13#include <QtWaylandCompositor/private/qwaylandxdgdecorationv1_p.h>
33 Qt::Edges anchorEdges = {};
34 Qt::Edges gravityEdges = {};
35 uint constraintAdjustments = XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_NONE;
38 bool isComplete()
const;
39 QPoint anchorPoint()
const;
40 QPoint unconstrainedPosition()
const;
45 ,
public QtWaylandServer::xdg_wm_base
50 void ping(Resource *resource, uint32_t serial);
61 void xdg_wm_base_destroy(Resource *resource)
override;
62 void xdg_wm_base_create_positioner(Resource *resource, uint32_t
id)
override;
63 void xdg_wm_base_get_xdg_surface(Resource *resource, uint32_t
id,
64 struct ::wl_resource *surface)
override;
65 void xdg_wm_base_pong(Resource *resource, uint32_t serial)
override;
70 ,
public QtWaylandServer::xdg_surface
76 void handleFocusLost();
77 void handleFocusReceived();
80 QRect calculateFallbackWindowGeometry()
const;
81 void updateFallbackWindowGeometry();
89 QRect m_windowGeometry;
90 bool m_unsetWindowGeometry =
true;
94 void xdg_surface_destroy_resource(Resource *resource)
override;
95 void xdg_surface_destroy(Resource *resource)
override;
96 void xdg_surface_get_toplevel(Resource *resource, uint32_t
id)
override;
97 void xdg_surface_get_popup(Resource *resource, uint32_t
id, struct ::wl_resource *
parent, struct ::wl_resource *positioner)
override;
98 void xdg_surface_ack_configure(Resource *resource, uint32_t serial)
override;
99 void xdg_surface_set_window_geometry(Resource *resource, int32_t
x, int32_t
y, int32_t
width, int32_t
height)
override;
110 const QSize &incomingSize,
uint incomingSerial)
111 :
states(incomingStates),
size(incomingSize), serial(incomingSerial)
120 void handleAckConfigure(
uint serial);
121 void handleFocusLost();
122 void handleFocusReceived();
125 static Qt::Edges convertToEdges(resize_edge edge);
129 void xdg_toplevel_destroy_resource(Resource *resource)
override;
131 void xdg_toplevel_destroy(Resource *resource)
override;
132 void xdg_toplevel_set_parent(Resource *resource, struct ::wl_resource *
parent)
override;
133 void xdg_toplevel_set_title(Resource *resource,
const QString &
title)
override;
134 void xdg_toplevel_set_app_id(Resource *resource,
const QString &app_id)
override;
135 void xdg_toplevel_show_window_menu(Resource *resource, struct ::wl_resource *seat, uint32_t serial, int32_t
x, int32_t
y)
override;
136 void xdg_toplevel_move(Resource *resource, struct ::wl_resource *seatResource, uint32_t serial)
override;
137 void xdg_toplevel_resize(Resource *resource, struct ::wl_resource *seat, uint32_t serial, uint32_t edges)
override;
138 void xdg_toplevel_set_max_size(Resource *resource, int32_t
width, int32_t
height)
override;
139 void xdg_toplevel_set_min_size(Resource *resource, int32_t
width, int32_t
height)
override;
140 void xdg_toplevel_set_maximized(Resource *resource)
override;
141 void xdg_toplevel_unset_maximized(Resource *resource)
override;
142 void xdg_toplevel_set_fullscreen(Resource *resource, struct ::wl_resource *
output)
override;
143 void xdg_toplevel_unset_fullscreen(Resource *resource)
override;
144 void xdg_toplevel_set_minimized(Resource *resource)
override;
172 void handleAckConfigure(
uint serial);
179 uint sendConfigure(
const QRect &geometry);
182 void xdg_popup_destroy(Resource *resource)
override;
183 void xdg_popup_grab(Resource *resource, struct ::wl_resource *seat, uint32_t serial)
override;
198 static Qt::Edges convertToEdges(anchor anchor);
202 void xdg_positioner_destroy_resource(Resource *resource)
override;
204 void xdg_positioner_destroy(Resource *resource)
override;
205 void xdg_positioner_set_size(Resource *resource, int32_t
width, int32_t
height)
override;
206 void xdg_positioner_set_anchor_rect(Resource *resource, int32_t
x, int32_t
y, int32_t
width, int32_t
height)
override;
207 void xdg_positioner_set_anchor(Resource *resource, uint32_t anchor)
override;
208 void xdg_positioner_set_gravity(Resource *resource, uint32_t gravity)
override;
209 void xdg_positioner_set_constraint_adjustment(Resource *resource, uint32_t constraint_adjustment)
override;
210 void xdg_positioner_set_offset(Resource *resource, int32_t
x, int32_t
y)
override;
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
\inmodule QtWaylandCompositor
\inmodule QtWaylandCompositor
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
static QWaylandSurfaceRole s_role
static QWaylandXdgPopupPrivate * get(QWaylandXdgPopup *popup)
\qmltype XdgPopup \instantiates QWaylandXdgPopup \inqmlmodule QtWayland.Compositor....
QWaylandXdgPositionerData m_data
static Qt::Edges convertToEdges(gravity gravity)
static QWaylandXdgShellPrivate * get(QWaylandXdgShell *xdgShell)
QMultiMap< struct wl_client *, QWaylandXdgSurface * > m_xdgSurfaces
\qmltype XdgShell \instantiates QWaylandXdgShell \inqmlmodule QtWayland.Compositor....
static QWaylandXdgSurfacePrivate * get(QWaylandXdgSurface *xdgSurface)
\qmltype XdgSurface \instantiates QWaylandXdgSurface \inqmlmodule QtWayland.Compositor....
QList< ConfigureEvent > m_pendingConfigures
ConfigureEvent m_lastAckedConfigure
ConfigureEvent lastSentConfigure() const
static QWaylandXdgToplevelPrivate * get(QWaylandXdgToplevel *toplevel)
static QWaylandSurfaceRole s_role
\qmltype XdgToplevel \instantiates QWaylandXdgToplevel \inqmlmodule QtWayland.Compositor....
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
QT_BEGIN_NAMESPACE typedef uchar * output
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent