KWin
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KWin::WindowSelector Class Reference

#include <x11_standalone_windowselector.h>

Inheritance diagram for KWin::WindowSelector:
KWin::X11EventFilter

Public Member Functions

 WindowSelector ()
 
 ~WindowSelector () override
 
void start (std::function< void(KWin::Window *)> callback, const QByteArray &cursorName)
 
void start (std::function< void(const QPointF &)> callback)
 
bool isActive () const
 
void processEvent (xcb_generic_event_t *event)
 
bool event (xcb_generic_event_t *event) override
 
- Public Member Functions inherited from KWin::X11EventFilter
 X11EventFilter (int eventType, int opcode=0, int genericEventType=0)
 
 X11EventFilter (int eventType, int opcode, const QList< int > &genericEventTypes)
 
 X11EventFilter (const QList< int > &eventTypes)
 
virtual ~X11EventFilter ()
 
QList< int > eventTypes () const
 
int extension () const
 
QList< int > genericEventTypes () const
 
bool isGenericEvent () const
 

Detailed Description

Definition at line 26 of file x11_standalone_windowselector.h.

Constructor & Destructor Documentation

◆ WindowSelector()

KWin::WindowSelector::WindowSelector ( )

Definition at line 26 of file x11_standalone_windowselector.cpp.

◆ ~WindowSelector()

KWin::WindowSelector::~WindowSelector ( )
override

Definition at line 42 of file x11_standalone_windowselector.cpp.

Member Function Documentation

◆ event()

bool KWin::WindowSelector::event ( xcb_generic_event_t * event)
overridevirtual

This method is called for every event of the filtered type.

Return true to accept the event and stop further processing, and false otherwise.

Implements KWin::X11EventFilter.

Definition at line 134 of file x11_standalone_windowselector.cpp.

◆ isActive()

bool KWin::WindowSelector::isActive ( ) const
inline

Definition at line 34 of file x11_standalone_windowselector.h.

◆ processEvent()

void KWin::WindowSelector::processEvent ( xcb_generic_event_t * event)

Definition at line 123 of file x11_standalone_windowselector.cpp.

◆ start() [1/2]

void KWin::WindowSelector::start ( std::function< void(const QPointF &)> callback)

Definition at line 61 of file x11_standalone_windowselector.cpp.

◆ start() [2/2]

void KWin::WindowSelector::start ( std::function< void(KWin::Window *)> callback,
const QByteArray & cursorName )

Definition at line 46 of file x11_standalone_windowselector.cpp.


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