Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-sdl2/widget_button.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
widget_button.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2006 - The Freeciv Project
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
14#ifndef FC__WIDGET_BUTTON_H
15#define FC__WIDGET_BUTTON_H
16
17#define create_icon_button_from_chars(icon, pdest, char_string, \
18 ptsize, flags) \
19 create_icon_button(icon, pdest, \
20 create_utf8_from_char(char_string, ptsize), \
21 flags)
22
23#define create_icon_button_from_chars_fonto(icon, pdest, char_string, \
24 fonto, flags) \
25 create_icon_button(icon, pdest, \
26 create_utf8_from_char_fonto(char_string, fonto), \
27 flags)
28
29#define create_themeicon_button_from_chars(icon_theme, pdest, \
30 char_string, ptsize, flags) \
31 create_themeicon_button(icon_theme, pdest, \
32 create_utf8_from_char(char_string, \
33 ptsize), \
34 flags)
35
36#define create_themeicon_button_from_chars_fonto(icon_theme, pdest, \
37 char_string, \
38 fonto, flags) \
39 create_themeicon_button(icon_theme, pdest, \
40 create_utf8_from_char_fonto(char_string, \
41 fonto), \
42 flags)
43
44struct widget *create_icon_button(SDL_Surface *icon,
45 struct gui_layer *pdest, utf8_str *pstr,
46 Uint32 flags);
47
48struct widget *create_themeicon_button(SDL_Surface *icon_theme,
49 struct gui_layer *pdest, utf8_str *pstr,
50 Uint32 flags);
51
52#endif /* FC__WIDGET_BUTTON_H */
incite_cost
char * incite_cost
Definition comments.c:74
create_themeicon_button
struct widget * create_themeicon_button(SDL_Surface *icon_theme, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags)
Definition widget_button.c:343
create_icon_button
struct widget * create_icon_button(SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags)
Definition widget_button.c:265
gui_layer
Definition graphics.h:227
utf8_str
Definition gui_string.h:52
widget
Definition widget.h:112