openbox/otk/application.hh
Dana Jansens 99cd843fc6 Brand spankin new widgets for otk (Label and Button).
Add a new Size class.
Rect, Point, and Size are immutable classes.
Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that.
2003-02-08 07:33:48 +00:00

41 lines
709 B
C++

// -*- 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