aboutsummaryrefslogtreecommitdiff
path: root/src/Texture.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-09-14 23:23:23 (GMT)
committerfluxgen <fluxgen>2002-09-14 23:23:23 (GMT)
commit49c4c3abc9315514da075f55926c35b9c0514970 (patch)
tree85885b70427e8cc04b263657669f140cc5ef898c /src/Texture.hh
parent38abdfe2561906487159dbede667790b7f7cb1f7 (diff)
downloadfluxbox_pavel-49c4c3abc9315514da075f55926c35b9c0514970.zip
fluxbox_pavel-49c4c3abc9315514da075f55926c35b9c0514970.tar.bz2
setFromString
Diffstat (limited to 'src/Texture.hh')
-rw-r--r--src/Texture.hh26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/Texture.hh b/src/Texture.hh
index a091fbd..78356d0 100644
--- a/src/Texture.hh
+++ b/src/Texture.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Texture.hh,v 1.1 2002/07/23 16:23:15 fluxgen Exp $ 25// $Id: Texture.hh,v 1.2 2002/09/14 23:23:23 fluxgen Exp $
26 26
27#ifndef FBTK_TEXTURE_HH 27#ifndef FBTK_TEXTURE_HH
28#define FBTK_TEXTURE_HH 28#define FBTK_TEXTURE_HH
@@ -36,16 +36,19 @@ namespace FbTk {
36*/ 36*/
37class Texture { 37class Texture {
38public: 38public:
39
39 enum Bevel { 40 enum Bevel {
40 FLAT = 0x00002, 41 FLAT = 0x00002,
41 SUNKEN = 0x00004, 42 SUNKEN = 0x00004,
42 RAISED = 0x00008 43 RAISED = 0x00008
43 }; 44 };
45
44 enum Textures { 46 enum Textures {
45 NONE = 0x00000, 47 NONE = 0x00000,
46 SOLID = 0x00010, 48 SOLID = 0x00010,
47 GRADIENT = 0x00020 49 GRADIENT = 0x00020
48 }; 50 };
51
49 enum Gradients { 52 enum Gradients {
50 HORIZONTAL = 0x00040, 53 HORIZONTAL = 0x00040,
51 VERTICAL = 0x00080, 54 VERTICAL = 0x00080,
@@ -67,18 +70,19 @@ public:
67 70
68 Texture():m_type(0) { } 71 Texture():m_type(0) { }
69 72
70 inline void setType(unsigned long t) { m_type = t; } 73 void setType(unsigned long t) { m_type = t; }
71 inline void addType(unsigned long t) { m_type |= t; } 74 void addType(unsigned long t) { m_type |= t; }
75 void setFromString(const char * const str);
72 76
73 inline Color &color() { return m_color; } 77 Color &color() { return m_color; }
74 inline Color &colorTo() { return m_color_to; } 78 Color &colorTo() { return m_color_to; }
75 inline Color &hiColor() { return m_hicolor; } 79 Color &hiColor() { return m_hicolor; }
76 inline Color &loColor() { return m_locolor; } 80 Color &loColor() { return m_locolor; }
77 81
78 inline const Color &color() const { return m_color; } 82 const Color &color() const { return m_color; }
79 inline const Color &colorTo() const { return m_color_to; } 83 const Color &colorTo() const { return m_color_to; }
80 inline const Color &hiColor() const { return m_hicolor; } 84 const Color &hiColor() const { return m_hicolor; }
81 inline const Color &loColor() const { return m_locolor; } 85 const Color &loColor() const { return m_locolor; }
82 86
83 inline unsigned long type() const { return m_type; } 87 inline unsigned long type() const { return m_type; }
84 88