summaryrefslogtreecommitdiff
path: root/clutter/clutter/clutter-enums.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-12-06 12:43:14 +0100
committerCarlos Garnacho <carlosg@gnome.org>2018-01-18 15:35:29 +0100
commitaa6561a3b14e03902f725587cd71a6972a71af08 (patch)
treee455a268214e49064149051f986e562621e06f0f /clutter/clutter/clutter-enums.h
parent9eb962328806005bc231df6c6d166bbd62803293 (diff)
downloadmutter-aa6561a3b14e03902f725587cd71a6972a71af08.tar.gz
clutter: Add ClutterInputMethod and ClutterInputFocus
ClutterInputFocus is an abstract object to be subclassed by UI actors and the wayland interface and represents the user of an input method. It represents the current focus of the input method, so all emitted signals and public API hooks are expected to be called when the input method is currently interfacing with the input focus. ClutterInputMethod is an abstract class (to be implemented in the upper layers) that represents the input method itself. Besides focus management itself, all public API calls that would be called by the subclasses are delivered through the current input focus.
Diffstat (limited to 'clutter/clutter/clutter-enums.h')
-rw-r--r--clutter/clutter/clutter-enums.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/clutter/clutter/clutter-enums.h b/clutter/clutter/clutter-enums.h
index a0450a5af..b9987d875 100644
--- a/clutter/clutter/clutter-enums.h
+++ b/clutter/clutter/clutter-enums.h
@@ -1574,6 +1574,41 @@ typedef enum {
CLUTTER_INPUT_DEVICE_MAPPING_RELATIVE,
} ClutterInputDeviceMapping;
+typedef enum {
+ CLUTTER_INPUT_CONTENT_HINT_COMPLETION = 1 << 0,
+ CLUTTER_INPUT_CONTENT_HINT_SPELLCHECK = 1 << 1,
+ CLUTTER_INPUT_CONTENT_HINT_AUTO_CAPITALIZATION = 1 << 2,
+ CLUTTER_INPUT_CONTENT_HINT_LOWERCASE = 1 << 3,
+ CLUTTER_INPUT_CONTENT_HINT_UPPERCASE = 1 << 4,
+ CLUTTER_INPUT_CONTENT_HINT_TITLECASE = 1 << 5,
+ CLUTTER_INPUT_CONTENT_HINT_HIDDEN_TEXT = 1 << 6,
+ CLUTTER_INPUT_CONTENT_HINT_SENSITIVE_DATA = 1 << 7,
+ CLUTTER_INPUT_CONTENT_HINT_LATIN = 1 << 8,
+ CLUTTER_INPUT_CONTENT_HINT_MULTILINE = 1 << 9,
+} ClutterInputContentHintFlags;
+
+typedef enum {
+ CLUTTER_INPUT_CONTENT_PURPOSE_NORMAL,
+ CLUTTER_INPUT_CONTENT_PURPOSE_ALPHA,
+ CLUTTER_INPUT_CONTENT_PURPOSE_DIGITS,
+ CLUTTER_INPUT_CONTENT_PURPOSE_NUMBER,
+ CLUTTER_INPUT_CONTENT_PURPOSE_PHONE,
+ CLUTTER_INPUT_CONTENT_PURPOSE_URL,
+ CLUTTER_INPUT_CONTENT_PURPOSE_EMAIL,
+ CLUTTER_INPUT_CONTENT_PURPOSE_NAME,
+ CLUTTER_INPUT_CONTENT_PURPOSE_PASSWORD,
+ CLUTTER_INPUT_CONTENT_PURPOSE_DATE,
+ CLUTTER_INPUT_CONTENT_PURPOSE_TIME,
+ CLUTTER_INPUT_CONTENT_PURPOSE_DATETIME,
+ CLUTTER_INPUT_CONTENT_PURPOSE_TERMINAL,
+} ClutterInputContentPurpose;
+
+typedef enum {
+ CLUTTER_INPUT_PANEL_STATE_OFF,
+ CLUTTER_INPUT_PANEL_STATE_ON,
+ CLUTTER_INPUT_PANEL_STATE_TOGGLE,
+} ClutterInputPanelState;
+
G_END_DECLS
#endif /* __CLUTTER_ENUMS_H__ */