diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llwindow/llwindowlinux.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llwindow/llwindowlinux.h')
-rw-r--r-- | linden/indra/llwindow/llwindowlinux.h | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llwindowlinux.h b/linden/indra/llwindow/llwindowlinux.h new file mode 100644 index 0000000..9550cdd --- /dev/null +++ b/linden/indra/llwindow/llwindowlinux.h | |||
@@ -0,0 +1,115 @@ | |||
1 | /** | ||
2 | * @file llwindowlinux.h | ||
3 | * @brief Linux implementation 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_LLWINDOWWIN32_H | ||
29 | #define LL_LLWINDOWWIN32_H | ||
30 | |||
31 | #include "llwindow.h" | ||
32 | |||
33 | class LLWindowLinux : 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 BOOL dialog_color_picker (F32 *r, F32 *g, F32 *b ); | ||
94 | |||
95 | /*virtual*/ void *getPlatformWindow() { return NULL; } | ||
96 | |||
97 | LLWindowLinux(char *title, char *name, S32 x, S32 y, S32 width, S32 height, | ||
98 | U32 flags, BOOL fullscreen, BOOL clearBg, | ||
99 | BOOL disable_vsync, BOOL use_gl, BOOL ignore_pixel_depth); | ||
100 | ~LLWindowLinux(); | ||
101 | }; | ||
102 | |||
103 | class LLSplashScreenLinux : public LLSplashScreen | ||
104 | { | ||
105 | public: | ||
106 | LLSplashScreenLinux() {}; | ||
107 | virtual ~LLSplashScreenLinux() {}; | ||
108 | |||
109 | /*virtual*/ void showImpl() {}; | ||
110 | /*virtual*/ void updateImpl(const char* mesg) {}; | ||
111 | /*virtual*/ void hideImpl() {}; | ||
112 | |||
113 | }; | ||
114 | |||
115 | #endif //LL_LLWINDOWWIN32_H | ||