diff options
author | Michael Dankov <tryagain@navit-project.org> | 2016-07-11 20:41:42 +0300 |
---|---|---|
committer | Michael Dankov <tryagain@navit-project.org> | 2016-07-11 20:41:42 +0300 |
commit | b762570c1e09cea15b7a4ba1cdf1db4523e13017 (patch) | |
tree | 74c04d807002841e144c9c6336c5e86c3f14deaf /navit/gui.h | |
parent | a7338f9eb9c731ef5ae2c4341ed18b136623e2c2 (diff) | |
download | navit-b762570c1e09cea15b7a4ba1cdf1db4523e13017.tar.gz |
refactor:core:Software keyboard infrastructure tuning
- Use enum for keyboard modes, 0 - no kbd, 1 - gui internal keyboard,
2 - try system keyboard, use internal if system is unavailable
- Pass graphics object pointer to keyboard graphic module primitives to
conform practice for similar methods.
Diffstat (limited to 'navit/gui.h')
-rw-r--r-- | navit/gui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/navit/gui.h b/navit/gui.h index 5bb936938..38307901e 100644 --- a/navit/gui.h +++ b/navit/gui.h @@ -45,6 +45,14 @@ struct gui_methods { int (*set_attr)(struct gui_priv *priv, struct attr *attr); }; +/* + * Values for attr_keyboard when set on gui object + */ +enum gui_keyboard_types { + gui_keyboard_no=0, + gui_keyboard_own=1, + gui_keyboard_system_or_own=2 +}; /* prototypes */ enum attr_type; |