forked from raduprv/Eternal-Lands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsolewin.h
65 lines (52 loc) · 1.45 KB
/
consolewin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*!
* \file
* \ingroup interface_console
* \brief Declares functions to create and handle the console window
*/
#ifndef __CONSOLE_WIN__
#define __CONSOLE_WIN__
#ifndef MAP_EDITOR
#include "widgets.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define CONSOLE_SEP_HEIGHT 18
/*! \name windows handlers
* @{ */
extern int console_root_win; /*!< handler for the console window */
/*! @} */
extern int console_in_id; /*!< ID of the console input widget */
extern int console_out_id; /*!< ID of the console output widget */
extern int locked_to_console; /*!< indicates whether the console win is locked. Used when we don't have any maps. */
extern int nr_console_lines;
extern int console_text_width;
void clear_console ();
/*!
* \ingroup interface_console
* \brief Signals the console window that the text buffer has changed
*
* Signals the console window that the text buffer has changed
*
* \callgraph
*/
void update_console_win ();
/*!
* \ingroup interface_console
* \brief Creates and initializes the console window
*
* Creates and initializes the console window
*
* \param width the width of the window
* \param height the height of the window
* \callgraph
*/
void create_console_root_window (int width, int height);
#ifndef MAP_EDITOR
int input_field_resize(widget_list *w, Uint32 x, Uint32 y);
#endif //MAP_EDITOR
int history_grep (const char* text, int len);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // def __CONSOLE_WIN__