2001-10-08 19:24:46 +00:00
|
|
|
#ifndef CXWINDOWSSECONDARYSCREEN_H
|
|
|
|
#define CXWINDOWSSECONDARYSCREEN_H
|
|
|
|
|
2001-11-11 21:15:30 +00:00
|
|
|
#include "CXWindowsScreen.h"
|
2001-10-08 19:24:46 +00:00
|
|
|
#include "ISecondaryScreen.h"
|
|
|
|
|
2001-11-11 21:15:30 +00:00
|
|
|
class CXWindowsSecondaryScreen : public CXWindowsScreen, public ISecondaryScreen {
|
2001-10-08 19:24:46 +00:00
|
|
|
public:
|
|
|
|
CXWindowsSecondaryScreen();
|
|
|
|
virtual ~CXWindowsSecondaryScreen();
|
|
|
|
|
|
|
|
// ISecondaryScreen overrides
|
2001-11-19 00:33:36 +00:00
|
|
|
virtual void run();
|
|
|
|
virtual void stop();
|
2001-10-08 19:24:46 +00:00
|
|
|
virtual void open(CClient*);
|
|
|
|
virtual void close();
|
|
|
|
virtual void enter(SInt32 xAbsolute, SInt32 yAbsolute);
|
|
|
|
virtual void leave();
|
2001-10-25 21:40:29 +00:00
|
|
|
virtual void keyDown(KeyID, KeyModifierMask);
|
|
|
|
virtual void keyRepeat(KeyID, KeyModifierMask, SInt32 count);
|
|
|
|
virtual void keyUp(KeyID, KeyModifierMask);
|
|
|
|
virtual void mouseDown(ButtonID);
|
|
|
|
virtual void mouseUp(ButtonID);
|
|
|
|
virtual void mouseMove(SInt32 xAbsolute, SInt32 yAbsolute);
|
|
|
|
virtual void mouseWheel(SInt32 delta);
|
2001-10-08 19:24:46 +00:00
|
|
|
virtual void getSize(SInt32* width, SInt32* height) const;
|
|
|
|
virtual SInt32 getJumpZoneSize() const;
|
|
|
|
|
2001-11-11 21:15:30 +00:00
|
|
|
protected:
|
|
|
|
// CXWindowsScreen overrides
|
|
|
|
virtual void onOpenDisplay();
|
|
|
|
virtual void onCloseDisplay();
|
|
|
|
|
2001-10-08 19:24:46 +00:00
|
|
|
private:
|
2001-11-11 21:15:30 +00:00
|
|
|
void leaveNoLock(Display*);
|
2001-10-08 19:24:46 +00:00
|
|
|
KeyCode mapKey(KeyID, KeyModifierMask) const;
|
|
|
|
unsigned int mapButton(ButtonID button) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
CClient* m_client;
|
|
|
|
Window m_window;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|