KWin
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Types | Protected Member Functions | Properties | List of all members
Backend Class Reference

#include <pointerconstraintstest.h>

Inheritance diagram for Backend:
WaylandBackend XBackend

Signals

void confineChanged (bool confined)
 
void lockChanged (bool locked)
 
void lockHintChanged ()
 
void errorsAllowedChanged ()
 
void forceSurfaceCommit ()
 

Public Member Functions

 Backend (QObject *parent=nullptr)
 
virtual void init (QQuickView *view)
 
int mode () const
 
bool lockHint () const
 
bool errorsAllowed () const
 
void setErrorsAllowed (bool set)
 
virtual Q_INVOKABLE void lockRequest (bool persistent=true, QRect region=QRect())
 
virtual Q_INVOKABLE void unlockRequest ()
 
virtual Q_INVOKABLE void confineRequest (bool persistent=true, QRect region=QRect())
 
virtual Q_INVOKABLE void unconfineRequest ()
 
virtual Q_INVOKABLE void hideAndConfineRequest (bool confineBeforeHide=false)
 
virtual Q_INVOKABLE void undoHideRequest ()
 

Protected Types

enum class  Mode { Wayland = 0 , X = 1 }
 

Protected Member Functions

QQuickView * view () const
 
void setMode (Mode set)
 

Properties

int mode
 
bool lockHint
 
bool errorsAllowed
 

Detailed Description

Definition at line 33 of file pointerconstraintstest.h.

Member Enumeration Documentation

◆ Mode

enum class Backend::Mode
strongprotected
Enumerator
Wayland 

Definition at line 100 of file pointerconstraintstest.h.

Constructor & Destructor Documentation

◆ Backend()

Backend::Backend ( QObject * parent = nullptr)
inline

Definition at line 37 of file pointerconstraintstest.h.

Member Function Documentation

◆ confineChanged

void Backend::confineChanged ( bool confined)
signal

◆ confineRequest()

virtual Q_INVOKABLE void Backend::confineRequest ( bool persistent = true,
QRect region = QRect() )
inlinevirtual

Reimplemented in WaylandBackend, and XBackend.

Definition at line 79 of file pointerconstraintstest.h.

◆ errorsAllowed()

bool Backend::errorsAllowed ( ) const
inline

Definition at line 59 of file pointerconstraintstest.h.

◆ errorsAllowedChanged

void Backend::errorsAllowedChanged ( )
signal

◆ forceSurfaceCommit

void Backend::forceSurfaceCommit ( )
signal

◆ hideAndConfineRequest()

virtual Q_INVOKABLE void Backend::hideAndConfineRequest ( bool confineBeforeHide = false)
inlinevirtual

Reimplemented in XBackend.

Definition at line 85 of file pointerconstraintstest.h.

◆ init()

virtual void Backend::init ( QQuickView * view)
inlinevirtual

Reimplemented in WaylandBackend, and XBackend.

Definition at line 46 of file pointerconstraintstest.h.

◆ lockChanged

void Backend::lockChanged ( bool locked)
signal

◆ lockHint()

bool Backend::lockHint ( ) const
inline

Definition at line 55 of file pointerconstraintstest.h.

◆ lockHintChanged

void Backend::lockHintChanged ( )
signal

◆ lockRequest()

virtual Q_INVOKABLE void Backend::lockRequest ( bool persistent = true,
QRect region = QRect() )
inlinevirtual

Reimplemented in WaylandBackend, and XBackend.

Definition at line 72 of file pointerconstraintstest.h.

◆ mode()

int Backend::mode ( ) const
inline

Definition at line 50 of file pointerconstraintstest.h.

◆ setErrorsAllowed()

void Backend::setErrorsAllowed ( bool set)
inline

Definition at line 63 of file pointerconstraintstest.h.

◆ setMode()

void Backend::setMode ( Mode set)
inlineprotected

Definition at line 109 of file pointerconstraintstest.h.

◆ unconfineRequest()

virtual Q_INVOKABLE void Backend::unconfineRequest ( )
inlinevirtual

Reimplemented in WaylandBackend, and XBackend.

Definition at line 82 of file pointerconstraintstest.h.

◆ undoHideRequest()

virtual Q_INVOKABLE void Backend::undoHideRequest ( )
inlinevirtual

Reimplemented in XBackend.

Definition at line 88 of file pointerconstraintstest.h.

◆ unlockRequest()

virtual Q_INVOKABLE void Backend::unlockRequest ( )
inlinevirtual

Reimplemented in WaylandBackend, and XBackend.

Definition at line 75 of file pointerconstraintstest.h.

◆ view()

QQuickView * Backend::view ( ) const
inlineprotected

Definition at line 105 of file pointerconstraintstest.h.

Property Documentation

◆ errorsAllowed

bool Backend::errorsAllowed
readwrite

Definition at line 44 of file pointerconstraintstest.h.

◆ lockHint

bool Backend::lockHint

Definition at line 43 of file pointerconstraintstest.h.

◆ mode

int Backend::mode
read

Definition at line 42 of file pointerconstraintstest.h.


The documentation for this class was generated from the following file: