2002-12-18 02:28:44 +00:00
|
|
|
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
|
|
|
#ifndef __obwidget_hh
|
|
|
|
#define __obwidget_hh
|
|
|
|
|
|
|
|
namespace ob {
|
|
|
|
|
|
|
|
class OBWidget {
|
|
|
|
public:
|
|
|
|
enum WidgetType {
|
2002-12-18 11:34:29 +00:00
|
|
|
Type_Frame,
|
2002-12-18 02:28:44 +00:00
|
|
|
Type_Titlebar,
|
|
|
|
Type_Handle,
|
2002-12-18 09:46:24 +00:00
|
|
|
Type_Plate,
|
|
|
|
Type_Label,
|
|
|
|
Type_MaximizeButton,
|
|
|
|
Type_CloseButton,
|
|
|
|
Type_IconifyButton,
|
|
|
|
Type_StickyButton,
|
|
|
|
Type_LeftGrip,
|
2002-12-18 11:34:29 +00:00
|
|
|
Type_RightGrip,
|
|
|
|
Type_Client
|
2002-12-18 02:28:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
WidgetType _type;
|
|
|
|
|
|
|
|
public:
|
|
|
|
OBWidget(WidgetType type) : _type(type) {}
|
|
|
|
|
|
|
|
inline WidgetType type() const { return _type; }
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __obwidget_hh
|