Freeciv21
Develop your civilization from humble roots to a global empire
chatline_common.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 // common
14 #include "featured_text.h" // struct text_tag_list, struct ft_color
15 
16 int send_chat(const char *message);
17 int send_chat_printf(const char *format, ...)
18  fc__attribute((__format__(__printf__, 1, 2)));
19 
20 void output_window_append(const struct ft_color color,
21  const char *featured_text);
22 void output_window_vprintf(const struct ft_color color, const char *format,
23  va_list args);
24 void output_window_printf(const struct ft_color color, const char *format,
25  ...) fc__attribute((__format__(__printf__, 2, 3)));
26 void output_window_event(const char *plain_text,
27  const struct text_tag_list *tags);
28 
29 void chat_welcome_message(bool gui_has_copying_mitem);
30 
32 void fc_release_ow_mutex();
33 void fc_init_ow_mutex();
34 void fc_destroy_ow_mutex();
void fc_release_ow_mutex()
Release output window mutex.
void fc_destroy_ow_mutex()
Destroy output window mutex.
int send_chat(const char *message)
Send the message as a chat to the server.
int send_chat_printf(const char *format,...) fc__attribute((__format__(__printf__
void output_window_printf(const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void fc_allocate_ow_mutex()
Allocate output window mutex.
void output_window_vprintf(const struct ft_color color, const char *format, va_list args)
Add a line of text to the output ("chatline") window.
int void output_window_append(const struct ft_color color, const char *featured_text)
Add a line of text to the output ("chatline") window, like puts() would do it in the console.
void fc_init_ow_mutex()
Initialize output window mutex.
void void output_window_event(const char *plain_text, const struct text_tag_list *tags)
Add a line of text to the output ("chatline") window from server event.
void chat_welcome_message(bool gui_has_copying_mitem)
Standard welcome message.
int fc__attribute((nonnull(1, 3)))