Flutter Linux Embedder
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
fl_key_embedder_responder_private.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_KEY_EMBEDDER_RESPONDER_PRIVATE_H_
6
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_KEY_EMBEDDER_RESPONDER_PRIVATE_H_
7
8
#include <gdk/gdk.h>
9
10
#include "
flutter/shell/platform/linux/fl_keyboard_handler.h
"
11
#include "
flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h
"
12
#include "
flutter/shell/platform/linux/public/flutter_linux/fl_value.h
"
13
14
/**
15
* FlKeyEmbedderCheckedKey:
16
*
17
* The information for a key that #FlKeyEmbedderResponder should keep state
18
* synchronous on. For every record of #FlKeyEmbedderCheckedKey, the responder
19
* will check the #GdkEvent::state and the internal state, and synchronize
20
* events if they don't match.
21
*
22
* #FlKeyEmbedderCheckedKey can synchronize pressing states (such as
23
* whether ControlLeft is pressed) or lock states (such as whether CapsLock
24
* is enabled).
25
*
26
* #FlKeyEmbedderCheckedKey has a "primary key". For pressing states, the
27
* primary key is the left of the modifiers. For lock states, the primary
28
* key is the key.
29
*
30
* #FlKeyEmbedderCheckedKey may also have a "secondary key". It is only
31
* available to pressing states, which is the right of the modifiers.
32
*/
33
typedef
struct
{
34
// The physical key for the primary key.
35
uint64_t
primary_physical_key
;
36
// The logical key for the primary key.
37
uint64_t
primary_logical_key
;
38
// The logical key for the secondary key.
39
uint64_t
secondary_logical_key
;
40
// Whether this key is CapsLock. CapsLock uses a different event model in GDK
41
// and needs special treatment.
42
bool
is_caps_lock
;
43
}
FlKeyEmbedderCheckedKey
;
44
45
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_KEY_EMBEDDER_RESPONDER_PRIVATE_H_
FlKeyEmbedderCheckedKey::is_caps_lock
bool is_caps_lock
Definition:
fl_key_embedder_responder_private.h:42
fl_keyboard_handler.h
fl_binary_messenger.h
FlKeyEmbedderCheckedKey::primary_physical_key
uint64_t primary_physical_key
Definition:
fl_key_embedder_responder_private.h:35
fl_value.h
FlKeyEmbedderCheckedKey::secondary_logical_key
uint64_t secondary_logical_key
Definition:
fl_key_embedder_responder_private.h:39
FlKeyEmbedderCheckedKey::primary_logical_key
uint64_t primary_logical_key
Definition:
fl_key_embedder_responder_private.h:37
FlKeyEmbedderCheckedKey
Definition:
fl_key_embedder_responder_private.h:33
shell
platform
linux
fl_key_embedder_responder_private.h
Generated by
1.8.17