KWin
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
decoration_input_test.cpp File Reference
#include "kwin_wayland_test.h"
#include "core/output.h"
#include "cursor.h"
#include "internalwindow.h"
#include "pointer_input.h"
#include "touch_input.h"
#include "wayland_server.h"
#include "window.h"
#include "workspace.h"
#include "decorations/decoratedclient.h"
#include "decorations/decorationbridge.h"
#include "decorations/settings.h"
#include <KWayland/Client/compositor.h>
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/keyboard.h>
#include <KWayland/Client/pointer.h>
#include <KWayland/Client/seat.h>
#include <KWayland/Client/shm_pool.h>
#include <KWayland/Client/surface.h>
#include <KDecoration2/Decoration>
#include <KDecoration2/DecorationSettings>
#include <QSignalSpy>
#include <linux/input.h>
#include "decoration_input_test.moc"

Go to the source code of this file.

Classes

class  KWin::DecorationInputTest
 
class  KWin::EventHelper
 

Namespaces

namespace  KWin
 

Macros

#define MOTION(target)   Test::pointerMotion(target, timestamp++)
 
#define PRESS   Test::pointerButtonPressed(BTN_LEFT, timestamp++)
 
#define RELEASE   Test::pointerButtonReleased(BTN_LEFT, timestamp++)
 
#define VERIFY(statement)
 
#define COMPARE(actual, expected)
 

Macro Definition Documentation

◆ COMPARE

#define COMPARE ( actual,
expected )
Value:
if (!QTest::qCompare(actual, expected, #actual, #expected, __FILE__, __LINE__)) \
return {nullptr, nullptr, nullptr};

◆ MOTION

#define MOTION ( target)    Test::pointerMotion(target, timestamp++)

Definition at line 78 of file decoration_input_test.cpp.

◆ PRESS

#define PRESS   Test::pointerButtonPressed(BTN_LEFT, timestamp++)

Definition at line 80 of file decoration_input_test.cpp.

◆ RELEASE

#define RELEASE   Test::pointerButtonReleased(BTN_LEFT, timestamp++)

Definition at line 82 of file decoration_input_test.cpp.

◆ VERIFY

#define VERIFY ( statement)
Value:
if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__)) \
return {nullptr, nullptr, nullptr};