00001 #ifndef __Q_IBUS_TYPES_H_
00002 #define __Q_IBUS_TYPES_H_
00003
00004 #include <QMetaType>
00005
00006 namespace IBus {
00007
00008 typedef enum
00009 {
00010 ShiftMask = 1 << 0,
00011 LockMask = 1 << 1,
00012 ControlMask = 1 << 2,
00013 Mod1Mask = 1 << 3,
00014 Mod2Mask = 1 << 4,
00015 Mod3Mask = 1 << 5,
00016 Mod4Mask = 1 << 6,
00017 Mod5Mask = 1 << 7,
00018 Button1Mask = 1 << 8,
00019 Button2Mask = 1 << 9,
00020 Button3Mask = 1 << 10,
00021 Button4Mask = 1 << 11,
00022 Button5Mask = 1 << 12,
00023
00024
00025
00026
00027
00028
00029
00030 HandledMask = 1 << 24,
00031 ForwardMask = 1 << 25,
00032 IgnoredMask = ForwardMask,
00033
00034 SuperMask = 1 << 26,
00035 HyperMask = 1 << 27,
00036 MetaMask = 1 << 28,
00037
00038 ReleaseMask = 1 << 30,
00039
00040 ModifierMask = 0x5c001fff
00041 } ModifierType;
00042
00043 typedef enum {
00044 CapPreeditText = 1 << 0,
00045 CapAuxiliaryText = 1 << 1,
00046 CapLookupTable = 1 << 2,
00047 CapFocus = 1 << 3,
00048 CapProperty = 1 << 4,
00049 } Capabilite;
00050
00051 typedef enum {
00052 OrientationHorizontal = 0,
00053 OrientationVertical = 1,
00054 OrientationSystem = 2,
00055 } Orientation;
00056
00057 typedef enum {
00058 EnginePreeditClear = 0,
00059 EnginePreeditCommit = 1,
00060 } PreeditFocusMode;
00061
00062 typedef struct {
00063 uint x;
00064 uint y;
00065 uint width;
00066 uint height;
00067 } Rectangle;
00068
00069 };
00070
00071 #endif
00072