Mir
Public Member Functions | List of all members
miral::PrependEventFilter Class Reference

#include <prepend_event_filter.h>

Public Member Functions

 PrependEventFilter (std::function< bool(MirEvent const *event)> const &filter)
 Prepend an event filter (before any existing filters, including the window manager). The supplied filter should return true if and only if it handles the event as filters later in the list will not be called. More...
 
void operator() (mir::Server &server)
 

Constructor & Destructor Documentation

◆ PrependEventFilter()

miral::PrependEventFilter::PrependEventFilter ( std::function< bool(MirEvent const *event)> const &  filter)
explicit

Prepend an event filter (before any existing filters, including the window manager). The supplied filter should return true if and only if it handles the event as filters later in the list will not be called.

Remarks
Since MirAL 3.6

Member Function Documentation

◆ operator()()

void miral::PrependEventFilter::operator() ( mir::Server &  server)

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

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.