00001
00032 #ifndef LL_LLWINDOWHEADLESS_H
00033 #define LL_LLWINDOWHEADLESS_H
00034
00035 #include "llwindow.h"
00036
00037 class LLWindowHeadless : public LLWindow
00038 {
00039 public:
00040 void show() {};
00041 void hide() {};
00042 void close() {};
00043 BOOL getVisible() {return FALSE;};
00044 BOOL getMinimized() {return FALSE;};
00045 BOOL getMaximized() {return FALSE;};
00046 BOOL maximize() {return FALSE;};
00047 BOOL getFullscreen() {return FALSE;};
00048 BOOL getPosition(LLCoordScreen *position) {return FALSE;};
00049 BOOL getSize(LLCoordScreen *size) {return FALSE;};
00050 BOOL getSize(LLCoordWindow *size) {return FALSE;};
00051 BOOL setPosition(LLCoordScreen position) {return FALSE;};
00052 BOOL setSize(LLCoordScreen size) {return FALSE;};
00053 BOOL switchContext(BOOL fullscreen, LLCoordScreen size, BOOL disable_vsync) {return FALSE;};
00054 BOOL setCursorPosition(LLCoordWindow position) {return FALSE;};
00055 BOOL getCursorPosition(LLCoordWindow *position) {return FALSE;};
00056 void showCursor() {};
00057 void hideCursor() {};
00058 void showCursorFromMouseMove() {};
00059 void hideCursorUntilMouseMove() {};
00060 BOOL isCursorHidden() {return FALSE;};
00061 void setCursor(ECursorType cursor) {};
00062
00063 void captureMouse() {};
00064 void releaseMouse() {};
00065 void setMouseClipping( BOOL b ) {};
00066 BOOL isClipboardTextAvailable() {return FALSE; };
00067 BOOL pasteTextFromClipboard(LLWString &dst) {return FALSE; };
00068 BOOL copyTextToClipboard(const LLWString &src) {return FALSE; };
00069 void flashIcon(F32 seconds) {};
00070 F32 getGamma() {return 1.0f; };
00071 BOOL setGamma(const F32 gamma) {return FALSE; };
00072 BOOL restoreGamma() {return FALSE; };
00073
00074 void gatherInput() {};
00075 void delayInputProcessing() {};
00076 void swapBuffers();
00077
00078 LLString getTempFileName() {return LLString(""); };
00079 void deleteFile( const char* file_name ) {};
00080 S32 stat( const char* file_name, struct stat* stat_info ) {return 0; };
00081 BOOL sendEmail(const char* address,const char* subject,const char* body_text,const char* attachment=NULL, const char* attachment_displayed_name=NULL) { return FALSE; };
00082
00083
00084
00085 BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to) { return FALSE; };
00086 BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to) { return FALSE; };
00087 BOOL convertCoords(LLCoordWindow from, LLCoordGL *to) { return FALSE; };
00088 BOOL convertCoords(LLCoordGL from, LLCoordWindow *to) { return FALSE; };
00089 BOOL convertCoords(LLCoordScreen from, LLCoordGL *to) { return FALSE; };
00090 BOOL convertCoords(LLCoordGL from, LLCoordScreen *to) { return FALSE; };
00091
00092 LLWindowResolution* getSupportedResolutions(S32 &num_resolutions) { return NULL; };
00093 F32 getNativeAspectRatio() { return 1.0f; };
00094 F32 getPixelAspectRatio() { return 1.0f; };
00095 void setNativeAspectRatio(F32 ratio) {}
00096
00097 void *getPlatformWindow() { return 0; };
00098 void bringToFront() {};
00099
00100 LLWindowHeadless(char *title, char *name, S32 x, S32 y, S32 width, S32 height,
00101 U32 flags, BOOL fullscreen, BOOL clearBg,
00102 BOOL disable_vsync, BOOL use_gl, BOOL ignore_pixel_depth, S32 stereo_mode);
00103 virtual ~LLWindowHeadless();
00104
00105 private:
00106 };
00107
00108 class LLSplashScreenHeadless : public LLSplashScreen
00109 {
00110 public:
00111 LLSplashScreenHeadless() {};
00112 virtual ~LLSplashScreenHeadless() {};
00113
00114 void showImpl() {};
00115 void updateImpl(const char* mesg) {};
00116 void hideImpl() {};
00117
00118 };
00119
00120 #endif //LL_LLWINDOWHEADLESS_H
00121