Freeciv-3.2
Loading...
Searching...
No Matches
mapctrl.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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/***********************************************************************
15 mapctrl.h - description
16 -------------------
17 begin : Thu Sep 05 2002
18 copyright : (C) 2002 by Rafał Bursig
19 email : Rafał Bursig <bursig@poczta.fm>
20***********************************************************************/
21
22#ifndef FC__MAPCTRL_H
23#define FC__MAPCTRL_H
24
25/* SDL2 */
26#ifdef SDL2_PLAIN_INCLUDE
27#include <SDL.h>
28#else /* SDL2_PLAIN_INCLUDE */
29#include <SDL2/SDL.h>
30#endif /* SDL2_PLAIN_INCLUDE */
31
32/* common */
33#include "fc_types.h"
34
35/* client/gui-sdl2 */
36#include "gui_main.h"
37
38#include "mapctrl_g.h"
39
40#ifdef SMALL_SCREEN
41
42#define BLOCKM_W 28
43#define BLOCKU_W 15
44#define DEFAULT_OVERVIEW_W 78
45#define DEFAULT_OVERVIEW_H 52
46#define DEFAULT_UNITS_W (78 + BLOCKU_W)
47#define DEFAULT_UNITS_H 52
48
49#else /* SMALL_SCREEN */
50
51#define BLOCKM_W 52
52#define BLOCKU_W 28
53#define DEFAULT_OVERVIEW_W 156
54#define DEFAULT_OVERVIEW_H 104
55#define DEFAULT_UNITS_W (158 + BLOCKU_W)
56#define DEFAULT_UNITS_H 104
57
58#endif /* SMALL_SCREEN */
59
60extern int overview_w;
61extern int overview_h;
62
63void popdown_newcity_dialog(void);
64
65void popup_minimap_window(void);
70void popdown_minimap_window(void);
71
72void popup_unitinfo_window(void);
77
78void show_game_page(void);
79void close_game_page(void);
80
83int resize_minimap(void);
87struct widget *get_tax_rates_widget(void);
88struct widget *get_research_widget(void);
89struct widget *get_revolution_widget(void);
92void enable_main_widgets(void);
93void disable_main_widgets(void);
95
98
101
102#endif /* FC__MAPCTRL_H */
char * incite_cost
Definition comments.c:75
static struct mouse_button_behavior button_behavior
Definition gui_main.c:130
int resize_unit_info(void)
void popdown_newcity_dialog(void)
Definition mapctrl.c:2897
struct widget * get_minimap_window_widget(void)
Definition mapctrl.c:2203
void button_down_on_map(struct mouse_button_behavior *button_behavior)
Definition mapctrl.c:2280
struct widget * get_research_widget(void)
Definition mapctrl.c:2219
int overview_w
Definition mapctrl.c:99
void button_up_on_map(struct mouse_button_behavior *button_behavior)
Definition mapctrl.c:2351
void enable_main_widgets(void)
Definition mapctrl.c:2180
void finger_up_on_map(struct finger_behavior *finger_behavior)
Definition mapctrl.c:2267
int resize_minimap(void)
Definition mapctrl.c:554
struct widget * get_unit_info_window_widget(void)
Definition mapctrl.c:2195
void close_game_page(void)
Definition mapctrl.c:2021
void enable_and_redraw_revolution_button(void)
Definition mapctrl.c:2245
bool map_event_handler(SDL_Keysym key)
Definition mapctrl.c:2445
void show_game_page(void)
Definition mapctrl.c:1958
int overview_h
Definition mapctrl.c:100
struct widget * get_revolution_widget(void)
Definition mapctrl.c:2227
void popup_minimap_window(void)
Definition mapctrl.c:1650
void hide_unitinfo_window_buttons(void)
Definition mapctrl.c:1593
void disable_main_widgets(void)
Definition mapctrl.c:2102
void disable_minimap_window_buttons(void)
Definition mapctrl.c:1911
void enable_and_redraw_find_city_button(void)
Definition mapctrl.c:2235
void show_minimap_window_buttons(void)
Definition mapctrl.c:1798
void set_new_minimap_window_pos(void)
Definition mapctrl.c:1386
void hide_minimap_window_buttons(void)
Definition mapctrl.c:1836
void show_unitinfo_window_buttons(void)
Definition mapctrl.c:1569
void popdown_minimap_window(void)
Definition mapctrl.c:1945
void disable_unitinfo_window_buttons(void)
Definition mapctrl.c:1617
void set_new_unitinfo_window_pos(void)
Definition mapctrl.c:1332
void popdown_unitinfo_window(void)
Definition mapctrl.c:1637
void popup_unitinfo_window(void)
Definition mapctrl.c:1454
void redraw_minimap_window_buttons(void)
Definition mapctrl.c:1874
void finger_down_on_map(struct finger_behavior *finger_behavior)
Definition mapctrl.c:2254
struct widget * get_tax_rates_widget(void)
Definition mapctrl.c:2211
SDL_Keycode key
Definition widget.h:153