27#ifdef SDL2_PLAIN_INCLUDE
147 char *filename = (
char*)pwidget->
data.
ptr;
171 struct widget *close_button;
216 area = pwindow->
area;
231 area.w += close_button->
size.w;
283 (pwindow->
size.w - pwindow->
area.w) + area.w,
284 (pwindow->
size.h - pwindow->
area.h) + area.h);
286 area = pwindow->
area;
328 area.x + area.w - close_button->
size.w - 1,
361 struct widget *input_edit;
602 pwindow->size.x + pwindow->size.w -
adj_size(30),
810 buf->size.y = back_button->
size.y;
827 select_nation_button =
buf;
832 buf->size.h = select_nation_button->
size.h;
834 buf->size.y = select_nation_button->
size.y;
843 _(
"Server Settings"),
845 buf->size.h = select_nation_button->
size.h;
847 buf->size.y = select_nation_button->
size.y;
859 buf->size.y = pwindow->
size.y + pwindow->
size.h - (
buf->size.h + 7);
860 buf->size.x = pwindow->
size.x + pwindow->
size.w - (
buf->size.w + 10) - 5;
int send_chat_printf(const char *format,...)
int send_chat(const char *message)
void output_window_append(const struct ft_color color, const char *featured_text)
enum client_states client_state(void)
void disconnect_from_server(bool leaving_sound)
bool is_server_running(void)
#define conn_list_iterate(connlist, pconn)
#define conn_list_iterate_end
const struct ft_color ftc_client
const struct ft_color ftc_any
void version_message(const char *vertext)
void log_output_window(void)
void clear_output_window(void)
void real_output_window_append(const char *astring, const struct text_tag_list *tags, int conn_id)
void popup_races_dialog(struct player *pplayer)
void meswin_dialog_popdown(void)
bool popdown_conn_list_dialog(void)
struct advanced_dialog * load_dialog
static int load_selected_game_callback(struct widget *pwidget)
void popdown_load_game_dialog(void)
static void popup_conn_list_dialog(void)
static int disconnect_conn_callback(struct widget *pwidget)
static int select_nation_callback(struct widget *pwidget)
static int start_game_callback(struct widget *pwidget)
void real_conn_list_dialog_update(void *unused)
static void popup_load_game_dialog(void)
static int conn_dlg_callback(struct widget *pwindow)
void popup_input_line(void)
static void add_to_chat_list(char *msg, size_t n_alloc)
static int exit_load_dlg_callback(struct widget *pwidget)
static int load_game_callback(struct widget *pwidget)
struct CONNLIST * conn_dlg
static int input_edit_conn_callback(struct widget *pwidget)
static int move_load_game_dlg_callback(struct widget *pwindow)
static int inputline_return_callback(struct widget *pwidget)
SDL_Color * get_theme_color(enum theme_color themecolor)
int main_window_width(void)
int fill_rect_alpha(SDL_Surface *surf, SDL_Rect *prect, SDL_Color *pcolor)
struct sdl2_data main_data
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top, Sint16 width, Sint16 height, SDL_Color *pcolor)
int main_window_height(void)
void force_exit_from_event_loop(void)
#define PRESSED_EVENT(event)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
bool convert_utf8_str_to_const_surface_width(utf8_str *pstr, int width)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_CONNLISTDLG_FRAME
struct theme * active_theme
char ** create_new_line_utf8strs(const char *pstr)
void conn_list_dialog_update(void)
#define fc_assert_ret(condition)
static int max_label_width
#define fc_calloc(n, esz)
void meswin_add(const char *message, const struct text_tag_list *tags, struct tile *ptile, enum event_type event, int turn, int phase)
const struct strvec * get_save_dirs(void)
struct fileinfo_list * fileinfolist_infix(const struct strvec *dirs, const char *infix, bool nodups)
#define fileinfo_list_iterate(list, pnode)
#define fileinfo_list_iterate_end
struct widget * configure
struct widget * select_nation_button
struct widget * load_game_button
struct widget * start_button
struct advanced_dialog * chat_dlg
struct advanced_dialog * users_dlg
struct widget * end_widget_list
struct widget * begin_widget_list
struct widget * back_button
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
struct conn_list * est_connections
struct packet_game_info info
enum cmdlevel access_level
int fc_snprintf(char *str, size_t n, const char *format,...)
size_t fc_strlcpy(char *dest, const char *src, size_t n)
void set_client_page(enum client_pages page)
enum client_pages get_client_page(void)