diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/llui.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llui/llui.h')
-rw-r--r-- | linden/indra/llui/llui.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/llui/llui.h b/linden/indra/llui/llui.h index 0b06913..4c1bb22 100644 --- a/linden/indra/llui/llui.h +++ b/linden/indra/llui/llui.h | |||
@@ -56,7 +56,7 @@ class LLUIImage; | |||
56 | 56 | ||
57 | // UI colors | 57 | // UI colors |
58 | extern const LLColor4 UI_VERTEX_COLOR; | 58 | extern const LLColor4 UI_VERTEX_COLOR; |
59 | void make_ui_sound(const LLString& name); | 59 | void make_ui_sound(const char* name); |
60 | 60 | ||
61 | BOOL ui_point_in_rect(S32 x, S32 y, S32 left, S32 top, S32 right, S32 bottom); | 61 | BOOL ui_point_in_rect(S32 x, S32 y, S32 left, S32 top, S32 right, S32 bottom); |
62 | void gl_state_for_2d(S32 width, S32 height); | 62 | void gl_state_for_2d(S32 width, S32 height); |
@@ -144,7 +144,7 @@ inline void gl_rect_2d_offset_local( const LLRect& rect, S32 pixel_offset, BOOL | |||
144 | // void init_tr(); | 144 | // void init_tr(); |
145 | 145 | ||
146 | // Returns a string from the string table in the correct language | 146 | // Returns a string from the string table in the correct language |
147 | // LLString tr(const LLString& english_chars); | 147 | // std::string tr(const std::string& english_chars); |
148 | 148 | ||
149 | // Used to hide the flashing text cursor when window doesn't have focus. | 149 | // Used to hide the flashing text cursor when window doesn't have focus. |
150 | extern BOOL gShowTextEditCursor; | 150 | extern BOOL gShowTextEditCursor; |
@@ -164,7 +164,7 @@ public: | |||
164 | LLImageProviderInterface* image_provider, | 164 | LLImageProviderInterface* image_provider, |
165 | LLUIAudioCallback audio_callback = NULL, | 165 | LLUIAudioCallback audio_callback = NULL, |
166 | const LLVector2 *scale_factor = NULL, | 166 | const LLVector2 *scale_factor = NULL, |
167 | const LLString& language = LLString::null); | 167 | const std::string& language = LLStringUtil::null); |
168 | static void cleanupClass(); | 168 | static void cleanupClass(); |
169 | 169 | ||
170 | static void pushMatrix(); | 170 | static void pushMatrix(); |
@@ -173,12 +173,12 @@ public: | |||
173 | static void translate(F32 x, F32 y, F32 z = 0.0f); | 173 | static void translate(F32 x, F32 y, F32 z = 0.0f); |
174 | 174 | ||
175 | //helper functions (should probably move free standing rendering helper functions here) | 175 | //helper functions (should probably move free standing rendering helper functions here) |
176 | static LLString locateSkin(const LLString& filename); | 176 | static std::string locateSkin(const std::string& filename); |
177 | static void setCursorPositionScreen(S32 x, S32 y); | 177 | static void setCursorPositionScreen(S32 x, S32 y); |
178 | static void setCursorPositionLocal(const LLView* viewp, S32 x, S32 y); | 178 | static void setCursorPositionLocal(const LLView* viewp, S32 x, S32 y); |
179 | static void setScaleFactor(const LLVector2& scale_factor); | 179 | static void setScaleFactor(const LLVector2& scale_factor); |
180 | static void setLineWidth(F32 width); | 180 | static void setLineWidth(F32 width); |
181 | static LLUIImage* getUIImage(const LLString& name); | 181 | static LLUIImage* getUIImage(const std::string& name); |
182 | static LLVector2 getWindowSize(); | 182 | static LLVector2 getWindowSize(); |
183 | static void screenPointToGL(S32 screen_x, S32 screen_y, S32 *gl_x, S32 *gl_y); | 183 | static void screenPointToGL(S32 screen_x, S32 screen_y, S32 *gl_x, S32 *gl_y); |
184 | static void glPointToScreen(S32 gl_x, S32 gl_y, S32 *screen_x, S32 *screen_y); | 184 | static void glPointToScreen(S32 gl_x, S32 gl_y, S32 *screen_x, S32 *screen_y); |
@@ -411,7 +411,7 @@ public: | |||
411 | class LLUIImage : public LLRefCount | 411 | class LLUIImage : public LLRefCount |
412 | { | 412 | { |
413 | public: | 413 | public: |
414 | LLUIImage(const LLString& name, LLPointer<LLImageGL> image); | 414 | LLUIImage(const std::string& name, LLPointer<LLImageGL> image); |
415 | 415 | ||
416 | void setClipRegion(const LLRectf& region); | 416 | void setClipRegion(const LLRectf& region); |
417 | void setScaleRegion(const LLRectf& region); | 417 | void setScaleRegion(const LLRectf& region); |
@@ -431,7 +431,7 @@ public: | |||
431 | void drawBorder(const LLRect& rect, const LLColor4& color, S32 border_width) const { drawBorder(rect.mLeft, rect.mBottom, rect.getWidth(), rect.getHeight(), color, border_width); } | 431 | void drawBorder(const LLRect& rect, const LLColor4& color, S32 border_width) const { drawBorder(rect.mLeft, rect.mBottom, rect.getWidth(), rect.getHeight(), color, border_width); } |
432 | void drawBorder(S32 x, S32 y, const LLColor4& color, S32 border_width) const { drawBorder(x, y, mImage->getWidth(0), mImage->getHeight(0), color, border_width); } | 432 | void drawBorder(S32 x, S32 y, const LLColor4& color, S32 border_width) const { drawBorder(x, y, mImage->getWidth(0), mImage->getHeight(0), color, border_width); } |
433 | 433 | ||
434 | const LLString& getName() const { return mName; } | 434 | const std::string& getName() const { return mName; } |
435 | 435 | ||
436 | S32 getWidth() const; | 436 | S32 getWidth() const; |
437 | S32 getHeight() const; | 437 | S32 getHeight() const; |
@@ -441,7 +441,7 @@ public: | |||
441 | S32 getTextureHeight() const; | 441 | S32 getTextureHeight() const; |
442 | 442 | ||
443 | protected: | 443 | protected: |
444 | LLString mName; | 444 | std::string mName; |
445 | LLRectf mScaleRegion; | 445 | LLRectf mScaleRegion; |
446 | LLRectf mClipRegion; | 446 | LLRectf mClipRegion; |
447 | LLPointer<LLImageGL> mImage; | 447 | LLPointer<LLImageGL> mImage; |
@@ -592,7 +592,7 @@ public: | |||
592 | LLImageProviderInterface() {}; | 592 | LLImageProviderInterface() {}; |
593 | virtual ~LLImageProviderInterface() {}; | 593 | virtual ~LLImageProviderInterface() {}; |
594 | 594 | ||
595 | virtual LLUIImagePtr getUIImage(const LLString& name) = 0; | 595 | virtual LLUIImagePtr getUIImage(const std::string& name) = 0; |
596 | virtual LLUIImagePtr getUIImageByID(const LLUUID& id) = 0; | 596 | virtual LLUIImagePtr getUIImageByID(const LLUUID& id) = 0; |
597 | virtual void cleanUp() = 0; | 597 | virtual void cleanUp() = 0; |
598 | }; | 598 | }; |