mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 16:31:44 +03:00
7c391a0f35
also implemented onError in CClient which previously did not have any way to handle display disconnection.
26 lines
662 B
C++
Executable File
26 lines
662 B
C++
Executable File
#ifndef IMSWINDOWSSCREENEVENTHANDLER_H
|
|
#define IMSWINDOWSSCREENEVENTHANDLER_H
|
|
|
|
#include "IScreenEventHandler.h"
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
|
|
class IMSWindowsScreenEventHandler : public IScreenEventHandler {
|
|
public:
|
|
// manipulators
|
|
|
|
// called after the window is created
|
|
virtual void postCreateWindow(HWND) = 0;
|
|
|
|
// called before the window is destroyed
|
|
virtual void preDestroyWindow(HWND) = 0;
|
|
|
|
// IScreenEventHandler overrides
|
|
virtual void onScreensaver(bool activated) = 0;
|
|
virtual bool onPreDispatch(const CEvent* event) = 0;
|
|
virtual bool onEvent(CEvent* event) = 0;
|
|
virtual SInt32 getJumpZoneSize() const = 0;
|
|
};
|
|
|
|
#endif
|