llwindowheadless.h

Go to the documentation of this file.
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         /*virtual*/ void show() {};
00041         /*virtual*/ void hide() {};
00042         /*virtual*/ void close() {};
00043         /*virtual*/ BOOL getVisible() {return FALSE;};
00044         /*virtual*/ BOOL getMinimized() {return FALSE;};
00045         /*virtual*/ BOOL getMaximized() {return FALSE;};
00046         /*virtual*/ BOOL maximize() {return FALSE;};
00047         /*virtual*/ BOOL getFullscreen() {return FALSE;};
00048         /*virtual*/ BOOL getPosition(LLCoordScreen *position) {return FALSE;};
00049         /*virtual*/ BOOL getSize(LLCoordScreen *size) {return FALSE;};
00050         /*virtual*/ BOOL getSize(LLCoordWindow *size) {return FALSE;};
00051         /*virtual*/ BOOL setPosition(LLCoordScreen position) {return FALSE;};
00052         /*virtual*/ BOOL setSize(LLCoordScreen size) {return FALSE;};
00053         /*virtual*/ BOOL switchContext(BOOL fullscreen, LLCoordScreen size, BOOL disable_vsync) {return FALSE;};
00054         /*virtual*/ BOOL setCursorPosition(LLCoordWindow position) {return FALSE;};
00055         /*virtual*/ BOOL getCursorPosition(LLCoordWindow *position) {return FALSE;};
00056         /*virtual*/ void showCursor() {};
00057         /*virtual*/ void hideCursor() {};
00058         /*virtual*/ void showCursorFromMouseMove() {};
00059         /*virtual*/ void hideCursorUntilMouseMove() {};
00060         /*virtual*/ BOOL isCursorHidden() {return FALSE;};
00061         /*virtual*/ void setCursor(ECursorType cursor) {};
00062         //virtual ECursorType getCursor() { return mCurrentCursor; };
00063         /*virtual*/ void captureMouse() {};
00064         /*virtual*/ void releaseMouse() {};
00065         /*virtual*/ void setMouseClipping( BOOL b ) {};
00066         /*virtual*/ BOOL isClipboardTextAvailable() {return FALSE; };
00067         /*virtual*/ BOOL pasteTextFromClipboard(LLWString &dst) {return FALSE; };
00068         /*virtual*/ BOOL copyTextToClipboard(const LLWString &src) {return FALSE; };
00069         /*virtual*/ void flashIcon(F32 seconds) {};
00070         /*virtual*/ F32 getGamma() {return 1.0f; };
00071         /*virtual*/ BOOL setGamma(const F32 gamma) {return FALSE; }; // Set the gamma
00072         /*virtual*/ BOOL restoreGamma() {return FALSE; };       // Restore original gamma table (before updating gamma)
00073         //virtual ESwapMethod getSwapMethod() { return mSwapMethod; }
00074         /*virtual*/ void gatherInput() {};
00075         /*virtual*/ void delayInputProcessing() {};
00076         /*virtual*/ void swapBuffers();
00077 
00078         /*virtual*/ LLString getTempFileName() {return LLString(""); };
00079         /*virtual*/ void deleteFile( const char* file_name ) {};
00080         /*virtual*/ S32 stat( const char* file_name, struct stat* stat_info ) {return 0; };
00081         /*virtual*/ 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         // handy coordinate space conversion routines
00085         /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to) { return FALSE; };
00086         /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to) { return FALSE; };
00087         /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordGL *to) { return FALSE; };
00088         /*virtual*/ BOOL convertCoords(LLCoordGL from, LLCoordWindow *to) { return FALSE; };
00089         /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordGL *to) { return FALSE; };
00090         /*virtual*/ BOOL convertCoords(LLCoordGL from, LLCoordScreen *to) { return FALSE; };
00091 
00092         /*virtual*/ LLWindowResolution* getSupportedResolutions(S32 &num_resolutions) { return NULL; };
00093         /*virtual*/ F32 getNativeAspectRatio() { return 1.0f; };
00094         /*virtual*/ F32 getPixelAspectRatio() { return 1.0f; };
00095         /*virtual*/ void setNativeAspectRatio(F32 ratio) {}
00096 
00097         /*virtual*/ void *getPlatformWindow() { return 0; };
00098         /*virtual*/ 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         /*virtual*/ void showImpl() {};
00115         /*virtual*/ void updateImpl(const char* mesg) {};
00116         /*virtual*/ void hideImpl() {};
00117 
00118 };
00119 
00120 #endif //LL_LLWINDOWHEADLESS_H
00121 

Generated on Thu Jul 1 06:09:46 2010 for Second Life Viewer by  doxygen 1.4.7