Freeciv-3.1
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, fonto, flags) \
38 create_themeicon_button(icon_theme, pdest, \
39 create_utf8_from_char_fonto(char_string, \
40 fonto), \
41 flags)
42
44 struct gui_layer *pdest, utf8_str *pstr,
45 Uint32 flags);
46
48 struct gui_layer *pdest, utf8_str *pstr,
49 Uint32 flags);
50
51int draw_tibutton(struct widget *button, Sint16 start_x, Sint16 start_y);
52int draw_ibutton(struct widget *button, Sint16 start_x, Sint16 start_y);
53
54#endif /* FC__WIDGET_BUTTON_H */
struct container * cont
Definition widget.h:127
int draw_tibutton(struct widget *button, Sint16 start_x, Sint16 start_y)
struct widget * create_themeicon_button(SDL_Surface *icon_theme, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags)
struct widget * create_icon_button(SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags)
int draw_ibutton(struct widget *button, Sint16 start_x, Sint16 start_y)