00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef ISCREEN_H
00020 #define ISCREEN_H
00021
00022 #include "IInterface.h"
00023 #include "ClipboardTypes.h"
00024 #include "CEvent.h"
00025
00026 class IClipboard;
00027
00029
00032 class IScreen : public IInterface {
00033 public:
00034 struct CClipboardInfo {
00035 public:
00036 ClipboardID m_id;
00037 UInt32 m_sequenceNumber;
00038 };
00039
00041
00042
00044
00047 virtual void* getEventTarget() const = 0;
00048
00050
00054 virtual bool getClipboard(ClipboardID id, IClipboard*) const = 0;
00055
00057
00061 virtual void getShape(SInt32& x, SInt32& y,
00062 SInt32& width, SInt32& height) const = 0;
00063
00065
00068 virtual void getCursorPos(SInt32& x, SInt32& y) const = 0;
00069
00071
00075 static CEvent::Type getErrorEvent();
00076
00078
00082 static CEvent::Type getShapeChangedEvent();
00083
00085
00090 static CEvent::Type getClipboardGrabbedEvent();
00091
00093
00097 static CEvent::Type getSuspendEvent();
00098
00100
00104 static CEvent::Type getResumeEvent();
00105
00107
00108 private:
00109 static CEvent::Type s_errorEvent;
00110 static CEvent::Type s_shapeChangedEvent;
00111 static CEvent::Type s_clipboardGrabbedEvent;
00112 static CEvent::Type s_suspendEvent;
00113 static CEvent::Type s_resumeEvent;
00114 };
00115
00116 #endif