forked from raduprv/Eternal-Lands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consolewin.h
65 lines (52 loc) · 1.51 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
/*! \name windows handlers
* @{ */
extern int console_root_win; /*!< handler for the console window */
/*! @} */
extern int locked_to_console; /*!< indicates whether the console win is locked. Used when we don't have any maps. */
extern int console_scrollbar_enabled; /*!< config option, if true, a scroll bar is displayed for the console */
void clear_console (void);
void toggle_console_scrollbar(int *enable);
void console_font_resize(float fond_size);
int get_console_text_width(void);
int get_total_nr_lines(void);
/*!
* \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 (text_message * msg);
/*!
* \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__