libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
windowfocusevent.h
Go to the documentation of this file.
1
8#pragma once
9
10
11#include <promeki/config.h>
12#if PROMEKI_ENABLE_CORE
13#include <promeki/event.h>
14
15PROMEKI_NAMESPACE_BEGIN
16
31class WindowFocusEvent : public Event {
32 public:
34 static const Type WindowFocus;
35
40 explicit WindowFocusEvent(bool gained) : Event(WindowFocus), _gained(gained) {}
41
43 bool gained() const { return _gained; }
44
46 bool lost() const { return !_gained; }
47
48 private:
49 bool _gained;
50};
51
52PROMEKI_NAMESPACE_END
53
54#endif // PROMEKI_ENABLE_CORE