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/client.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/client.hh')
| -rw-r--r-- | src/client.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client.hh b/src/client.hh index fcedd7bb..1eb845b1 100644 --- a/src/client.hh +++ b/src/client.hh @@ -34,16 +34,16 @@ public: // handle all the keys currently available in the user interface void handle_available_input(EventMode mode); - void menu_show(Vector<DisplayLine> choices, ByteCoord anchor, MenuStyle style); + void menu_show(Vector<DisplayLine> choices, BufferCoord anchor, MenuStyle style); void menu_select(int selected); void menu_hide(); - void info_show(String title, String content, ByteCoord anchor, InfoStyle style); + void info_show(String title, String content, BufferCoord anchor, InfoStyle style); void info_hide(); void print_status(DisplayLine status_line); - CharCoord dimensions() const { return m_ui->dimensions(); } + DisplayCoord dimensions() const { return m_ui->dimensions(); } void force_redraw(); void redraw_ifn(); @@ -100,8 +100,8 @@ private: struct Menu { Vector<DisplayLine> items; - ByteCoord anchor; - CharCoord ui_anchor; + BufferCoord anchor; + DisplayCoord ui_anchor; MenuStyle style; int selected; } m_menu; @@ -110,8 +110,8 @@ private: { String title; String content; - ByteCoord anchor; - CharCoord ui_anchor; + BufferCoord anchor; + DisplayCoord ui_anchor; InfoStyle style; } m_info; |
