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/llui/llstyle.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 '')
-rw-r--r-- | linden/indra/llui/llstyle.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/linden/indra/llui/llstyle.h b/linden/indra/llui/llstyle.h new file mode 100644 index 0000000..424db40 --- /dev/null +++ b/linden/indra/llui/llstyle.h | |||
@@ -0,0 +1,94 @@ | |||
1 | /** | ||
2 | * @file llstyle.h | ||
3 | * @brief Text style 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_LLSTYLE_H | ||
29 | #define LL_LLSTYLE_H | ||
30 | |||
31 | #include "v4color.h" | ||
32 | #include "llresmgr.h" | ||
33 | #include "llfont.h" | ||
34 | #include "llimagegl.h" | ||
35 | |||
36 | class LLStyle | ||
37 | { | ||
38 | public: | ||
39 | LLStyle(); | ||
40 | LLStyle(const LLStyle &style); | ||
41 | LLStyle(BOOL is_visible, const LLColor4 &color, const LLString& font_name); | ||
42 | |||
43 | LLStyle &operator=(const LLStyle &rhs); | ||
44 | |||
45 | virtual ~LLStyle(); | ||
46 | |||
47 | virtual void init (BOOL is_visible, const LLColor4 &color, const LLString& font_name); | ||
48 | virtual void free (); | ||
49 | |||
50 | bool operator==(const LLStyle &rhs) const; | ||
51 | bool operator!=(const LLStyle &rhs) const; | ||
52 | |||
53 | virtual const LLColor4& getColor() const; | ||
54 | virtual void setColor(const LLColor4 &color); | ||
55 | |||
56 | virtual BOOL isVisible() const; | ||
57 | virtual void setVisible(BOOL is_visible); | ||
58 | |||
59 | virtual const LLString& getFontString() const; | ||
60 | virtual void setFontName(const LLString& fontname); | ||
61 | virtual LLFONT_ID getFontID() const; | ||
62 | |||
63 | virtual const LLString& getLinkHREF() const; | ||
64 | virtual void setLinkHREF(const LLString& fontname); | ||
65 | virtual BOOL isLink() const; | ||
66 | |||
67 | virtual LLImageGL *getImage() const; | ||
68 | virtual void setImage(const LLString& src); | ||
69 | virtual BOOL isImage() const; | ||
70 | virtual void setImageSize(S32 width, S32 height); | ||
71 | |||
72 | BOOL getIsEmbeddedItem() const { return mIsEmbeddedItem; } | ||
73 | void setIsEmbeddedItem( BOOL b ) { mIsEmbeddedItem = b; } | ||
74 | |||
75 | public: | ||
76 | BOOL mItalic; | ||
77 | BOOL mBold; | ||
78 | BOOL mUnderline; | ||
79 | BOOL mDropShadow; | ||
80 | S32 mImageWidth; | ||
81 | S32 mImageHeight; | ||
82 | |||
83 | protected: | ||
84 | BOOL mVisible; | ||
85 | LLColor4 mColor; | ||
86 | LLString mFontName; | ||
87 | LLFONT_ID mFontID; | ||
88 | LLString mLink; | ||
89 | LLPointer<LLImageGL> mImagep; | ||
90 | |||
91 | BOOL mIsEmbeddedItem; | ||
92 | }; | ||
93 | |||
94 | #endif // LL_LLSTYLE_H | ||