KWin
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
test_helpers.cpp File Reference
#include <config-kwin.h>
#include <QSignalSpy>
#include "kwin_wayland_test.h"
#include "inputmethod.h"
#include "wayland/display.h"
#include "wayland_server.h"
#include "workspace.h"
#include <wayland-zkde-screencast-unstable-v1-client-protocol.h>
#include <KWayland/Client/appmenu.h>
#include <KWayland/Client/compositor.h>
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/event_queue.h>
#include <KWayland/Client/output.h>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/plasmawindowmanagement.h>
#include <KWayland/Client/pointer.h>
#include <KWayland/Client/pointerconstraints.h>
#include <KWayland/Client/registry.h>
#include <KWayland/Client/seat.h>
#include <KWayland/Client/shadow.h>
#include <KWayland/Client/shm_pool.h>
#include <KWayland/Client/subcompositor.h>
#include <KWayland/Client/subsurface.h>
#include <KWayland/Client/surface.h>
#include <KWayland/Client/textinput.h>
#include <QFutureWatcher>
#include <QThread>
#include <QtConcurrentRun>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <xf86drm.h>
#include "test_helpers.moc"

Go to the source code of this file.

Classes

class  KWin::Test::WaylandSyncPoint
 

Namespaces

namespace  KWin
 
namespace  KWin::Test
 

Functions

MockInputMethodKWin::Test::inputMethod ()
 
KWayland::Client::Surface * KWin::Test::inputPanelSurface ()
 
bool KWin::Test::setupWaylandConnection (AdditionalWaylandInterfaces flags=AdditionalWaylandInterfaces())
 
void KWin::Test::destroyWaylandConnection ()
 
KWayland::Client::ConnectionThread * KWin::Test::waylandConnection ()
 
KWayland::Client::Compositor * KWin::Test::waylandCompositor ()
 
KWayland::Client::SubCompositor * KWin::Test::waylandSubCompositor ()
 
KWayland::Client::ShadowManager * KWin::Test::waylandShadowManager ()
 
KWayland::Client::ShmPool * KWin::Test::waylandShmPool ()
 
KWayland::Client::Seat * KWin::Test::waylandSeat ()
 
KWayland::Client::PlasmaShell * KWin::Test::waylandPlasmaShell ()
 
KWayland::Client::PlasmaWindowManagement * KWin::Test::waylandWindowManagement ()
 
KWayland::Client::PointerConstraints * KWin::Test::waylandPointerConstraints ()
 
KWayland::Client::AppMenuManager * KWin::Test::waylandAppMenuManager ()
 
WaylandOutputManagementV2KWin::Test::waylandOutputManagementV2 ()
 
KWayland::Client::TextInputManager * KWin::Test::waylandTextInputManager ()
 
TextInputManagerV3KWin::Test::waylandTextInputManagerV3 ()
 
QList< KWayland::Client::Output * > KWin::Test::waylandOutputs ()
 
KWayland::Client::Output * KWin::Test::waylandOutput (const QString &name)
 
ScreencastingV1KWin::Test::screencasting ()
 
QList< WaylandOutputDeviceV2 * > KWin::Test::waylandOutputDevicesV2 ()
 
FakeInputKWin::Test::waylandFakeInput ()
 
SecurityContextManagerV1KWin::Test::waylandSecurityContextManagerV1 ()
 
bool KWin::Test::waitForWaylandSurface (Window *window)
 
bool KWin::Test::waitForWaylandPointer ()
 
bool KWin::Test::waitForWaylandTouch ()
 
bool KWin::Test::waitForWaylandKeyboard ()
 
void KWin::Test::render (KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format=QImage::Format_ARGB32_Premultiplied)
 
void KWin::Test::render (KWayland::Client::Surface *surface, const QImage &img)
 
WindowKWin::Test::waitForWaylandWindowShown (int timeout=5000)
 
WindowKWin::Test::renderAndWaitForShown (KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format=QImage::Format_ARGB32, int timeout=5000)
 
WindowKWin::Test::renderAndWaitForShown (KWayland::Client::Surface *surface, const QImage &img, int timeout=5000)
 
void KWin::Test::flushWaylandConnection ()
 
bool KWin::Test::waylandSync ()
 
std::unique_ptr< KWayland::Client::Surface > KWin::Test::createSurface ()
 
KWayland::Client::SubSurface * KWin::Test::createSubSurface (KWayland::Client::Surface *surface, KWayland::Client::Surface *parentSurface, QObject *parent=nullptr)
 
LayerSurfaceV1KWin::Test::createLayerSurfaceV1 (KWayland::Client::Surface *surface, const QString &scope, KWayland::Client::Output *output=nullptr, LayerShellV1::layer layer=LayerShellV1::layer_top)
 
QtWayland::zwp_input_panel_surface_v1 * KWin::Test::createInputPanelSurfaceV1 (KWayland::Client::Surface *surface, KWayland::Client::Output *output, MockInputMethod::Mode mode)
 
FractionalScaleV1KWin::Test::createFractionalScaleV1 (KWayland::Client::Surface *surface)
 
XdgToplevelKWin::Test::createXdgToplevelSurface (KWayland::Client::Surface *surface, QObject *parent=nullptr)
 
XdgToplevelKWin::Test::createXdgToplevelSurface (KWayland::Client::Surface *surface, CreationSetup configureMode, QObject *parent=nullptr)
 
XdgPositionerKWin::Test::createXdgPositioner ()
 
XdgPopupKWin::Test::createXdgPopupSurface (KWayland::Client::Surface *surface, XdgSurface *parentSurface, XdgPositioner *positioner, CreationSetup configureMode=CreationSetup::CreateAndConfigure, QObject *parent=nullptr)
 
XdgToplevelDecorationV1KWin::Test::createXdgToplevelDecorationV1 (XdgToplevel *toplevel, QObject *parent=nullptr)
 
IdleInhibitorV1KWin::Test::createIdleInhibitorV1 (KWayland::Client::Surface *surface)
 
AutoHideScreenEdgeV1KWin::Test::createAutoHideScreenEdgeV1 (KWayland::Client::Surface *surface, uint32_t border)
 
CursorShapeDeviceV1KWin::Test::createCursorShapeDeviceV1 (KWayland::Client::Pointer *pointer)
 
bool KWin::Test::waitForWindowClosed (Window *window)
 
bool KWin::Test::renderNodeAvailable ()
 
XcbConnectionPtr KWin::Test::createX11Connection ()
 
QDebug KWin::Test::operator<< (QDebug dbg, const WaylandOutputDeviceV2 *output)
 
void KWin::Test::keyboardKeyPressed (quint32 key, quint32 time)
 
void KWin::Test::keyboardKeyReleased (quint32 key, quint32 time)
 
void KWin::Test::pointerAxisHorizontal (qreal delta, quint32 time, qint32 discreteDelta=0, InputRedirection::PointerAxisSource source=InputRedirection::PointerAxisSourceUnknown)
 
void KWin::Test::pointerAxisVertical (qreal delta, quint32 time, qint32 discreteDelta=0, InputRedirection::PointerAxisSource source=InputRedirection::PointerAxisSourceUnknown)
 
void KWin::Test::pointerButtonPressed (quint32 button, quint32 time)
 
void KWin::Test::pointerButtonReleased (quint32 button, quint32 time)
 
void KWin::Test::pointerMotion (const QPointF &position, quint32 time)
 
void KWin::Test::pointerMotionRelative (const QPointF &delta, quint32 time)
 
void KWin::Test::touchCancel ()
 
void KWin::Test::touchDown (qint32 id, const QPointF &pos, quint32 time)
 
void KWin::Test::touchMotion (qint32 id, const QPointF &pos, quint32 time)
 
void KWin::Test::touchUp (qint32 id, quint32 time)