1 
2 #ifndef CONSOLE_H
3 #define CONSOLE_H
4 
5 #ifdef	__cplusplus
6 extern "C" {
7 #endif
8 
9 #include <stdint.h>
10 
11 #define CON_MIN_LINE_INTERVAL 0.5
12 #define CON_MAX_LINE_INTERVAL 4.0
13 
14 
15 void Con_Init();
16 void Con_SetExecFunction(int(*exec_cmd)(char *ch));
17 void Con_InitFont();
18 void Con_InitGlobals();
19 void Con_Destroy();
20 
21 float Con_GetLineInterval();
22 void  Con_SetLineInterval(float interval);
23 void Con_SetHeight(uint16_t value);
24 uint16_t Con_GetHeight();
25 void Con_SetBackgroundColor(float color[4]);
26 void Con_SetShowCursorPeriod(float time);
27 
28 void Con_SetLinesHistorySize(uint16_t count);
29 void Con_SetCommandsHistorySize(uint16_t count);
30 
31 void Con_Scroll(int value);
32 void Con_Filter(char *text);
33 void Con_Edit(int key);
34 void Con_AddLine(const char *text, uint16_t font_style);
35 void Con_AddText(const char *text, uint16_t font_style);
36 void Con_Printf(const char *fmt, ...);
37 void Con_Warning(const char *fmt, ...);
38 void Con_Notify(const char *fmt, ...);
39 
40 void Con_UpdateResize();
41 
42 void Con_Clean();
43 
44 void Con_Draw(float time);
45 int  Con_IsShown();
46 void Con_SetShown(int value);
47 
48 #ifdef	__cplusplus
49 }
50 #endif
51 #endif
52