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, const LLCoordScreen &size, BOOL disable_vsync, const LLCoordScreen * const posp = NULL) {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*/ void setFSAASamples(const U32 fsaa_samples) { }
00073         /*virtual*/ U32 getFSAASamples() { return 0; }
00074         /*virtual*/ BOOL restoreGamma() {return FALSE; };       // Restore original gamma table (before updating gamma)
00075         //virtual ESwapMethod getSwapMethod() { return mSwapMethod; }
00076         /*virtual*/ void gatherInput() {};
00077         /*virtual*/ void delayInputProcessing() {};
00078         /*virtual*/ void swapBuffers();
00079 
00080         /*virtual*/ LLString getTempFileName() {return LLString(""); };
00081         /*virtual*/ void deleteFile( const char* file_name ) {};
00082         /*virtual*/ S32 stat( const char* file_name, struct stat* stat_info ) {return 0; };
00083         /*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; };
00084 
00085 
00086         // handy coordinate space conversion routines
00087         /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to) { return FALSE; };
00088         /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to) { return FALSE; };
00089         /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordGL *to) { return FALSE; };
00090         /*virtual*/ BOOL convertCoords(LLCoordGL from, LLCoordWindow *to) { return FALSE; };
00091         /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordGL *to) { return FALSE; };
00092         /*virtual*/ BOOL convertCoords(LLCoordGL from, LLCoordScreen *to) { return FALSE; };
00093 
00094         /*virtual*/ LLWindowResolution* getSupportedResolutions(S32 &num_resolutions) { return NULL; };
00095         /*virtual*/ F32 getNativeAspectRatio() { return 1.0f; };
00096         /*virtual*/ F32 getPixelAspectRatio() { return 1.0f; };
00097         /*virtual*/ void setNativeAspectRatio(F32 ratio) {}
00098 
00099         /*virtual*/ void *getPlatformWindow() { return 0; };
00100         /*virtual*/ 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         /*virtual*/ void showImpl() {};
00117         /*virtual*/ void updateImpl(const char* mesg) {};
00118         /*virtual*/ void hideImpl() {};
00119 
00120 };
00121 
00122 #endif //LL_LLWINDOWHEADLESS_H
00123 

Generated on Fri May 16 08:33:03 2008 for SecondLife by  doxygen 1.5.5