summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-07-11 00:27:04 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-07-11 00:27:43 +0100
commita32b49acd12538c27bf4f9abb8acd133e8cf2ee8 (patch)
treed1990535a90aa77fe6754f777e5f1c1c261e0ca8 /src/input_handler.hh
parent42611aef1e84b7dc13735021b8d0b68fedb86d60 (diff)
Rename ColorPair to Face and ColorRegistry to FaceRegistry
Face also stores the attributes
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 80b8b43c..642b4243 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -1,9 +1,9 @@
#ifndef input_handler_hh_INCLUDED
#define input_handler_hh_INCLUDED
-#include "color.hh"
#include "completion.hh"
#include "context.hh"
+#include "face.hh"
#include "normal.hh"
#include "keys.hh"
#include "string.hh"
@@ -48,16 +48,15 @@ public:
// returns to normal mode after validation if callback does
// not change the mode itself
void prompt(const String& prompt, String initstr,
- ColorPair prompt_colors, Completer completer,
+ Face prompt_face, Completer completer,
PromptCallback callback);
- void set_prompt_colors(ColorPair prompt_colors);
+ void set_prompt_face(Face prompt_face);
// enter menu mode, callback is called on each selection change,
// abort or validation with corresponding MenuEvent value
// returns to normal mode after validation if callback does
// not change the mode itself
- void menu(memoryview<String> choices,
- MenuCallback callback);
+ void menu(memoryview<String> choices, MenuCallback callback);
// execute callback on next keypress and returns to normal mode
// if callback does not change the mode itself