]> git.tdb.fi Git - libs/gltk.git/blob - source/inputmethod.h
Rework how widget ownership works in Container
[libs/gltk.git] / source / inputmethod.h
1 #ifndef INPUTMETHOD_H_
2 #define INPUTMETHOD_H_
3
4 namespace Msp {
5 namespace GLtk {
6
7 class Root;
8
9 enum InputType
10 {
11         INPUT_NONE,
12         INPUT_NAVIGATION,
13         INPUT_TEXT
14 };
15
16 enum Navigation
17 {
18         NAV_LEFT,
19         NAV_RIGHT,
20         NAV_UP,
21         NAV_DOWN,
22         NAV_NEXT,
23         NAV_PREVIOUS,
24         NAV_ACTIVATE,
25         NAV_ACCEPT,
26         NAV_CANCEL
27 };
28
29 class InputMethod
30 {
31 protected:
32         Root &root;
33
34         InputMethod(Root &);
35 public:
36         virtual ~InputMethod() { }
37 };
38
39 } // namespace GLtk
40 } // namespace Msp
41
42 #endif