Freeciv-3.2
Loading...
Searching...
No Matches
widget_combo.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_COMBO_H
15#define FC__WIDGET_COMBO_H
16
17/* client/gui-sdl2 */
18#include "gui_string.h"
19
20struct strvec;
21
22#define combo_new_from_chars(background, dest, font_size, \
23 char_string, vector, length, flags) \
24 combo_new(background, dest, \
25 create_utf8_from_char(char_string, font_size), \
26 vector, length, flags)
27
28#define combo_new_from_chars_fonto(background, dest, fonto, \
29 char_string, vector, length, flags) \
30 combo_new(background, dest, \
31 create_utf8_from_char_fonto(char_string, fonto), \
32 vector, length, flags)
33
34struct widget *combo_new(SDL_Surface *background, struct gui_layer *dest,
35 utf8_str *pstr, const struct strvec *vector,
36 int length, Uint32 flags);
37void combo_popup(struct widget *combo);
38void combo_popdown(struct widget *combo);
39
40#endif /* FC__WIDGET_COMBO_H */
char * incite_cost
Definition comments.c:75
void combo_popup(struct widget *combo)
struct widget * combo_new(SDL_Surface *background, struct gui_layer *dest, utf8_str *pstr, const struct strvec *vector, int length, Uint32 flags)
void combo_popdown(struct widget *combo)
const struct strvec * vector
Definition widget.h:126