added WinButtonTheme

This commit is contained in:
fluxgen 2003-04-28 22:39:12 +00:00
parent 64469e7982
commit a615953477
2 changed files with 6 additions and 1 deletions

View file

@ -67,6 +67,7 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \
ToolbarHandler.cc ToolbarHandler.hh \ ToolbarHandler.cc ToolbarHandler.hh \
ToolbarTheme.hh ToolbarTheme.cc \ ToolbarTheme.hh ToolbarTheme.cc \
WinButton.hh WinButton.cc \ WinButton.hh WinButton.cc \
WinButtonTheme.hh WinButtonTheme.cc \
Window.cc Window.hh \ Window.cc Window.hh \
Workspace.cc Workspace.hh \ Workspace.cc Workspace.hh \
XrmDatabaseHelper.hh FbCommands.hh FbCommands.cc LayerMenu.hh \ XrmDatabaseHelper.hh FbCommands.hh FbCommands.cc LayerMenu.hh \

View file

@ -19,12 +19,13 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
/// $Id: WinButton.hh,v 1.3 2003/04/25 17:29:58 fluxgen Exp $ /// $Id: WinButton.hh,v 1.4 2003/04/28 22:39:12 fluxgen Exp $
#include "Button.hh" #include "Button.hh"
#include "Observer.hh" #include "Observer.hh"
class FluxboxWindow; class FluxboxWindow;
class WinButtonTheme;
/// draws and handles basic window button graphic /// draws and handles basic window button graphic
class WinButton:public FbTk::Button, public FbTk::Observer { class WinButton:public FbTk::Button, public FbTk::Observer {
@ -32,6 +33,7 @@ public:
/// draw type for the button /// draw type for the button
enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE}; enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE};
WinButton(const FluxboxWindow &listen_to, WinButton(const FluxboxWindow &listen_to,
WinButtonTheme &theme,
Type buttontype, const FbTk::FbWindow &parent, int x, int y, Type buttontype, const FbTk::FbWindow &parent, int x, int y,
unsigned int width, unsigned int height); unsigned int width, unsigned int height);
/// override for drawing /// override for drawing
@ -44,4 +46,6 @@ private:
void drawType(); void drawType();
Type m_type; ///< the button type Type m_type; ///< the button type
const FluxboxWindow &m_listen_to; const FluxboxWindow &m_listen_to;
WinButtonTheme &m_theme;
}; };