all repos — fluxbox @ 49c4c3abc9315514da075f55926c35b9c0514970

custom fork of the fluxbox windowmanager

setFromString
fluxgen fluxgen
commit

49c4c3abc9315514da075f55926c35b9c0514970

parent

38abdfe2561906487159dbede667790b7f7cb1f7

1 files changed, 15 insertions(+), 11 deletions(-)

jump to
M src/Texture.hhsrc/Texture.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Texture.hh,v 1.1 2002/07/23 16:23:15 fluxgen Exp $ +// $Id: Texture.hh,v 1.2 2002/09/14 23:23:23 fluxgen Exp $ #ifndef FBTK_TEXTURE_HH #define FBTK_TEXTURE_HH

@@ -36,16 +36,19 @@ Holds texture type and info

*/ class Texture { public: + enum Bevel { FLAT = 0x00002, SUNKEN = 0x00004, RAISED = 0x00008 }; + enum Textures { NONE = 0x00000, SOLID = 0x00010, GRADIENT = 0x00020 }; + enum Gradients { HORIZONTAL = 0x00040, VERTICAL = 0x00080,

@@ -67,18 +70,19 @@ };

Texture():m_type(0) { } - inline void setType(unsigned long t) { m_type = t; } - inline void addType(unsigned long t) { m_type |= t; } + void setType(unsigned long t) { m_type = t; } + void addType(unsigned long t) { m_type |= t; } + void setFromString(const char * const str); - inline Color &color() { return m_color; } - inline Color &colorTo() { return m_color_to; } - inline Color &hiColor() { return m_hicolor; } - inline Color &loColor() { return m_locolor; } + Color &color() { return m_color; } + Color &colorTo() { return m_color_to; } + Color &hiColor() { return m_hicolor; } + Color &loColor() { return m_locolor; } - inline const Color &color() const { return m_color; } - inline const Color &colorTo() const { return m_color_to; } - inline const Color &hiColor() const { return m_hicolor; } - inline const Color &loColor() const { return m_locolor; } + const Color &color() const { return m_color; } + const Color &colorTo() const { return m_color_to; } + const Color &hiColor() const { return m_hicolor; } + const Color &loColor() const { return m_locolor; } inline unsigned long type() const { return m_type; }