|
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
11 #define NO_BLOCK (! BLOCK)
13 #define WITH_FRAME TRUE
14 #define FRAMELESS (! WITH_FRAME)
17 #define NO_SWAP (! SWAP_FB)
19 #if defined(LINUX_V) || defined(WIN32_V)
20 #define PRESS_OR_TAP_ANYTHING "Press any key ..."
21 #elif defined(ANDROID_V)
22 #define PRESS_OR_TAP_ANYTHING "Tap anywhere to continue ..."
25 #define WARNING_TIMEOUT 3000
28 #define UNUSED_SDL_COLOR ((SDL_Color){0, 0, 0, 0})
29 #define UNUSED_LG_COLOR_U ((LG_Color_u){0, 0, 0, 0})
31 #define TMP_STR_MAXLEN 1023
35 #define BORDER_WIDTH 2
37 #define LG_WIN_TXT_NBSP '~'
40 #define LG_WIN_N_LINES_MAX 24
42 #define LG_LEFT_MARGIN 5
43 #define LG_BOTTOM_MARGIN 5
45 #define LG_WIN_TIMESTAMP_MAXLEN (64 - 1)
58 char timestamp[LG_WIN_TIMESTAMP_MAXLEN + 1];
62 #define ALL_WINS_BG_COLOR "dark-grey2"
63 #define ALL_WINS_BORDER_COLOR "dark-grey2"
65 #define INFO_WIN_TEXT_COLOR "white"
66 #define INFO_WIN_BG_COLOR ALL_WINS_BG_COLOR
67 #define INFO_WIN_BORDER_COLOR ALL_WINS_BORDER_COLOR
69 #define INFO_WIN_STYLE
71 #define QUESTION_WIN_TEXT_COLOR "white"
72 #define QUESTION_WIN_BG_COLOR ALL_WINS_BG_COLOR
73 #define QUESTION_WIN_BORDER_COLOR ALL_WINS_BORDER_COLOR
74 #define QUESTION_WIN_FONT
75 #define QUESTION_WIN_STYLE
77 #define WARNING_WIN_TEXT_COLOR "orange"
78 #define WARNING_WIN_BG_COLOR ALL_WINS_BG_COLOR
79 #define WARNING_WIN_BORDER_COLOR ALL_WINS_BORDER_COLOR
80 #define WARNING_WIN_FONT
81 #define WARNING_WIN_STYLE
83 #define ERROR_WIN_TEXT_COLOR "red"
84 #define ERROR_WIN_BG_COLOR ALL_WINS_BG_COLOR
85 #define ERROR_WIN_BORDER_COLOR ALL_WINS_BORDER_COLOR
86 #define ERROR_WIN_FONT
87 #define ERROR_WIN_STYLE
108 enum {TEXT_I, BG_I, BORDER_I};
112 void lg_info_win(
const char *, zboolean, zboolean);
136 void lg_set_fonts(TTF_Font *, TTF_Font *, TTF_Font *, TTF_Font *, TTF_Font *, TTF_Font *, TTF_Font *);
int lg_question_win(const char *text)
Definition: lg_wins.c:123
void lg_set_fonts(TTF_Font *small_f, TTF_Font *medium_f, TTF_Font *large_f, TTF_Font *big_f, TTF_Font *big_papyrus_f, TTF_Font *very_big_papyrus_f, TTF_Font *large_intelone_mono_f)
Definition: lg_wins.c:834
int lg_get_win_h(LG_Window *win)
Definition: lg_wins.c:824
int lg_win_open(LG_Window *win, int x, int y)
Definition: lg_wins.c:664
TTF_Font * lg_get_medium_font()
Definition: lg_wins.c:867
TTF_Font * lg_get_very_big_papyrus_font()
Definition: lg_wins.c:907
int lg_win_close(LG_Window *win)
Definition: lg_wins.c:738
TTF_Font * lg_get_large_font()
Definition: lg_wins.c:877
void lg_win_free_tex(LG_Window *win)
Definition: lg_wins.c:800
void lg_warning_win(const char *text)
Definition: lg_wins.c:188
Definition: lg_wins.h:100
int lg_win_open_centered(LG_Window *win)
Definition: lg_wins.c:369
LG_Window lg_win(const char *text, LG_Color_u text_color, zboolean with_frame, LG_Color_u bg_color, LG_Color_u border_color, TTF_Font *font)
Definition: lg_wins.c:409
TTF_Font * lg_get_small_font()
Definition: lg_wins.c:857
LG_WinColors * lg_get_win_colors()
Definition: lg_wins.c:927
Definition: lg_vertex.h:91
void lg_info_win(const char *text, zboolean with_frame, zboolean swap_fb)
Definition: lg_wins.c:78
char * lg_entry_win(const char *label, int x, int y)
Definition: lg_wins.c:264
char * lg_wrap_lines(const char *txt, TTF_Font *font)
Definition: lg_wins.c:966
Definition: lg_textures.h:42
zboolean question(const char *str)
Definition: misc.c:81
void lg_set_default_win_colors()
Definition: lg_wins.c:935
int lg_get_win_w(LG_Window *win)
Definition: lg_wins.c:813
void lg_error_win(const char *text)
Definition: lg_wins.c:222
void warning(int block, const char *format,...)
Definition: lg_error.c:82
TTF_Font * lg_get_big_papyrus_font()
Definition: lg_wins.c:897
void lg_info_win_no_block(const char *text, zboolean with_frame, zboolean swap_fb)
Definition: lg_wins.c:43
TTF_Font * lg_get_big_font()
Definition: lg_wins.c:887
TTF_Font * lg_get_large_intelone_mono_font()
Definition: lg_wins.c:917
Definition: lg_gr_func.h:47