diff options
Diffstat (limited to 'linden/indra/llwindow/llwindowheadless.h')
-rw-r--r-- | linden/indra/llwindow/llwindowheadless.h | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llwindowheadless.h b/linden/indra/llwindow/llwindowheadless.h new file mode 100644 index 0000000..cc7fa06 --- /dev/null +++ b/linden/indra/llwindow/llwindowheadless.h | |||
@@ -0,0 +1,117 @@ | |||
1 | /** | ||
2 | * @file llwindowheadless.h | ||
3 | * @brief Headless definition of LLWindow class | ||
4 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLWINDOWHEADLESS_H | ||
29 | #define LL_LLWINDOWHEADLESS_H | ||
30 | |||
31 | #include "llwindow.h" | ||
32 | |||
33 | class LLWindowHeadless : public LLWindow | ||
34 | { | ||
35 | public: | ||
36 | /*virtual*/ void show() {}; | ||
37 | /*virtual*/ void hide() {}; | ||
38 | /*virtual*/ void close() {}; | ||
39 | /*virtual*/ BOOL getVisible() {return FALSE;}; | ||
40 | /*virtual*/ BOOL getMinimized() {return FALSE;}; | ||
41 | /*virtual*/ BOOL getMaximized() {return FALSE;}; | ||
42 | /*virtual*/ BOOL maximize() {return FALSE;}; | ||
43 | /*virtual*/ BOOL getFullscreen() {return FALSE;}; | ||
44 | /*virtual*/ BOOL getPosition(LLCoordScreen *position) {return FALSE;}; | ||
45 | /*virtual*/ BOOL getSize(LLCoordScreen *size) {return FALSE;}; | ||
46 | /*virtual*/ BOOL getSize(LLCoordWindow *size) {return FALSE;}; | ||
47 | /*virtual*/ BOOL setPosition(LLCoordScreen position) {return FALSE;}; | ||
48 | /*virtual*/ BOOL setSize(LLCoordScreen size) {return FALSE;}; | ||
49 | /*virtual*/ BOOL switchContext(BOOL fullscreen, LLCoordScreen size, BOOL disable_vsync) {return FALSE;}; | ||
50 | /*virtual*/ BOOL setCursorPosition(LLCoordWindow position) {return FALSE;}; | ||
51 | /*virtual*/ BOOL getCursorPosition(LLCoordWindow *position) {return FALSE;}; | ||
52 | /*virtual*/ void showCursor() {}; | ||
53 | /*virtual*/ void hideCursor() {}; | ||
54 | /*virtual*/ void showCursorFromMouseMove() {}; | ||
55 | /*virtual*/ void hideCursorUntilMouseMove() {}; | ||
56 | /*virtual*/ BOOL isCursorHidden() {return FALSE;}; | ||
57 | /*virtual*/ void setCursor(ECursorType cursor) {}; | ||
58 | //virtual ECursorType getCursor() { return mCurrentCursor; }; | ||
59 | /*virtual*/ void captureMouse() {}; | ||
60 | /*virtual*/ void releaseMouse() {}; | ||
61 | /*virtual*/ void setMouseClipping( BOOL b ) {}; | ||
62 | /*virtual*/ BOOL isClipboardTextAvailable() {return FALSE; }; | ||
63 | /*virtual*/ BOOL pasteTextFromClipboard(LLWString &dst) {return FALSE; }; | ||
64 | /*virtual*/ BOOL copyTextToClipboard(const LLWString &src) {return FALSE; }; | ||
65 | /*virtual*/ void flashIcon(F32 seconds) {}; | ||
66 | /*virtual*/ F32 getGamma() {return 1.0f; }; | ||
67 | /*virtual*/ BOOL setGamma(const F32 gamma) {return FALSE; }; // Set the gamma | ||
68 | /*virtual*/ BOOL restoreGamma() {return FALSE; }; // Restore original gamma table (before updating gamma) | ||
69 | //virtual ESwapMethod getSwapMethod() { return mSwapMethod; } | ||
70 | /*virtual*/ void gatherInput() {}; | ||
71 | /*virtual*/ void delayInputProcessing() {}; | ||
72 | /*virtual*/ void swapBuffers(); | ||
73 | |||
74 | /*virtual*/ LLString getTempFileName() {return LLString(""); }; | ||
75 | /*virtual*/ void deleteFile( const char* file_name ) {}; | ||
76 | /*virtual*/ S32 stat( const char* file_name, struct stat* stat_info ) {return 0; }; | ||
77 | /*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; }; | ||
78 | |||
79 | |||
80 | // handy coordinate space conversion routines | ||
81 | /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to) { return FALSE; }; | ||
82 | /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to) { return FALSE; }; | ||
83 | /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordGL *to) { return FALSE; }; | ||
84 | /*virtual*/ BOOL convertCoords(LLCoordGL from, LLCoordWindow *to) { return FALSE; }; | ||
85 | /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordGL *to) { return FALSE; }; | ||
86 | /*virtual*/ BOOL convertCoords(LLCoordGL from, LLCoordScreen *to) { return FALSE; }; | ||
87 | |||
88 | /*virtual*/ LLWindowResolution* getSupportedResolutions(S32 &num_resolutions) { return NULL; }; | ||
89 | /*virtual*/ F32 getNativeAspectRatio() { return 1.0f; }; | ||
90 | /*virtual*/ F32 getPixelAspectRatio() { return 1.0f; }; | ||
91 | /*virtual*/ void setNativeAspectRatio(F32 ratio) {} | ||
92 | |||
93 | /*virtual*/ void *getPlatformWindow() { return 0; }; | ||
94 | /*virtual*/ void bringToFront() {}; | ||
95 | |||
96 | LLWindowHeadless(char *title, char *name, S32 x, S32 y, S32 width, S32 height, | ||
97 | U32 flags, BOOL fullscreen, BOOL clearBg, | ||
98 | BOOL disable_vsync, BOOL use_gl, BOOL ignore_pixel_depth); | ||
99 | virtual ~LLWindowHeadless(); | ||
100 | |||
101 | private: | ||
102 | }; | ||
103 | |||
104 | class LLSplashScreenHeadless : public LLSplashScreen | ||
105 | { | ||
106 | public: | ||
107 | LLSplashScreenHeadless() {}; | ||
108 | virtual ~LLSplashScreenHeadless() {}; | ||
109 | |||
110 | /*virtual*/ void showImpl() {}; | ||
111 | /*virtual*/ void updateImpl(const char* mesg) {}; | ||
112 | /*virtual*/ void hideImpl() {}; | ||
113 | |||
114 | }; | ||
115 | |||
116 | #endif //LL_LLWINDOWHEADLESS_H | ||
117 | |||