Adding Platform/Unix/X11WindowEventHandler
This commit is contained in:
parent
7a694e8fd0
commit
7402896ce6
3 changed files with 82 additions and 0 deletions
29
source/Platform/Unix/X11WindowEventHandler.h
Normal file
29
source/Platform/Unix/X11WindowEventHandler.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
#ifndef PLATFORM_UNIX_X11_WINDOW_EVENT_HANDLER_H
|
||||
#define PLATFORM_UNIX_X11_WINDOW_EVENT_HANDLER_H
|
||||
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
namespace sp {
|
||||
|
||||
class X11Display;
|
||||
|
||||
class X11WindowEventHandler
|
||||
{
|
||||
public:
|
||||
|
||||
static void registerHandler(::Display* disp, ::Window window, X11Display *ptr);
|
||||
|
||||
static void unregisterHandler(::Display* disp, ::Window window);
|
||||
|
||||
static void process(::Display* disp, const ::XEvent& event);
|
||||
|
||||
protected :
|
||||
|
||||
static ::XContext win_context;
|
||||
};
|
||||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* PLATFORM_UNIX_WINDOW_EVENT_HANDLER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue