00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ISCREEN_H
00016 #define ISCREEN_H
00017
00018 #include "IInterface.h"
00019 #include "ClipboardTypes.h"
00020 #include "CEvent.h"
00021
00022 class IClipboard;
00023
00025
00028 class IScreen : public IInterface {
00029 public:
00030 struct CClipboardInfo {
00031 public:
00032 ClipboardID m_id;
00033 UInt32 m_sequenceNumber;
00034 };
00035
00037
00038
00040
00043 virtual void* getEventTarget() const = 0;
00044
00046
00050 virtual bool getClipboard(ClipboardID id, IClipboard*) const = 0;
00051
00053
00057 virtual void getShape(SInt32& x, SInt32& y,
00058 SInt32& width, SInt32& height) const = 0;
00059
00061
00064 virtual void getCursorPos(SInt32& x, SInt32& y) const = 0;
00065
00067
00071 static CEvent::Type getErrorEvent();
00072
00074
00078 static CEvent::Type getShapeChangedEvent();
00079
00081
00086 static CEvent::Type getClipboardGrabbedEvent();
00087
00089
00093 static CEvent::Type getSuspendEvent();
00094
00096
00100 static CEvent::Type getResumeEvent();
00101
00103
00104 private:
00105 static CEvent::Type s_errorEvent;
00106 static CEvent::Type s_shapeChangedEvent;
00107 static CEvent::Type s_clipboardGrabbedEvent;
00108 static CEvent::Type s_suspendEvent;
00109 static CEvent::Type s_resumeEvent;
00110 };
00111
00112 #endif