aboutsummaryrefslogtreecommitdiff
path: root/src/Texture.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-26 15:57:11 (GMT)
committerfluxgen <fluxgen>2002-11-26 15:57:11 (GMT)
commitb5acf3a78f51e9fb1503f82e2235d98694328a67 (patch)
treea003883b85909bc1e1d20d30e1e2d98f8df6e470 /src/Texture.hh
parentfe2e6b32e7fd285a32d5210220e18da9abb7732f (diff)
downloadfluxbox_pavel-b5acf3a78f51e9fb1503f82e2235d98694328a67.zip
fluxbox_pavel-b5acf3a78f51e9fb1503f82e2235d98694328a67.tar.bz2
moved to FbTk
Diffstat (limited to 'src/Texture.hh')
-rw-r--r--src/Texture.hh97
1 files changed, 0 insertions, 97 deletions
diff --git a/src/Texture.hh b/src/Texture.hh
deleted file mode 100644
index 78356d0..0000000
--- a/src/Texture.hh
+++ /dev/null
@@ -1,97 +0,0 @@
1// Texture.hh for Fluxbox Window Manager
2// Copyright (c) 2002 Henrik Kinnunen (fluxbox@linuxmail.org)
3//
4// from Image.hh for Blackbox - an X11 Window manager
5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
6//
7// Permission is hereby granted, free of charge, to any person obtaining a
8// copy of this software and associated documentation files (the "Software"),
9// to deal in the Software without restriction, including without limitation
10// the rights to use, copy, modify, merge, publish, distribute, sublicense,
11// and/or sell copies of the Software, and to permit persons to whom the
12// Software is furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE.
24
25// $Id: Texture.hh,v 1.2 2002/09/14 23:23:23 fluxgen Exp $
26
27#ifndef FBTK_TEXTURE_HH
28#define FBTK_TEXTURE_HH
29
30#include "Color.hh"
31
32namespace FbTk {
33
34/**
35 Holds texture type and info
36*/
37class Texture {
38public:
39
40 enum Bevel {
41 FLAT = 0x00002,
42 SUNKEN = 0x00004,
43 RAISED = 0x00008
44 };
45
46 enum Textures {
47 NONE = 0x00000,
48 SOLID = 0x00010,
49 GRADIENT = 0x00020
50 };
51
52 enum Gradients {
53 HORIZONTAL = 0x00040,
54 VERTICAL = 0x00080,
55 DIAGONAL = 0x00100,
56 CROSSDIAGONAL = 0x00200,
57 RECTANGLE = 0x00400,
58 PYRAMID = 0x00800,
59 PIPECROSS = 0x01000,
60 ELLIPTIC = 0x02000
61 };
62
63 enum {
64 BEVEL1 = 0x04000,
65 BEVEL2 = 0x08000, // bevel types
66 INVERT = 0x010000, //inverted image
67 PARENTRELATIVE = 0x20000,
68 INTERLACED = 0x40000
69 };
70
71 Texture():m_type(0) { }
72
73 void setType(unsigned long t) { m_type = t; }
74 void addType(unsigned long t) { m_type |= t; }
75 void setFromString(const char * const str);
76
77 Color &color() { return m_color; }
78 Color &colorTo() { return m_color_to; }
79 Color &hiColor() { return m_hicolor; }
80 Color &loColor() { return m_locolor; }
81
82 const Color &color() const { return m_color; }
83 const Color &colorTo() const { return m_color_to; }
84 const Color &hiColor() const { return m_hicolor; }
85 const Color &loColor() const { return m_locolor; }
86
87 inline unsigned long type() const { return m_type; }
88
89
90private:
91 FbTk::Color m_color, m_color_to, m_hicolor, m_locolor;
92 unsigned long m_type;
93};
94
95}; // end namespace FbTk
96
97#endif // FBTK_TEXTURE_HH