aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llui.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llui.h')
-rw-r--r--linden/indra/llui/llui.h18
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
58extern const LLColor4 UI_VERTEX_COLOR; 58extern const LLColor4 UI_VERTEX_COLOR;
59void make_ui_sound(const LLString& name); 59void make_ui_sound(const char* name);
60 60
61BOOL ui_point_in_rect(S32 x, S32 y, S32 left, S32 top, S32 right, S32 bottom); 61BOOL ui_point_in_rect(S32 x, S32 y, S32 left, S32 top, S32 right, S32 bottom);
62void gl_state_for_2d(S32 width, S32 height); 62void 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.
150extern BOOL gShowTextEditCursor; 150extern 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:
411class LLUIImage : public LLRefCount 411class LLUIImage : public LLRefCount
412{ 412{
413public: 413public:
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
443protected: 443protected:
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};