Freeciv-3.3
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
cma_fe.h File Reference
#include <gtk/gtk.h>
#include "fc_types.h"
#include "cma_core.h"

Go to the source code of this file.

Data Structures

struct  cma_dialog
 

Enumerations

enum  cma_refresh { REFRESH_ALL , DONT_REFRESH_SELECT , DONT_REFRESH_HSCALES }
 

Functions

void cma_fe_init (void)
 
void cma_fe_done (void)
 
struct cma_dialogcreate_cma_dialog (struct city *pcity, bool tiny)
 
void close_cma_dialog (struct city *pcity)
 
void refresh_cma_dialog (struct city *pcity, enum cma_refresh refresh)
 

Enumeration Type Documentation

◆ cma_refresh

Enumerator
REFRESH_ALL 
DONT_REFRESH_SELECT 
DONT_REFRESH_HSCALES 

Definition at line 25 of file cma_fe.h.

Function Documentation

◆ close_cma_dialog()

void close_cma_dialog ( struct city pcity)

Only called when the city dialog is closed.

only called when the city dialog is closed.

Definition at line 104 of file cma_fe.c.

◆ cma_fe_done()

void cma_fe_done ( void  )

Free resources allocated for cma front end system

Definition at line 96 of file cma_fe.c.

◆ cma_fe_init()

void cma_fe_init ( void  )

Initialize cma front end system

Definition at line 88 of file cma_fe.c.

◆ create_cma_dialog()

struct cma_dialog * create_cma_dialog ( struct city pcity,
bool  tiny 
)

Instantiates a new struct for each city_dialog window that is open.

Definition at line 214 of file cma_fe.c.

◆ refresh_cma_dialog()

void refresh_cma_dialog ( struct city pcity,
enum cma_refresh  refresh 
)

Refreshes the cma dialog

Definition at line 471 of file cma_fe.c.