aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llstyle.cpp')
-rw-r--r--linden/indra/llui/llstyle.cpp32
1 files changed, 27 insertions, 5 deletions
diff --git a/linden/indra/llui/llstyle.cpp b/linden/indra/llui/llstyle.cpp
index cdf87d3..7c46114 100644
--- a/linden/indra/llui/llstyle.cpp
+++ b/linden/indra/llui/llstyle.cpp
@@ -138,12 +138,34 @@ void LLStyle::setFontName(const LLString& fontname)
138} 138}
139 139
140 140
141void LLStyle::setImage(const LLString& src) 141void LLStyle::setLinkHREF(const LLString& href)
142{ 142{
143 if (src.size() >= UUID_STR_LENGTH - 1) 143 mLink = href;
144 { 144}
145 mImagep = LLUI::sImageProvider->getImageByID(LLUUID(src)); 145
146 } 146BOOL LLStyle::isLink() const
147{
148 return mLink.size();
149}
150
151BOOL LLStyle::isVisible() const
152{
153 return mVisible;
154}
155
156void LLStyle::setVisible(BOOL is_visible)
157{
158 mVisible = is_visible;
159}
160
161LLUIImagePtr LLStyle::getImage() const
162{
163 return mImagep;
164}
165
166void LLStyle::setImage(const LLUUID& src)
167{
168 mImagep = LLUI::sImageProvider->getUIImageByID(src);
147} 169}
148 170
149 171