all repos — openbox @ 25d1e3538be5719b238f7e62a949c409fef2af66

openbox fork - make it a bit more like ryudo

src/widget.hh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef   __obwidget_hh
#define   __obwidget_hh

namespace ob {

class OBWidget {
public:
  enum WidgetType {
    Type_Titlebar,
    Type_Handle,
    Type_Plate,
    Type_Label,
    Type_MaximizeButton,
    Type_CloseButton,
    Type_IconifyButton,
    Type_StickyButton,
    Type_LeftGrip,
    Type_RightGrip
  };

private:
  WidgetType _type;

public:
  OBWidget(WidgetType type) : _type(type) {}
  
  inline WidgetType type() const { return _type; }
};

}

#endif // __obwidget_hh