Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
FunctionEventJob Class Reference

Use a function as an event job. More...

#include <FunctionEventJob.h>

Public Member Functions

 FunctionEventJob (void(*func)(const Event &, void *), void *arg=nullptr)
 run() invokes func(arg)
 ~FunctionEventJob ()=default
void run (const Event &)

Detailed Description

Use a function as an event job.

An event job class that invokes a function.

Constructor & Destructor Documentation

◆ FunctionEventJob()

FunctionEventJob::FunctionEventJob ( void(* func )(const Event &, void *),
void * arg = nullptr )
explicit

run() invokes func(arg)

◆ ~FunctionEventJob()

FunctionEventJob::~FunctionEventJob ( )
default

Member Function Documentation

◆ run()

void FunctionEventJob::run ( const Event & event)

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