Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-sdl2/mapctrl.h Source File

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);
66void show_minimap_window_buttons(void);
67void hide_minimap_window_buttons(void);
68void disable_minimap_window_buttons(void);
69void redraw_minimap_window_buttons(void);
70void popdown_minimap_window(void);
71
72void popup_unitinfo_window(void);
73void show_unitinfo_window_buttons(void);
74void hide_unitinfo_window_buttons(void);
75void disable_unitinfo_window_buttons(void);
76void popdown_unitinfo_window(void);
77
78void show_game_page(void);
79void close_game_page(void);
80
81void set_new_unitinfo_window_pos(void);
82void set_new_minimap_window_pos(void);
83int resize_minimap(void);
84 int resize_unit_info(void);
85struct widget *get_unit_info_window_widget(void);
86struct widget *get_minimap_window_widget(void);
87struct widget *get_tax_rates_widget(void);
88struct widget *get_research_widget(void);
89struct widget *get_revolution_widget(void);
90void enable_and_redraw_find_city_button(void);
91void enable_and_redraw_revolution_button(void);
92void enable_main_widgets(void);
93void disable_main_widgets(void);
94bool map_event_handler(SDL_Keysym key);
95
96void finger_down_on_map(struct finger_behavior *finger_behavior);
97void finger_up_on_map(struct finger_behavior *finger_behavior);
98
99void button_down_on_map(struct mouse_button_behavior *button_behavior);
100void button_up_on_map(struct mouse_button_behavior *button_behavior);
101
102#endif /* FC__MAPCTRL_H */
incite_cost
char * incite_cost
Definition comments.c:74
fc_types.h
button_behavior
static struct mouse_button_behavior button_behavior
Definition gui_main.c:126
resize_unit_info
int resize_unit_info(void)
popdown_newcity_dialog
void popdown_newcity_dialog(void)
Definition mapctrl.c:2897
get_minimap_window_widget
struct widget * get_minimap_window_widget(void)
Definition mapctrl.c:2203
button_down_on_map
void button_down_on_map(struct mouse_button_behavior *button_behavior)
Definition mapctrl.c:2280
get_research_widget
struct widget * get_research_widget(void)
Definition mapctrl.c:2219
overview_w
int overview_w
Definition mapctrl.c:99
button_up_on_map
void button_up_on_map(struct mouse_button_behavior *button_behavior)
Definition mapctrl.c:2351
enable_main_widgets
void enable_main_widgets(void)
Definition mapctrl.c:2180
finger_up_on_map
void finger_up_on_map(struct finger_behavior *finger_behavior)
Definition mapctrl.c:2267
resize_minimap
int resize_minimap(void)
Definition mapctrl.c:554
get_unit_info_window_widget
struct widget * get_unit_info_window_widget(void)
Definition mapctrl.c:2195
close_game_page
void close_game_page(void)
Definition mapctrl.c:2021
enable_and_redraw_revolution_button
void enable_and_redraw_revolution_button(void)
Definition mapctrl.c:2245
map_event_handler
bool map_event_handler(SDL_Keysym key)
Definition mapctrl.c:2445
show_game_page
void show_game_page(void)
Definition mapctrl.c:1958
overview_h
int overview_h
Definition mapctrl.c:100
get_revolution_widget
struct widget * get_revolution_widget(void)
Definition mapctrl.c:2227
popup_minimap_window
void popup_minimap_window(void)
Definition mapctrl.c:1650
hide_unitinfo_window_buttons
void hide_unitinfo_window_buttons(void)
Definition mapctrl.c:1593
disable_main_widgets
void disable_main_widgets(void)
Definition mapctrl.c:2102
disable_minimap_window_buttons
void disable_minimap_window_buttons(void)
Definition mapctrl.c:1911
enable_and_redraw_find_city_button
void enable_and_redraw_find_city_button(void)
Definition mapctrl.c:2235
show_minimap_window_buttons
void show_minimap_window_buttons(void)
Definition mapctrl.c:1798
set_new_minimap_window_pos
void set_new_minimap_window_pos(void)
Definition mapctrl.c:1386
hide_minimap_window_buttons
void hide_minimap_window_buttons(void)
Definition mapctrl.c:1836
show_unitinfo_window_buttons
void show_unitinfo_window_buttons(void)
Definition mapctrl.c:1569
popdown_minimap_window
void popdown_minimap_window(void)
Definition mapctrl.c:1945
disable_unitinfo_window_buttons
void disable_unitinfo_window_buttons(void)
Definition mapctrl.c:1617
set_new_unitinfo_window_pos
void set_new_unitinfo_window_pos(void)
Definition mapctrl.c:1332
popdown_unitinfo_window
void popdown_unitinfo_window(void)
Definition mapctrl.c:1637
popup_unitinfo_window
void popup_unitinfo_window(void)
Definition mapctrl.c:1454
redraw_minimap_window_buttons
void redraw_minimap_window_buttons(void)
Definition mapctrl.c:1874
finger_down_on_map
void finger_down_on_map(struct finger_behavior *finger_behavior)
Definition mapctrl.c:2254
get_tax_rates_widget
struct widget * get_tax_rates_widget(void)
Definition mapctrl.c:2211
gui_main.h
mapctrl_g.h
finger_behavior
Definition gui_main.h:83
mouse_button_behavior
Definition gui_main.h:91
widget
Definition widget.h:112
widget::key
SDL_Keycode key
Definition widget.h:153