Flutter Engine
The Flutter Engine
Enumerations
skui Namespace Reference

Enumerations

enum class  InputState {
  kDown , kUp , kMove , kRight ,
  kLeft
}
 
enum class  Key {
  kNONE , kLeftSoftKey , kRightSoftKey , kHome ,
  kBack , kSend , kEnd , k0 ,
  k1 , k2 , k3 , k4 ,
  k5 , k6 , k7 , k8 ,
  k9 , kStar , kHash , kUp ,
  kDown , kLeft , kRight , kTab ,
  kPageUp , kPageDown , kDelete , kEscape ,
  kShift , kCtrl , kOption , kSuper ,
  kA , kC , kV , kX ,
  kY , kZ , kOK , kVolUp ,
  kVolDown , kPower , kCamera
}
 
enum class  ModifierKey {
  kNone = 0 , kShift = 1 << 0 , kControl = 1 << 1 , kOption = 1 << 2 ,
  kCommand = 1 << 3 , kFirstPress = 1 << 4
}
 

Enumeration Type Documentation

◆ InputState

enum class skui::InputState
strong
Enumerator
kDown 
kUp 
kMove 
kRight 
kLeft 

Definition at line 6 of file InputState.h.

6 {
7 kDown,
8 kUp,
9 kMove, // only valid for mouse
10 kRight, // only valid for fling
11 kLeft, // only valid for fling
12};
@ kUp
Definition: embedder.h:973
@ kDown
Definition: embedder.h:980
@ kMove
Definition: embedder.h:985

◆ Key

enum class skui::Key
strong
Enumerator
kNONE 
kLeftSoftKey 
kRightSoftKey 
kHome 

the home key - added to match android

kBack 

(CLR)

kSend 

the green (talk) key

kEnd 

the red key

k0 
k1 
k2 
k3 
k4 
k5 
k6 
k7 
k8 
k9 
kStar 

the * key

kHash 

the # key

kUp 
kDown 
kLeft 
kRight 
kTab 
kPageUp 
kPageDown 
kDelete 
kEscape 
kShift 
kCtrl 
kOption 
kSuper 
kA 
kC 
kV 
kX 
kY 
kZ 
kOK 

the center key

kVolUp 

volume up - match android

kVolDown 

volume down - same

kPower 

power button - same

kCamera 

camera - same

Definition at line 6 of file Key.h.

6 {
7 kNONE, //corresponds to android's UNKNOWN
8
11
12 kHome, //!< the home key - added to match android
13 kBack, //!< (CLR)
14 kSend, //!< the green (talk) key
15 kEnd, //!< the red key
16
17 k0,
18 k1,
19 k2,
20 k3,
21 k4,
22 k5,
23 k6,
24 k7,
25 k8,
26 k9,
27 kStar, //!< the * key
28 kHash, //!< the # key
29
30 kUp,
31 kDown,
32 kLeft,
33 kRight,
34
35 // Keys needed by ImGui
36 kTab,
37 kPageUp,
39 kDelete,
40 kEscape,
41 kShift,
42 kCtrl,
43 kOption, // AKA Alt
44 kSuper, // AKA Command
45 kA,
46 kC,
47 kV,
48 kX,
49 kY,
50 kZ,
51
52 kOK, //!< the center key
53
54 kVolUp, //!< volume up - match android
55 kVolDown, //!< volume down - same
56 kPower, //!< power button - same
57 kCamera, //!< camera - same
58};
@ kBack
Definition: SortBench.cpp:57
const auto kC
const auto kX
const auto kA
constexpr int kShift
@ kHome
the home key - added to match android
@ kVolUp
volume up - match android
@ kVolDown
volume down - same
@ kStar
the * key
@ kOK
the center key
@ kCamera
camera - same
@ kPower
power button - same
@ kSend
the green (talk) key
@ kHash
the # key

◆ ModifierKey

enum class skui::ModifierKey
strong
Enumerator
kNone 
kShift 
kControl 
kOption 
kCommand 
kFirstPress 

Definition at line 9 of file ModifierKey.h.

9 {
10 kNone = 0,
11 kShift = 1 << 0,
12 kControl = 1 << 1,
13 kOption = 1 << 2, // same as ALT
14 kCommand = 1 << 3,
15 kFirstPress = 1 << 4,
16};
@ kNone
Definition: layer.h:53
constexpr int kControl