openbox/otk/application.hh

44 lines
775 B
C++
Raw Normal View History

// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2002-11-16 02:18:37 +00:00
#ifndef __application_hh
#define __application_hh
#include "eventdispatcher.hh"
#include "display.hh"
2003-01-22 22:46:16 +00:00
#include "renderstyle.hh"
2002-11-16 02:18:37 +00:00
namespace otk {
class AppWidget;
class Application : public EventDispatcher {
2002-11-16 02:18:37 +00:00
public:
Application(int argc, char **argv);
virtual ~Application();
2002-11-16 02:18:37 +00:00
2002-12-24 21:27:16 +00:00
virtual void run(void);
2002-11-16 02:18:37 +00:00
// more bummy cool functionality
void setDockable(bool dockable) { _dockable = dockable; }
inline bool isDockable(void) const { return _dockable; }
2003-01-22 22:46:16 +00:00
inline RenderStyle *getStyle(void) const { return _style; }
2002-11-16 02:18:37 +00:00
// more accessors
private:
void loadStyle(void);
Display _display;
2003-01-22 22:46:16 +00:00
RenderStyle *_style;
2002-11-16 02:18:37 +00:00
bool _dockable;
int _appwidget_count;
friend class AppWidget;
2002-11-16 02:18:37 +00:00
};
}
#endif