2001-10-06 14:13:28 +00:00
|
|
|
#ifndef ISECONDARYSCREEN_H
|
|
|
|
#define ISECONDARYSCREEN_H
|
|
|
|
|
|
|
|
#include "IInterface.h"
|
|
|
|
#include "BasicTypes.h"
|
2001-10-08 19:24:46 +00:00
|
|
|
#include "KeyTypes.h"
|
|
|
|
#include "MouseTypes.h"
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
class CClient;
|
|
|
|
//class IClipboard;
|
|
|
|
|
|
|
|
class ISecondaryScreen : public IInterface {
|
|
|
|
public:
|
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// initialize the screen, hide the cursor, and disable the screen
|
|
|
|
// saver. start reporting certain events to the client (clipboard
|
|
|
|
// stolen and screen size changed).
|
|
|
|
virtual void open(CClient*) = 0;
|
|
|
|
|
|
|
|
// close the screen. should restore the screen saver.
|
|
|
|
virtual void close() = 0;
|
|
|
|
|
|
|
|
// called when the user navigates to the secondary screen. warp
|
|
|
|
// the cursor to the given coordinates and unhide it. prepare to
|
|
|
|
// simulate input events.
|
|
|
|
virtual void enter(SInt32 xAbsolute, SInt32 yAbsolute) = 0;
|
|
|
|
|
|
|
|
// called when the user navigates off the secondary screen. clean
|
|
|
|
// up input event simulation and hide the cursor.
|
|
|
|
virtual void leave() = 0;
|
|
|
|
|
|
|
|
// keyboard input simulation
|
2001-10-25 21:40:29 +00:00
|
|
|
virtual void keyDown(KeyID, KeyModifierMask) = 0;
|
|
|
|
virtual void keyRepeat(KeyID, KeyModifierMask, SInt32 count) = 0;
|
|
|
|
virtual void keyUp(KeyID, KeyModifierMask) = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// mouse input simulation
|
2001-10-25 21:40:29 +00:00
|
|
|
virtual void mouseDown(ButtonID) = 0;
|
|
|
|
virtual void mouseUp(ButtonID) = 0;
|
|
|
|
virtual void mouseMove(SInt32 xAbsolute, SInt32 yAbsolute) = 0;
|
|
|
|
virtual void mouseWheel(SInt32 delta) = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
// set the screen's clipboard contents. this is usually called
|
|
|
|
// soon after an enter().
|
|
|
|
virtual void setClipboard(const IClipboard*) = 0;
|
|
|
|
|
|
|
|
// show or hide the screen saver
|
2001-10-25 21:40:29 +00:00
|
|
|
virtual void screenSaver(bool show) = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// clipboard input
|
2001-10-25 21:40:29 +00:00
|
|
|
virtual void clipboardChanged() = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
|
|
|
// get the size of the screen
|
|
|
|
virtual void getSize(SInt32* width, SInt32* height) const = 0;
|
|
|
|
|
|
|
|
// get the size of jump zone
|
|
|
|
virtual SInt32 getJumpZoneSize() const = 0;
|
|
|
|
|
|
|
|
/*
|
|
|
|
// get the screen's clipboard contents
|
|
|
|
virtual void getClipboard(IClipboard*) const = 0;
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|