]> icculus.org git repositories - dana/openbox.git/blob - otk/application.hh
only store what we need to in the class
[dana/openbox.git] / otk / application.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __application_hh
3 #define __application_hh
4
5 #include "eventdispatcher.hh"
6 #include "display.hh"
7
8 namespace otk {
9
10 class AppWidget;
11
12 class Application : public EventDispatcher {
13
14 public:
15
16   Application(int argc, char **argv);
17   virtual ~Application();
18
19   inline int screen() const { return _screen; }
20   
21   virtual void run(void);
22   // more bummy cool functionality
23
24   void setDockable(bool dockable) { _dockable = dockable; }
25   inline bool isDockable(void) const { return _dockable; }
26
27 private:
28   void loadStyle(void);
29
30   Display _display;
31   int _screen;
32   bool _dockable;
33
34   int _appwidget_count;
35
36   friend class AppWidget;
37 };
38
39 }
40
41 #endif