00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef freecloth_gfx_gfxWindowObserver_h
00020 #define freecloth_gfx_gfxWindowObserver_h
00021
00022 #ifndef freecloth_gfx_package_h
00023 #include <freecloth/gfx/package.h>
00024 #endif
00025
00026 #ifndef freecloth_gfx_gfxWindow_h
00027 #include <freecloth/gfx/gfxWindow.h>
00028 #endif
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 class GfxWindowObserver {
00042
00043 public:
00044
00045
00046
00047 virtual ~GfxWindowObserver();
00048
00049 virtual void idleReceived();
00050
00051
00052
00053
00054 virtual void destroyed( GfxWindow& );
00055 virtual void closeReceived( GfxWindow& );
00056
00057 virtual void displayReceived( GfxWindow& );
00058 virtual void keyPressed(
00059 GfxWindow&,
00060 GfxWindow::KeyID,
00061 GfxWindow::ModBitfield
00062 );
00063 virtual void keyDownReceived(
00064 GfxWindow&,
00065 GfxWindow::KeyID,
00066 GfxWindow::ModBitfield
00067 );
00068 virtual void keyUpReceived(
00069 GfxWindow&,
00070 GfxWindow::KeyID,
00071 GfxWindow::ModBitfield
00072 );
00073 virtual void mouseDownReceived(
00074 GfxWindow&,
00075 UInt32 x,
00076 UInt32 y,
00077 GfxWindow::ButtonID
00078 );
00079 virtual void mouseUpReceived(
00080 GfxWindow&,
00081 UInt32 x,
00082 UInt32 y,
00083 GfxWindow::ButtonID
00084 );
00085 virtual void mouseMoveReceived(
00086 GfxWindow&,
00087 UInt32 x,
00088 UInt32 y
00089 );
00090 virtual void windowResized(
00091 GfxWindow&,
00092 UInt32 viewportX, UInt32 viewportY,
00093 UInt32 viewportWidth, UInt32 viewportHeight
00094 );
00095
00096
00097
00098
00099 virtual void uiReceived(
00100 GfxWindow&, UInt32 uid
00101 );
00102
00103 };
00104 #endif