1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
11 // update the enum in openbox.i to match this one
32 OBWidget(WidgetType type) : _type(type) {}
34 inline WidgetType type() const { return _type; }
36 inline MouseContext mcontext() const {
48 case Type_MaximizeButton:
49 return MC_MaximizeButton;
50 case Type_CloseButton:
51 return MC_CloseButton;
52 case Type_IconifyButton:
53 return MC_IconifyButton;
54 case Type_StickyButton:
55 return MC_StickyButton;
65 assert(false); // unhandled type
72 #endif // __obwidget_hh