blob: 6a689dab985f43cdff377dcce0b8749604498646 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/**
* @file llstyle.h
* @brief Text style class
*
* Copyright (c) 2001-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_LLSTYLE_H
#define LL_LLSTYLE_H
#include "v4color.h"
#include "llresmgr.h"
#include "llfont.h"
#include "llimagegl.h"
class LLStyle
{
public:
LLStyle();
LLStyle(const LLStyle &style);
LLStyle(BOOL is_visible, const LLColor4 &color, const LLString& font_name);
LLStyle &operator=(const LLStyle &rhs);
virtual ~LLStyle();
virtual void init (BOOL is_visible, const LLColor4 &color, const LLString& font_name);
virtual void free ();
bool operator==(const LLStyle &rhs) const;
bool operator!=(const LLStyle &rhs) const;
virtual const LLColor4& getColor() const;
virtual void setColor(const LLColor4 &color);
virtual BOOL isVisible() const;
virtual void setVisible(BOOL is_visible);
virtual const LLString& getFontString() const;
virtual void setFontName(const LLString& fontname);
virtual LLFONT_ID getFontID() const;
virtual const LLString& getLinkHREF() const;
virtual void setLinkHREF(const LLString& fontname);
virtual BOOL isLink() const;
virtual LLImageGL *getImage() const;
virtual void setImage(const LLString& src);
virtual BOOL isImage() const;
virtual void setImageSize(S32 width, S32 height);
BOOL getIsEmbeddedItem() const { return mIsEmbeddedItem; }
void setIsEmbeddedItem( BOOL b ) { mIsEmbeddedItem = b; }
public:
BOOL mItalic;
BOOL mBold;
BOOL mUnderline;
BOOL mDropShadow;
S32 mImageWidth;
S32 mImageHeight;
protected:
BOOL mVisible;
LLColor4 mColor;
LLString mFontName;
LLFONT_ID mFontID;
LLString mLink;
LLPointer<LLImageGL> mImagep;
BOOL mIsEmbeddedItem;
};
#endif // LL_LLSTYLE_H
|