fluxbox/src/ToolbarTheme.hh

61 lines
2.1 KiB
C++
Raw Normal View History

2002-12-02 19:56:38 +00:00
// ToolbarTheme.hh a theme class for Toolbar
2006-02-16 06:53:05 +00:00
// Copyright (c) 2002 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org)
2002-12-02 19:56:38 +00:00
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// 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.
2004-11-19 11:37:27 +00:00
// $Id$
2002-12-02 19:56:38 +00:00
#ifndef TOOLBARTHEME_HH
#define TOOLBARTHEME_HH
#include "FbTk/Theme.hh"
2003-10-13 23:47:38 +00:00
#include "FbTk/Texture.hh"
#include "FbTk/Color.hh"
2003-08-13 15:12:39 +00:00
#include "BorderTheme.hh"
2003-02-15 01:59:00 +00:00
/// toolbar theme class container
2002-12-02 19:56:38 +00:00
class ToolbarTheme: public FbTk::Theme {
public:
explicit ToolbarTheme(int screen_num);
virtual ~ToolbarTheme();
void reconfigTheme();
2003-08-13 09:53:46 +00:00
2003-08-13 15:12:39 +00:00
inline const BorderTheme &border() const { return m_border; }
inline const FbTk::Texture &toolbar() const { return *m_toolbar; }
2003-02-15 01:59:00 +00:00
bool fallback(FbTk::ThemeItem_base &item);
2003-07-10 12:00:09 +00:00
inline int bevelWidth() const { return *m_bevel_width; }
inline bool shape() const { return *m_shape; }
2003-08-27 20:13:32 +00:00
inline int height() const { return *m_height; }
2003-10-13 23:47:38 +00:00
inline int buttonSize() const { return *m_button_size; }
2002-12-02 19:56:38 +00:00
private:
2003-08-13 15:12:39 +00:00
FbTk::ThemeItem<FbTk::Texture> m_toolbar;
BorderTheme m_border;
2003-06-24 16:26:56 +00:00
2003-08-13 15:12:39 +00:00
FbTk::ThemeItem<int> m_bevel_width;
2003-07-10 12:00:09 +00:00
FbTk::ThemeItem<bool> m_shape;
FbTk::ThemeItem<int> m_height, m_button_size;
2002-12-02 19:56:38 +00:00
};
#endif // TOOLBARTHEME_HH