diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-09-22 20:36:26 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-01 13:45:00 +0100 |
| commit | 35559b65ddf107fea2a4dda92fcbd664986976d9 (patch) | |
| tree | 58840b2523abb01459afb09ad2480df07b9ddd2d /src/user_interface.hh | |
| parent | 6e17ecfb6eadc157cc5229f3c36f2962cfe1fcdf (diff) | |
Support codepoints of variable width
Add a ColumnCount type and use it in place of CharCount whenever
more appropriate, take column size of codepoints into account for
vertical movements and docstring wrapping.
Fixes #811
Diffstat (limited to 'src/user_interface.hh')
| -rw-r--r-- | src/user_interface.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user_interface.hh b/src/user_interface.hh index 26cf9097..19d545d9 100644 --- a/src/user_interface.hh +++ b/src/user_interface.hh @@ -13,7 +13,7 @@ namespace Kakoune class String; class DisplayBuffer; class DisplayLine; -struct CharCoord; +struct DisplayCoord; struct Face; struct Key; @@ -42,13 +42,13 @@ public: virtual ~UserInterface() {} virtual void menu_show(ConstArrayView<DisplayLine> choices, - CharCoord anchor, Face fg, Face bg, + DisplayCoord anchor, Face fg, Face bg, MenuStyle style) = 0; virtual void menu_select(int selected) = 0; virtual void menu_hide() = 0; virtual void info_show(StringView title, StringView content, - CharCoord anchor, Face face, + DisplayCoord anchor, Face face, InfoStyle style) = 0; virtual void info_hide() = 0; @@ -60,7 +60,7 @@ public: const DisplayLine& mode_line, const Face& default_face) = 0; - virtual CharCoord dimensions() = 0; + virtual DisplayCoord dimensions() = 0; virtual bool is_key_available() = 0; virtual Key get_key() = 0; |
