ibus-qt 1.3.4
Loading...
Searching...
No Matches
qibustypes.h
1#ifndef __Q_IBUS_TYPES_H_
2#define __Q_IBUS_TYPES_H_
3
4#include <QMetaType>
5
6namespace IBus {
7
8typedef enum
9{
10 ShiftMask = 1 << 0,
11 LockMask = 1 << 1,
12 ControlMask = 1 << 2,
13 Mod1Mask = 1 << 3,
14 Mod2Mask = 1 << 4,
15 Mod3Mask = 1 << 5,
16 Mod4Mask = 1 << 6,
17 Mod5Mask = 1 << 7,
18 Button1Mask = 1 << 8,
19 Button2Mask = 1 << 9,
20 Button3Mask = 1 << 10,
21 Button4Mask = 1 << 11,
22 Button5Mask = 1 << 12,
23
24 /* The next few modifiers are used by XKB, so we skip to the end.
25 * Bits 15 - 23 are currently unused. Bit 29 is used internally.
26 *
27 **/
28
29 /* ibus mask */
30 HandledMask = 1 << 24,
31 ForwardMask = 1 << 25,
32 IgnoredMask = ForwardMask,
33
34 SuperMask = 1 << 26,
35 HyperMask = 1 << 27,
36 MetaMask = 1 << 28,
37
38 ReleaseMask = 1 << 30,
39
40 ModifierMask = 0x5c001fff
41} ModifierType;
42
43typedef enum {
44 CapPreeditText = 1 << 0,
45 CapAuxiliaryText = 1 << 1,
46 CapLookupTable = 1 << 2,
47 CapFocus = 1 << 3,
48 CapProperty = 1 << 4,
49 CapSurroundingText = 1 << 5,
50} Capabilite;
51
52typedef enum {
53 OrientationHorizontal = 0,
54 OrientationVertical = 1,
55 OrientationSystem = 2,
56} Orientation;
57
58typedef enum {
59 EnginePreeditClear = 0,
60 EnginePreeditCommit = 1,
61} PreeditFocusMode;
62
63typedef struct {
64 uint x;
65 uint y;
66 uint width;
67 uint height;
68} Rectangle;
69
70};
71
72#endif
73
Definition qibusattribute.cpp:3
Definition qibustypes.h:63