Freeciv-3.3
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
widget_combo.c File Reference
#include <SDL3/SDL.h>
#include "log.h"
#include "string_vector.h"
#include "colors.h"
#include "gui_id.h"
#include "gui_string.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "widget.h"
#include "widget_p.h"

Go to the source code of this file.

Data Structures

struct  combo_menu
 

Functions

static int combo_redraw (struct widget *combo)
 
static int combo_menu_callback (struct widget *window)
 
static int combo_menu_item_callback (struct widget *label)
 
void combo_popup (struct widget *combo)
 
void combo_popdown (struct widget *combo)
 
struct widgetcombo_new (SDL_Surface *background, struct gui_layer *dest, utf8_str *pstr, const struct strvec *vector, int length, Uint32 flags)
 

Variables

static int(* baseclass_redraw )(struct widget *widget) = NULL
 

Function Documentation

◆ combo_menu_callback()

static int combo_menu_callback ( struct widget window)
static

User interacted with the combo menu window.

Definition at line 102 of file widget_combo.c.

◆ combo_menu_item_callback()

static int combo_menu_item_callback ( struct widget label)
static

User interacted with a single item of the combo menu.

Definition at line 117 of file widget_combo.c.

◆ combo_new()

struct widget * combo_new ( SDL_Surface background,
struct gui_layer dest,
utf8_str pstr,
const struct strvec vector,
int  length,
Uint32  flags 
)

Create a combo box widget.

Definition at line 231 of file widget_combo.c.

◆ combo_popdown()

void combo_popdown ( struct widget combo)

Popdown the combo box widget.

Definition at line 208 of file widget_combo.c.

◆ combo_popup()

void combo_popup ( struct widget combo)

Popup the combo box widget.

Definition at line 134 of file widget_combo.c.

◆ combo_redraw()

static int combo_redraw ( struct widget combo)
static

Redraw the combo box widget.

Definition at line 45 of file widget_combo.c.

Variable Documentation

◆ baseclass_redraw

int(* baseclass_redraw) (struct widget *widget) ( struct widget widget) = NULL
static

Definition at line 39 of file widget_combo.c.