KWin
|
Classes | |
class | AutoHideScreenEdgeV1 |
class | CursorShapeDeviceV1 |
class | CursorShapeManagerV1 |
class | FakeInput |
class | FractionalScaleManagerV1 |
class | FractionalScaleV1 |
class | IdleInhibitManagerV1 |
class | IdleInhibitorV1 |
class | LayerShellV1 |
class | LayerSurfaceV1 |
class | MockInputMethod |
struct | OutputInfo |
class | ScreencastingStreamV1 |
class | ScreencastingV1 |
class | ScreenEdgeManagerV1 |
class | SecurityContextManagerV1 |
class | TextInputManagerV3 |
class | TextInputV3 |
class | VirtualInputDevice |
class | WaylandOutputConfigurationV2 |
class | WaylandOutputDeviceV2 |
class | WaylandOutputDeviceV2Mode |
class | WaylandOutputManagementV2 |
class | WaylandSyncPoint |
struct | XcbConnectionDeleter |
class | XdgDecorationManagerV1 |
class | XdgPopup |
class | XdgPositioner |
class | XdgShell |
class | XdgSurface |
class | XdgToplevel |
class | XdgToplevelDecorationV1 |
Typedefs | |
typedef std::unique_ptr< xcb_connection_t, XcbConnectionDeleter > | XcbConnectionPtr |
Enumerations | |
enum class | AdditionalWaylandInterface { Seat = 1 << 0 , PlasmaShell = 1 << 2 , WindowManagement = 1 << 3 , PointerConstraints = 1 << 4 , IdleInhibitV1 = 1 << 5 , AppMenu = 1 << 6 , ShadowManager = 1 << 7 , XdgDecorationV1 = 1 << 8 , OutputManagementV2 = 1 << 9 , TextInputManagerV2 = 1 << 10 , InputMethodV1 = 1 << 11 , LayerShellV1 = 1 << 12 , TextInputManagerV3 = 1 << 13 , OutputDeviceV2 = 1 << 14 , FractionalScaleManagerV1 = 1 << 15 , ScreencastingV1 = 1 << 16 , ScreenEdgeV1 = 1 << 17 , CursorShapeV1 = 1 << 18 , FakeInput = 1 << 19 , SecurityContextManagerV1 = 1 << 20 } |
enum class | CreationSetup { CreateOnly , CreateAndConfigure } |
Functions | |
void | keyboardKeyPressed (quint32 key, quint32 time) |
void | keyboardKeyReleased (quint32 key, quint32 time) |
void | pointerAxisHorizontal (qreal delta, quint32 time, qint32 discreteDelta=0, InputRedirection::PointerAxisSource source=InputRedirection::PointerAxisSourceUnknown) |
void | pointerAxisVertical (qreal delta, quint32 time, qint32 discreteDelta=0, InputRedirection::PointerAxisSource source=InputRedirection::PointerAxisSourceUnknown) |
void | pointerButtonPressed (quint32 button, quint32 time) |
void | pointerButtonReleased (quint32 button, quint32 time) |
void | pointerMotion (const QPointF &position, quint32 time) |
void | pointerMotionRelative (const QPointF &delta, quint32 time) |
void | touchCancel () |
void | touchDown (qint32 id, const QPointF &pos, quint32 time) |
void | touchMotion (qint32 id, const QPointF &pos, quint32 time) |
void | touchUp (qint32 id, quint32 time) |
bool | setupWaylandConnection (AdditionalWaylandInterfaces flags=AdditionalWaylandInterfaces()) |
void | destroyWaylandConnection () |
KWayland::Client::ConnectionThread * | waylandConnection () |
KWayland::Client::Compositor * | waylandCompositor () |
KWayland::Client::SubCompositor * | waylandSubCompositor () |
KWayland::Client::ShadowManager * | waylandShadowManager () |
KWayland::Client::ShmPool * | waylandShmPool () |
KWayland::Client::Seat * | waylandSeat () |
KWayland::Client::PlasmaShell * | waylandPlasmaShell () |
KWayland::Client::PlasmaWindowManagement * | waylandWindowManagement () |
KWayland::Client::PointerConstraints * | waylandPointerConstraints () |
KWayland::Client::AppMenuManager * | waylandAppMenuManager () |
WaylandOutputManagementV2 * | waylandOutputManagementV2 () |
KWayland::Client::TextInputManager * | waylandTextInputManager () |
QList< KWayland::Client::Output * > | waylandOutputs () |
KWayland::Client::Output * | waylandOutput (const QString &name) |
ScreencastingV1 * | screencasting () |
QList< WaylandOutputDeviceV2 * > | waylandOutputDevicesV2 () |
FakeInput * | waylandFakeInput () |
SecurityContextManagerV1 * | waylandSecurityContextManagerV1 () |
bool | waitForWaylandSurface (Window *window) |
bool | waitForWaylandPointer () |
bool | waitForWaylandTouch () |
bool | waitForWaylandKeyboard () |
void | flushWaylandConnection () |
bool | waylandSync () |
std::unique_ptr< KWayland::Client::Surface > | createSurface () |
KWayland::Client::SubSurface * | createSubSurface (KWayland::Client::Surface *surface, KWayland::Client::Surface *parentSurface, QObject *parent=nullptr) |
LayerSurfaceV1 * | createLayerSurfaceV1 (KWayland::Client::Surface *surface, const QString &scope, KWayland::Client::Output *output=nullptr, LayerShellV1::layer layer=LayerShellV1::layer_top) |
TextInputManagerV3 * | waylandTextInputManagerV3 () |
QtWayland::zwp_input_panel_surface_v1 * | createInputPanelSurfaceV1 (KWayland::Client::Surface *surface, KWayland::Client::Output *output, MockInputMethod::Mode mode) |
FractionalScaleV1 * | createFractionalScaleV1 (KWayland::Client::Surface *surface) |
XdgToplevel * | createXdgToplevelSurface (KWayland::Client::Surface *surface, QObject *parent=nullptr) |
XdgToplevel * | createXdgToplevelSurface (KWayland::Client::Surface *surface, CreationSetup configureMode, QObject *parent=nullptr) |
XdgPositioner * | createXdgPositioner () |
XdgPopup * | createXdgPopupSurface (KWayland::Client::Surface *surface, XdgSurface *parentSurface, XdgPositioner *positioner, CreationSetup configureMode=CreationSetup::CreateAndConfigure, QObject *parent=nullptr) |
XdgToplevelDecorationV1 * | createXdgToplevelDecorationV1 (XdgToplevel *toplevel, QObject *parent=nullptr) |
IdleInhibitorV1 * | createIdleInhibitorV1 (KWayland::Client::Surface *surface) |
AutoHideScreenEdgeV1 * | createAutoHideScreenEdgeV1 (KWayland::Client::Surface *surface, uint32_t border) |
CursorShapeDeviceV1 * | createCursorShapeDeviceV1 (KWayland::Client::Pointer *pointer) |
void | render (KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format=QImage::Format_ARGB32_Premultiplied) |
void | render (KWayland::Client::Surface *surface, const QImage &img) |
Window * | waitForWaylandWindowShown (int timeout=5000) |
Window * | renderAndWaitForShown (KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format=QImage::Format_ARGB32, int timeout=5000) |
Window * | renderAndWaitForShown (KWayland::Client::Surface *surface, const QImage &img, int timeout=5000) |
bool | waitForWindowClosed (Window *window) |
bool | lockScreen () |
bool | unlockScreen () |
bool | renderNodeAvailable () |
XcbConnectionPtr | createX11Connection () |
MockInputMethod * | inputMethod () |
KWayland::Client::Surface * | inputPanelSurface () |
void | setOutputConfig (const QList< QRect > &geometries) |
void | setOutputConfig (const QList< OutputInfo > &infos) |
QDebug | operator<< (QDebug dbg, const WaylandOutputDeviceV2 *output) |
typedef std::unique_ptr<xcb_connection_t, XcbConnectionDeleter> KWin::Test::XcbConnectionPtr |
Definition at line 774 of file kwin_wayland_test.h.
|
strong |
Definition at line 545 of file kwin_wayland_test.h.
|
strong |
Enumerator | |
---|---|
CreateOnly | |
CreateAndConfigure |
Definition at line 687 of file kwin_wayland_test.h.
AutoHideScreenEdgeV1 * KWin::Test::createAutoHideScreenEdgeV1 | ( | KWayland::Client::Surface * | surface, |
uint32_t | border ) |
Definition at line 1066 of file test_helpers.cpp.
CursorShapeDeviceV1 * KWin::Test::createCursorShapeDeviceV1 | ( | KWayland::Client::Pointer * | pointer | ) |
Definition at line 1077 of file test_helpers.cpp.
FractionalScaleV1 * KWin::Test::createFractionalScaleV1 | ( | KWayland::Client::Surface * | surface | ) |
Definition at line 965 of file test_helpers.cpp.
IdleInhibitorV1 * KWin::Test::createIdleInhibitorV1 | ( | KWayland::Client::Surface * | surface | ) |
Definition at line 1055 of file test_helpers.cpp.
QtWayland::zwp_input_panel_surface_v1 * KWin::Test::createInputPanelSurfaceV1 | ( | KWayland::Client::Surface * | surface, |
KWayland::Client::Output * | output, | ||
MockInputMethod::Mode | mode ) |
Definition at line 940 of file test_helpers.cpp.
LayerSurfaceV1 * KWin::Test::createLayerSurfaceV1 | ( | KWayland::Client::Surface * | surface, |
const QString & | scope, | ||
KWayland::Client::Output * | output = nullptr, | ||
LayerShellV1::layer | layer = LayerShellV1::layer_top ) |
Definition at line 921 of file test_helpers.cpp.
KWayland::Client::SubSurface * KWin::Test::createSubSurface | ( | KWayland::Client::Surface * | surface, |
KWayland::Client::Surface * | parentSurface, | ||
QObject * | parent = nullptr ) |
Definition at line 908 of file test_helpers.cpp.
std::unique_ptr< KWayland::Client::Surface > KWin::Test::createSurface | ( | ) |
Definition at line 899 of file test_helpers.cpp.
Test::XcbConnectionPtr KWin::Test::createX11Connection | ( | ) |
Definition at line 1191 of file test_helpers.cpp.
XdgPopup * KWin::Test::createXdgPopupSurface | ( | KWayland::Client::Surface * | surface, |
XdgSurface * | parentSurface, | ||
XdgPositioner * | positioner, | ||
CreationSetup | configureMode = CreationSetup::CreateAndConfigure, | ||
QObject * | parent = nullptr ) |
Definition at line 1023 of file test_helpers.cpp.
XdgPositioner * KWin::Test::createXdgPositioner | ( | ) |
Definition at line 1011 of file test_helpers.cpp.
XdgToplevelDecorationV1 * KWin::Test::createXdgToplevelDecorationV1 | ( | XdgToplevel * | toplevel, |
QObject * | parent = nullptr ) |
Definition at line 1043 of file test_helpers.cpp.
XdgToplevel * KWin::Test::createXdgToplevelSurface | ( | KWayland::Client::Surface * | surface, |
CreationSetup | configureMode, | ||
QObject * | parent = nullptr ) |
Definition at line 992 of file test_helpers.cpp.
XdgToplevel * KWin::Test::createXdgToplevelSurface | ( | KWayland::Client::Surface * | surface, |
QObject * | parent = nullptr ) |
Definition at line 987 of file test_helpers.cpp.
void KWin::Test::destroyWaylandConnection | ( | ) |
Destroys the Wayland Connection created with setupWaylandConnection}. This can be called from cleanup in order to ensure that no Wayland Connection leaks into the next test method.
Definition at line 598 of file test_helpers.cpp.
void KWin::Test::flushWaylandConnection | ( | ) |
Definition at line 854 of file test_helpers.cpp.
MockInputMethod * KWin::Test::inputMethod | ( | ) |
Definition at line 307 of file test_helpers.cpp.
KWayland::Client::Surface * KWin::Test::inputPanelSurface | ( | ) |
Definition at line 312 of file test_helpers.cpp.
void KWin::Test::keyboardKeyPressed | ( | quint32 | key, |
quint32 | time ) |
Definition at line 1600 of file test_helpers.cpp.
void KWin::Test::keyboardKeyReleased | ( | quint32 | key, |
quint32 | time ) |
Definition at line 1606 of file test_helpers.cpp.
bool KWin::Test::lockScreen | ( | ) |
Locks the screen and waits till the screen is locked.
true
if the screen could be locked, false
otherwise QDebug KWin::Test::operator<< | ( | QDebug | dbg, |
const WaylandOutputDeviceV2 * | output ) |
Definition at line 1373 of file test_helpers.cpp.
void KWin::Test::pointerAxisHorizontal | ( | qreal | delta, |
quint32 | time, | ||
qint32 | discreteDelta = 0, | ||
InputRedirection::PointerAxisSource | source = InputRedirection::PointerAxisSourceUnknown ) |
Definition at line 1612 of file test_helpers.cpp.
void KWin::Test::pointerAxisVertical | ( | qreal | delta, |
quint32 | time, | ||
qint32 | discreteDelta = 0, | ||
InputRedirection::PointerAxisSource | source = InputRedirection::PointerAxisSourceUnknown ) |
Definition at line 1619 of file test_helpers.cpp.
void KWin::Test::pointerButtonPressed | ( | quint32 | button, |
quint32 | time ) |
Definition at line 1626 of file test_helpers.cpp.
void KWin::Test::pointerButtonReleased | ( | quint32 | button, |
quint32 | time ) |
Definition at line 1633 of file test_helpers.cpp.
void KWin::Test::pointerMotion | ( | const QPointF & | position, |
quint32 | time ) |
Definition at line 1640 of file test_helpers.cpp.
void KWin::Test::pointerMotionRelative | ( | const QPointF & | delta, |
quint32 | time ) |
Definition at line 1647 of file test_helpers.cpp.
void KWin::Test::render | ( | KWayland::Client::Surface * | surface, |
const QImage & | img ) |
Creates a shared memory buffer using the supplied image img
and attaches it to the surface
Definition at line 814 of file test_helpers.cpp.
void KWin::Test::render | ( | KWayland::Client::Surface * | surface, |
const QSize & | size, | ||
const QColor & | color, | ||
const QImage::Format & | format = QImage::Format_ARGB32_Premultiplied ) |
Creates a shared memory buffer of size
in color
and attaches it to the surface
. The surface
gets damaged and committed, thus it's rendered.
Definition at line 807 of file test_helpers.cpp.
Window * KWin::Test::renderAndWaitForShown | ( | KWayland::Client::Surface * | surface, |
const QImage & | img, | ||
int | timeout = 5000 ) |
Definition at line 840 of file test_helpers.cpp.
Window * KWin::Test::renderAndWaitForShown | ( | KWayland::Client::Surface * | surface, |
const QSize & | size, | ||
const QColor & | color, | ||
const QImage::Format & | format = QImage::Format_ARGB32, | ||
int | timeout = 5000 ) |
Combination of render} and waitForWaylandWindowShown}.
Definition at line 833 of file test_helpers.cpp.
bool KWin::Test::renderNodeAvailable | ( | ) |
Returns true
if the system has at least one render node; otherwise returns false
.
This can be used to test whether the system is capable of allocating and sharing prime buffers, etc.
Definition at line 1166 of file test_helpers.cpp.
ScreencastingV1 * KWin::Test::screencasting | ( | ) |
Definition at line 742 of file test_helpers.cpp.
void KWin::Test::setOutputConfig | ( | const QList< OutputInfo > & | infos | ) |
Definition at line 241 of file kwin_wayland_test.cpp.
void KWin::Test::setOutputConfig | ( | const QList< QRect > & | geometries | ) |
Definition at line 230 of file kwin_wayland_test.cpp.
bool KWin::Test::setupWaylandConnection | ( | AdditionalWaylandInterfaces | flags = AdditionalWaylandInterfaces() | ) |
Creates a Wayland Connection in a dedicated thread and creates various client side objects which can be used to create windows.
true
if created successfully, false
if there was an error Definition at line 365 of file test_helpers.cpp.
void KWin::Test::touchCancel | ( | ) |
Definition at line 1654 of file test_helpers.cpp.
void KWin::Test::touchDown | ( | qint32 | id, |
const QPointF & | pos, | ||
quint32 | time ) |
Definition at line 1660 of file test_helpers.cpp.
void KWin::Test::touchMotion | ( | qint32 | id, |
const QPointF & | pos, | ||
quint32 | time ) |
Definition at line 1666 of file test_helpers.cpp.
void KWin::Test::touchUp | ( | qint32 | id, |
quint32 | time ) |
Definition at line 1672 of file test_helpers.cpp.
bool KWin::Test::unlockScreen | ( | ) |
Unlocks the screen and waits till the screen is unlocked.
true
if the screen could be unlocked, false
otherwise bool KWin::Test::waitForWaylandKeyboard | ( | ) |
Definition at line 795 of file test_helpers.cpp.
bool KWin::Test::waitForWaylandPointer | ( | ) |
Definition at line 771 of file test_helpers.cpp.
bool KWin::Test::waitForWaylandSurface | ( | Window * | window | ) |
Definition at line 762 of file test_helpers.cpp.
bool KWin::Test::waitForWaylandTouch | ( | ) |
Definition at line 783 of file test_helpers.cpp.
Window * KWin::Test::waitForWaylandWindowShown | ( | int | timeout = 5000 | ) |
Waits till a new Window is shown and returns the created Window. If no Window gets shown during timeout
null
is returned.
Definition at line 821 of file test_helpers.cpp.
bool KWin::Test::waitForWindowClosed | ( | Window * | window | ) |
Waits for the window
to be destroyed.
Definition at line 1088 of file test_helpers.cpp.
KWayland::Client::AppMenuManager * KWin::Test::waylandAppMenuManager | ( | ) |
Definition at line 707 of file test_helpers.cpp.
KWayland::Client::Compositor * KWin::Test::waylandCompositor | ( | ) |
Definition at line 667 of file test_helpers.cpp.
KWayland::Client::ConnectionThread * KWin::Test::waylandConnection | ( | ) |
Definition at line 662 of file test_helpers.cpp.
FakeInput * KWin::Test::waylandFakeInput | ( | ) |
Definition at line 752 of file test_helpers.cpp.
KWayland::Client::Output * KWin::Test::waylandOutput | ( | const QString & | name | ) |
Definition at line 732 of file test_helpers.cpp.
QList< KWin::Test::WaylandOutputDeviceV2 * > KWin::Test::waylandOutputDevicesV2 | ( | ) |
Definition at line 747 of file test_helpers.cpp.
KWin::Test::WaylandOutputManagementV2 * KWin::Test::waylandOutputManagementV2 | ( | ) |
Definition at line 712 of file test_helpers.cpp.
QList< KWayland::Client::Output * > KWin::Test::waylandOutputs | ( | ) |
Definition at line 727 of file test_helpers.cpp.
KWayland::Client::PlasmaShell * KWin::Test::waylandPlasmaShell | ( | ) |
Definition at line 692 of file test_helpers.cpp.
KWayland::Client::PointerConstraints * KWin::Test::waylandPointerConstraints | ( | ) |
Definition at line 702 of file test_helpers.cpp.
KWayland::Client::Seat * KWin::Test::waylandSeat | ( | ) |
Definition at line 687 of file test_helpers.cpp.
SecurityContextManagerV1 * KWin::Test::waylandSecurityContextManagerV1 | ( | ) |
Definition at line 757 of file test_helpers.cpp.
KWayland::Client::ShadowManager * KWin::Test::waylandShadowManager | ( | ) |
Definition at line 677 of file test_helpers.cpp.
KWayland::Client::ShmPool * KWin::Test::waylandShmPool | ( | ) |
Definition at line 682 of file test_helpers.cpp.
KWayland::Client::SubCompositor * KWin::Test::waylandSubCompositor | ( | ) |
Definition at line 672 of file test_helpers.cpp.
bool KWin::Test::waylandSync | ( | ) |
Ensures that all client requests are processed by the compositor and all events sent by the compositor are seen by the client.
Definition at line 892 of file test_helpers.cpp.
KWayland::Client::TextInputManager * KWin::Test::waylandTextInputManager | ( | ) |
Definition at line 717 of file test_helpers.cpp.
TextInputManagerV3 * KWin::Test::waylandTextInputManagerV3 | ( | ) |
Definition at line 722 of file test_helpers.cpp.
KWayland::Client::PlasmaWindowManagement * KWin::Test::waylandWindowManagement | ( | ) |
Definition at line 697 of file test_helpers.cpp.
KWayland::Client::AppMenuManager* KWin::Test::appMenu = nullptr |
Definition at line 291 of file test_helpers.cpp.
KWayland::Client::Compositor* KWin::Test::compositor = nullptr |
Definition at line 276 of file test_helpers.cpp.
KWayland::Client::ConnectionThread* KWin::Test::connection = nullptr |
Definition at line 274 of file test_helpers.cpp.
CursorShapeManagerV1* KWin::Test::cursorShapeManagerV1 = nullptr |
Definition at line 302 of file test_helpers.cpp.
FakeInput* KWin::Test::fakeInput = nullptr |
Definition at line 303 of file test_helpers.cpp.
FractionalScaleManagerV1* KWin::Test::fractionalScaleManagerV1 = nullptr |
Definition at line 299 of file test_helpers.cpp.
IdleInhibitManagerV1* KWin::Test::idleInhibitManagerV1 = nullptr |
Definition at line 290 of file test_helpers.cpp.
QtWayland::zwp_input_method_context_v1* KWin::Test::inputMethodContextV1 = nullptr |
Definition at line 296 of file test_helpers.cpp.
MockInputMethod* KWin::Test::inputMethodV1 = nullptr |
Definition at line 295 of file test_helpers.cpp.
QtWayland::zwp_input_panel_v1* KWin::Test::inputPanelV1 = nullptr |
Definition at line 294 of file test_helpers.cpp.
LayerShellV1* KWin::Test::layerShellV1 = nullptr |
Definition at line 297 of file test_helpers.cpp.
QList<WaylandOutputDeviceV2 *> KWin::Test::outputDevicesV2 |
Definition at line 289 of file test_helpers.cpp.
WaylandOutputManagementV2* KWin::Test::outputManagementV2 = nullptr |
Definition at line 286 of file test_helpers.cpp.
QList<KWayland::Client::Output *> KWin::Test::outputs |
Definition at line 288 of file test_helpers.cpp.
KWayland::Client::PlasmaShell* KWin::Test::plasmaShell = nullptr |
Definition at line 282 of file test_helpers.cpp.
KWayland::Client::PointerConstraints* KWin::Test::pointerConstraints = nullptr |
Definition at line 284 of file test_helpers.cpp.
KWayland::Client::EventQueue* KWin::Test::queue = nullptr |
Definition at line 275 of file test_helpers.cpp.
KWayland::Client::Registry* KWin::Test::registry = nullptr |
Definition at line 285 of file test_helpers.cpp.
ScreencastingV1* KWin::Test::screencastingV1 = nullptr |
Definition at line 300 of file test_helpers.cpp.
ScreenEdgeManagerV1* KWin::Test::screenEdgeManagerV1 = nullptr |
Definition at line 301 of file test_helpers.cpp.
KWayland::Client::Seat* KWin::Test::seat = nullptr |
Definition at line 281 of file test_helpers.cpp.
SecurityContextManagerV1* KWin::Test::securityContextManagerV1 = nullptr |
Definition at line 304 of file test_helpers.cpp.
KWayland::Client::ShadowManager* KWin::Test::shadowManager = nullptr |
Definition at line 278 of file test_helpers.cpp.
KWayland::Client::ShmPool* KWin::Test::shm = nullptr |
Definition at line 280 of file test_helpers.cpp.
KWayland::Client::SubCompositor* KWin::Test::subCompositor = nullptr |
Definition at line 277 of file test_helpers.cpp.
KWayland::Client::TextInputManager* KWin::Test::textInputManager = nullptr |
Definition at line 293 of file test_helpers.cpp.
TextInputManagerV3* KWin::Test::textInputManagerV3 = nullptr |
Definition at line 298 of file test_helpers.cpp.
QThread* KWin::Test::thread = nullptr |
Definition at line 287 of file test_helpers.cpp.
KWayland::Client::PlasmaWindowManagement* KWin::Test::windowManagement = nullptr |
Definition at line 283 of file test_helpers.cpp.
XdgDecorationManagerV1* KWin::Test::xdgDecorationManagerV1 = nullptr |
Definition at line 292 of file test_helpers.cpp.
XdgShell* KWin::Test::xdgShell = nullptr |
Definition at line 279 of file test_helpers.cpp.