ede/pekwm/StatusWindow.hh

49 lines
1008 B
C++
Raw Normal View History

//
// StatusWindow.hh for pekwm
// Copyright © 2004-2009 Claes Nasten <me@pekdon.net>
//
// This program is licensed under the GNU GPL.
// See the LICENSE file for more information.
//
#ifndef _STATUS_WINDOW_HH_
#define _STATUS_WINDOW_HH_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // HAVE_CONFIG_H
#include "pekwm.hh"
class PDecor;
//! @brief Status display window.
class StatusWindow : public PDecor {
public:
StatusWindow(Theme *theme);
virtual ~StatusWindow(void);
//! @brief Returns the StatusWindow instance pointer.
static StatusWindow *instance(void) { return _instance; }
void draw(const std::wstring &text, bool do_center = false, Geometry *gm = 0);
private:
// BEGIN - PDecor interface
virtual void loadTheme(void);
// END - PDecor interface
void unloadTheme(void);
void render(void);
void center(Geometry *gm = 0);
private:
PWinObj *_status_wo;
Pixmap _bg;
static StatusWindow *_instance;
};
#endif // _STATUS_WINDOW_HH_