]>
Dogcows Code - chaz/openbox/blob - src/widgetbase.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __widgetbase_hh
3 #define __widgetbase_hh
31 WidgetBase(WidgetType type
) : _type(type
) {}
33 inline WidgetType
type() const { return _type
; }
35 inline MouseContext
mcontext() const {
47 case Type_MaximizeButton
:
48 return MC_MaximizeButton
;
49 case Type_CloseButton
:
50 return MC_CloseButton
;
51 case Type_IconifyButton
:
52 return MC_IconifyButton
;
53 case Type_StickyButton
:
54 return MC_StickyButton
;
64 assert(false); // unhandled type
71 #endif // __widgetbase_hh
This page took 0.043317 seconds and 4 git commands to generate.