summaryrefslogtreecommitdiff
path: root/src/widget.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-10 06:16:42 +0000
committerDana Jansens <danakj@orodu.net>2003-01-10 06:16:42 +0000
commitc8e246f8de5af9963b22cc104d22ca10772028dd (patch)
tree217eb7e90aa102fdf72bb8713fc5d30ecf4fc2f8 /src/widget.hh
parente0878c9fc2db8843891816e65917fbcfd1e94cbb (diff)
include the all otk stuff into the openbox python module. rename widget.hh to stop conflicting with the one in otk/
Diffstat (limited to 'src/widget.hh')
-rw-r--r--src/widget.hh72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/widget.hh b/src/widget.hh
deleted file mode 100644
index 85b9dcc5..00000000
--- a/src/widget.hh
+++ /dev/null
@@ -1,72 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef __obwidget_hh
-#define __obwidget_hh
-
-#include "python.hh"
-
-namespace ob {
-
-class OBWidget {
-public:
- // update the enum in openbox.i to match this one
- enum WidgetType {
- Type_Frame,
- Type_Titlebar,
- Type_Handle,
- Type_Plate,
- Type_Label,
- Type_MaximizeButton,
- Type_CloseButton,
- Type_IconifyButton,
- Type_StickyButton,
- Type_LeftGrip,
- Type_RightGrip,
- Type_Client,
- Type_Root
- };
-
-private:
- WidgetType _type;
-
-public:
- OBWidget(WidgetType type) : _type(type) {}
-
- inline WidgetType type() const { return _type; }
-
- inline MouseContext mcontext() const {
- switch (_type) {
- case Type_Frame:
- return MC_Frame;
- case Type_Titlebar:
- return MC_Titlebar;
- case Type_Handle:
- return MC_Handle;
- case Type_Plate:
- return MC_Window;
- case Type_Label:
- return MC_Titlebar;
- case Type_MaximizeButton:
- return MC_MaximizeButton;
- case Type_CloseButton:
- return MC_CloseButton;
- case Type_IconifyButton:
- return MC_IconifyButton;
- case Type_StickyButton:
- return MC_StickyButton;
- case Type_LeftGrip:
- return MC_Grip;
- case Type_RightGrip:
- return MC_Grip;
- case Type_Client:
- return MC_Window;
- case Type_Root:
- return MC_Root;
- default:
- assert(false); // unhandled type
- }
- }
-};
-
-}
-
-#endif // __obwidget_hh