Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-gtk-4.0/chatline.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
chatline.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__CHATLINE_H
14#define FC__CHATLINE_H
15
16#include <gtk/gtk.h>
17
18/* client */
19#include "chatline_g.h"
20
21void chatline_init(void);
22
23void inputline_make_chat_link(struct tile *ptile, bool unit);
24bool inputline_has_focus(void);
25void inputline_grab_focus(void);
26bool inputline_is_visible(void);
27
28void set_output_window_text(const char *text);
29bool chatline_is_scrolled_to_bottom(void);
30void chatline_scroll_to_bottom(bool delayed);
31
32void set_message_buffer_view_link_handlers(GtkWidget *view);
33
34 GtkWidget *inputline_toolkit_view_new(void);
35void inputline_toolkit_view_append_button(GtkWidget *toolkit_view,
36 GtkWidget *button);
37
38void apply_text_tag(const struct text_tag *ptag, GtkTextBuffer *buf,
39 ft_offset_t text_start_offset, const char *text);
40void scroll_if_necessary(GtkTextView *textview, GtkTextMark *scroll_target);
41
42#endif /* FC__CHATLINE_H */
chatline_g.h
incite_cost
char * incite_cost
Definition comments.c:74
ft_offset_t
int ft_offset_t
Definition featured_text.h:102
inputline_has_focus
bool inputline_has_focus(void)
Definition chatline.c:71
inputline_toolkit_view_append_button
void inputline_toolkit_view_append_button(GtkWidget *toolkit_view, GtkWidget *button)
Definition chatline.c:1292
inputline_toolkit_view_new
GtkWidget * inputline_toolkit_view_new(void)
Definition chatline.c:1270
set_message_buffer_view_link_handlers
void set_message_buffer_view_link_handlers(GtkWidget *view)
Definition chatline.c:744
scroll_if_necessary
void scroll_if_necessary(GtkTextView *textview, GtkTextMark *scroll_target)
Definition chatline.c:557
inputline_is_visible
bool inputline_is_visible(void)
Definition chatline.c:87
apply_text_tag
void apply_text_tag(const struct text_tag *ptag, GtkTextBuffer *buf, ft_offset_t text_start_offset, const char *text)
Definition chatline.c:755
chatline_init
void chatline_init(void)
Definition chatline.c:1302
inputline_make_chat_link
void inputline_make_chat_link(struct tile *ptile, bool unit)
Definition chatline.c:474
chatline_is_scrolled_to_bottom
bool chatline_is_scrolled_to_bottom(void)
Definition chatline.c:959
inputline_grab_focus
void inputline_grab_focus(void)
Definition chatline.c:79
chatline_scroll_to_bottom
void chatline_scroll_to_bottom(bool delayed)
Definition chatline.c:1006
set_output_window_text
#define set_output_window_text(_pstr_)
Definition chatline.h:31
text_tag
Definition featured_text.c:49
tile
Definition tile.h:50
unit
Definition unit.h:138
view
Definition mapview_common.h:36