]>
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
20 Type_AllDesktopsButton
,
31 WidgetBase(WidgetType type
) : _type(type
) {}
33 inline WidgetType
type() const { return _type
; }
35 inline MouseContext::MC
mcontext() const {
38 return MouseContext::Frame
;
40 return MouseContext::Titlebar
;
42 return MouseContext::Handle
;
44 return MouseContext::Window
;
46 return MouseContext::Titlebar
;
47 case Type_MaximizeButton
:
48 return MouseContext::MaximizeButton
;
49 case Type_CloseButton
:
50 return MouseContext::CloseButton
;
51 case Type_IconifyButton
:
52 return MouseContext::IconifyButton
;
53 case Type_AllDesktopsButton
:
54 return MouseContext::AllDesktopsButton
;
56 return MouseContext::Grip
;
58 return MouseContext::Grip
;
60 return MouseContext::Window
;
62 return MouseContext::Root
;
64 assert(false); // unhandled type
71 #endif // __widgetbase_hh
This page took 0.037517 seconds and 4 git commands to generate.