You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intget_string_input(constchar* allowed_characters, char* input, int input_y, int input_x, int force_case, int enable_escape, int enable_directionals);
78
+
intget_string_input(conststring& allowed_characters, string& input, int input_y, int input_x, int force_case, int enable_escape, int enable_directionals);
78
79
79
80
public:
80
81
voidclear();
@@ -83,15 +84,20 @@ class Window
83
84
voidunset_attribute(chtype attr);
84
85
voidrefresh();
85
86
voidget_size(int& y, int& x);
86
-
voidprint_centered(constchar* str);
87
-
intprint(constchar* format, ...);
88
-
voidprint(char c);
89
-
intwrite(constwchar_t* text);
90
-
voidwrite_block(int y, int x, Color color, constwchar_t** block, int rowcount);
91
-
voidwrite_block(int y, int x, Color color, constwchar_t** block, int topy, int leftx, int bottomy, int rightx);
92
-
voidwrite(int y, int x, Color color, constwchar_t* text);
87
+
voidprint_centered(const string& str);
88
+
89
+
intprint(const string& format, const string& value);
90
+
intprint(const wstring& format, const wstring& value);
91
+
92
+
intprint(char c);
93
+
intprint(const string& text);
94
+
intprint(const wstring& text);
95
+
96
+
voidprint(int y, int x, Color color, const wstring* block, int rowcount);
97
+
voidprint(int y, int x, Color color, const wstring* block, int topy, int leftx, int bottomy, int rightx);
98
+
voidprint(int y, int x, Color color, const wstring& text);
93
99
voidwait_for_key(bool prompt = false);
94
-
intget_char_input(constchar* allowed);
100
+
intget_char_input(conststring& allowed);
95
101
};
96
102
97
103
classInputWindow : protectedWindow
@@ -100,9 +106,18 @@ class InputWindow : protected Window
0 commit comments