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, const LLCoordScreen &size, BOOL disable_vsync, const LLCoordScreen * const posp = NULL) {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 void setFSAASamples(const U32 fsaa_samples) { }
00073 U32 getFSAASamples() { return 0; }
00074 BOOL restoreGamma() {return FALSE; };
00075
00076 void gatherInput() {};
00077 void delayInputProcessing() {};
00078 void swapBuffers();
00079
00080 LLString getTempFileName() {return LLString(""); };
00081 void deleteFile( const char* file_name ) {};
00082 S32 stat( const char* file_name, struct stat* stat_info ) {return 0; };
00083 BOOL sendEmail(const char* address,const char* subject,const char* body_text,const char* attachment=NULL, const char* attachment_displayed_name=NULL) { return FALSE; };
00084
00085
00086
00087 BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to) { return FALSE; };
00088 BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to) { return FALSE; };
00089 BOOL convertCoords(LLCoordWindow from, LLCoordGL *to) { return FALSE; };
00090 BOOL convertCoords(LLCoordGL from, LLCoordWindow *to) { return FALSE; };
00091 BOOL convertCoords(LLCoordScreen from, LLCoordGL *to) { return FALSE; };
00092 BOOL convertCoords(LLCoordGL from, LLCoordScreen *to) { return FALSE; };
00093
00094 LLWindowResolution* getSupportedResolutions(S32 &num_resolutions) { return NULL; };
00095 F32 getNativeAspectRatio() { return 1.0f; };
00096 F32 getPixelAspectRatio() { return 1.0f; };
00097 void setNativeAspectRatio(F32 ratio) {}
00098
00099 void *getPlatformWindow() { return 0; };
00100 void bringToFront() {};
00101
00102 LLWindowHeadless(char *title, char *name, S32 x, S32 y, S32 width, S32 height,
00103 U32 flags, BOOL fullscreen, BOOL clearBg,
00104 BOOL disable_vsync, BOOL use_gl, BOOL ignore_pixel_depth);
00105 virtual ~LLWindowHeadless();
00106
00107 private:
00108 };
00109
00110 class LLSplashScreenHeadless : public LLSplashScreen
00111 {
00112 public:
00113 LLSplashScreenHeadless() {};
00114 virtual ~LLSplashScreenHeadless() {};
00115
00116 void showImpl() {};
00117 void updateImpl(const char* mesg) {};
00118 void hideImpl() {};
00119
00120 };
00121
00122 #endif //LL_LLWINDOWHEADLESS_H
00123