summaryrefslogtreecommitdiff
path: root/indra/llui/llstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llstyle.cpp')
-rw-r--r--indra/llui/llstyle.cpp25
1 files changed, 21 insertions, 4 deletions
diff --git a/indra/llui/llstyle.cpp b/indra/llui/llstyle.cpp
index df4b0ef6a0..f1d57a2273 100644
--- a/indra/llui/llstyle.cpp
+++ b/indra/llui/llstyle.cpp
@@ -43,8 +43,8 @@ LLStyle::Params::Params()
image("image"),
link_href("href"),
is_link("is_link")
-{}
-
+{
+}
LLStyle::LLStyle(const LLStyle::Params& p)
: mVisible(p.visible),
@@ -57,14 +57,31 @@ LLStyle::LLStyle(const LLStyle::Params& p)
mDropShadow(p.drop_shadow),
mImagep(p.image()),
mAlpha(p.alpha)
-{}
+{
+}
+
+LLStyle* LLStyle::makeCopy() const
+{
+ LLStyle* copy = new LLStyle();
+ copy->mDropShadow = mDropShadow;
+ copy->mFontName = mFontName;
+ copy->mLink = mLink;
+ copy->mColor = mColor;
+ copy->mReadOnlyColor = mReadOnlyColor;
+ copy->mSelectedColor = mSelectedColor;
+ copy->mFont = mFont;
+ copy->mImagep = mImagep;
+ copy->mAlpha = mAlpha;
+ copy->mVisible = mVisible;
+ copy->mIsLink = mIsLink;
+ return copy;
+}
void LLStyle::setFont(const LLFontGL* font)
{
mFont = font;
}
-
const LLFontGL* LLStyle::getFont() const
{
return mFont;