Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-sdl2/widget_combo.h Source File

Freeciv-3.1

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 */
gui_string.h
gui_layer
Definition graphics.h:227
strvec
Definition string_vector.c:29
utf8_str
Definition gui_string.h:52
widget
Definition widget.h:112
widget::cont
struct container * cont
Definition widget.h:127
widget::vector
const struct strvec * vector
Definition widget.h:126
combo_popup
void combo_popup(struct widget *combo)
Definition widget_combo.c:138
combo_new
struct widget * combo_new(SDL_Surface *background, struct gui_layer *dest, utf8_str *pstr, const struct strvec *vector, int length, Uint32 flags)
Definition widget_combo.c:235
combo_popdown
void combo_popdown(struct widget *combo)
Definition widget_combo.c:212