KWayland::Server::XdgShellSurfaceInterface
#include <xdgshell_interface.h>

Public Types | |
enum | State { State::Maximized = 1 << 0, State::Fullscreen = 1 << 1, State::Resizing = 1 << 2, State::Activated = 1 << 3 } |
typedef QFlags< State > | States |
Signals | |
void | configureAcknowledged (quint32 serial) |
void | fullscreenChanged (bool fullscreen, KWayland::Server::OutputInterface *output) |
void | maximizedChanged (bool maximized) |
void | maxSizeChanged (const QSize &size) |
void | minimizeRequested () |
void | minSizeChanged (const QSize &size) |
void | moveRequested (KWayland::Server::SeatInterface *seat, quint32 serial) |
void | resizeRequested (KWayland::Server::SeatInterface *seat, quint32 serial, Qt::Edges edges) |
void | titleChanged (const QString &) |
void | transientForChanged () |
void | windowClassChanged (const QByteArray &) |
void | windowGeometryChanged (const QRect &windowGeometry) |
void | windowMenuRequested (KWayland::Server::SeatInterface *seat, quint32 serial, const QPoint &surfacePos) |
![]() | |
void | aboutToBeUnbound () |
void | unbound () |
Public Member Functions | |
void | close () |
quint32 | configure (States states, const QSize &size=QSize(0, 0)) |
XdgShellInterfaceVersion | interfaceVersion () const |
bool | isConfigurePending () const |
bool | isTransient () const |
QSize | maximumSize () const |
QSize | minimumSize () const |
SurfaceInterface * | surface () const |
QString | title () const |
QPointer< XdgShellSurfaceInterface > | transientFor () const |
QByteArray | windowClass () const |
QRect | windowGeometry () const |
![]() | |
ClientConnection * | client () |
void | create (ClientConnection *client, quint32 version, quint32 id) |
Global * | global () |
quint32 | id () const |
wl_resource * | parentResource () const |
wl_resource * | resource () |
![]() | |
QObject (QObject *parent) | |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () |
void | dumpObjectInfo () const const |
void | dumpObjectTree () |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_DISABLE_COPY (Class) | |
Q_DISABLE_COPY_MOVE (Class) | |
Q_DISABLE_MOVE (Class) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qFindChild (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
T | qobject_cast (QObject *object) |
T | qobject_cast (const QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
QThread * | thread () const const |
Protected Member Functions | |
XdgShellSurfaceInterface (Private *p) | |
![]() | |
Resource (Private *d, QObject *parent=nullptr) | |
![]() | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
![]() | |
objectName | |
![]() | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
typedef | QObjectList |
![]() | |
QScopedPointer< Private > | d |
Detailed Description
- Since
- 5.25
Definition at line 183 of file xdgshell_interface.h.
Member Enumeration Documentation
States the Surface can be in.
Definition at line 197 of file xdgshell_interface.h.
Member Function Documentation
void KWayland::Server::XdgShellSurfaceInterface::close | ( | ) |
Request the client to close the window.
Definition at line 137 of file xdgshell_interface.cpp.
quint32 KWayland::Server::XdgShellSurfaceInterface::configure | ( | States | states, |
const QSize & | size = QSize(0, 0) |
||
) |
Sends a configure event to the Surface.
This tells the Surface the current states
it is in and the size
it should have. If size
has width and height at 0
, the Surface can choose the size.
The Surface acknowledges the configure event with configureAcknowledged.
- Parameters
-
states The states the surface is in size The requested size
- Returns
- The serial of the configure event
Definition at line 95 of file xdgshell_interface.cpp.
|
signal |
A configure event with serial
got acknowledged.
- See also
- configure
|
signal |
The surface requested a change of fullscreen state.
- Parameters
-
fullscreen Whether the window wants to be fullscreen output An optional output hint on which the window wants to be fullscreen
XdgShellInterfaceVersion KWayland::Server::XdgShellSurfaceInterface::interfaceVersion | ( | ) | const |
- Returns
- The interface version used by this XdgShellSurfaceInterface
Definition at line 89 of file xdgshell_interface.cpp.
bool KWayland::Server::XdgShellSurfaceInterface::isConfigurePending | ( | ) | const |
- Returns
true
if there is a not yet acknowledged configure event.
- See also
- configure
- configureAcknowledged
Definition at line 101 of file xdgshell_interface.cpp.
bool KWayland::Server::XdgShellSurfaceInterface::isTransient | ( | ) | const |
- Returns
- Whether this Surface is a transient for another Surface, that is it has a parent.
- See also
- transientFor
Definition at line 125 of file xdgshell_interface.cpp.
|
signal |
The surface requested a change of maximized state.
- Parameters
-
maximized Whether the window wants to be maximized
QSize KWayland::Server::XdgShellSurfaceInterface::maximumSize | ( | ) | const |
- Returns
- The maximum size for the window specified by the client.
- Since
- 5.65
Definition at line 155 of file xdgshell_interface.cpp.
|
signal |
Emitted whenever the maximum size hint changes.
- Since
- 5.39
|
signal |
The surface requested to be minimized.
QSize KWayland::Server::XdgShellSurfaceInterface::minimumSize | ( | ) | const |
- Returns
- The minimum size for the window specified by the client.
- Since
- 5.65
Definition at line 149 of file xdgshell_interface.cpp.
|
signal |
Emitted whenever the minimum size hint changes.
- Since
- 5.39
|
signal |
The surface requested a window move.
- Parameters
-
seat The SeatInterface on which the surface requested the move serial The serial of the implicit mouse grab which triggered the move
|
signal |
The surface requested a window resize.
- Parameters
-
seat The SeatInterface on which the surface requested the resize serial The serial of the implicit mouse grab which triggered the resize edges A hint which edges are involved in the resize
SurfaceInterface * KWayland::Server::XdgShellSurfaceInterface::surface | ( | ) | const |
- Returns
- The SurfaceInterface this XdgSurfaceV5Interface got created for.
Definition at line 107 of file xdgshell_interface.cpp.
QString KWayland::Server::XdgShellSurfaceInterface::title | ( | ) | const |
- Returns
- The title of this surface.
- See also
- titleChanged
Definition at line 113 of file xdgshell_interface.cpp.
|
signal |
Emitted whenever the title changes.
- See also
- title
QPointer< XdgShellSurfaceInterface > KWayland::Server::XdgShellSurfaceInterface::transientFor | ( | ) | const |
- Returns
- the parent surface if the surface is a transient for another surface
- See also
- isTransient
Definition at line 131 of file xdgshell_interface.cpp.
|
signal |
Emitted whenever the parent surface changes.
- See also
- isTransient
- transientFor
|
signal |
Emitted whenever the window class changes.
- See also
- windowClass
QRect KWayland::Server::XdgShellSurfaceInterface::windowGeometry | ( | ) | const |
windowGeometry The geometry of the window within the buffer
If invalid, the geometry of the bufer should be used instead
- Since
- 5.59
Definition at line 143 of file xdgshell_interface.cpp.
|
signal |
windowGeometryChanged
- Parameters
-
windowGeometry the newly changed windowGeometry
- Since
- 5.59
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 22:54:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.