all repos — openbox @ 6b1381d69daf7c325d4a8165a8b0006d0dce85a5

openbox fork - make it a bit more like ryudo

otk/application.hh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef __application_hh
#define __application_hh

#include "eventdispatcher.hh"
#include "display.hh"

namespace otk {

class AppWidget;

class Application : public EventDispatcher {

public:

  Application(int argc, char **argv);
  virtual ~Application();

  inline int screen() const { return _screen; }
  
  virtual void run(void);
  // more bummy cool functionality

  void setDockable(bool dockable) { _dockable = dockable; }
  inline bool isDockable(void) const { return _dockable; }

private:
  void loadStyle(void);

  Display _display;
  int _screen;
  bool _dockable;

  int _appwidget_count;

  friend class AppWidget;
};

}

#endif