Freeciv-3.3
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/* SDL3 */
26#include <SDL3/SDL.h>
27
28/* common */
29#include "fc_types.h"
30
31/* client/gui-sdl3 */
32#include "gui_main.h"
33
34#include "mapctrl_g.h"
35
36#ifdef GUI_SDL3_SMALL_SCREEN
37
38#define BLOCKM_W 28
39#define BLOCKU_W 15
40#define DEFAULT_OVERVIEW_W 78
41#define DEFAULT_OVERVIEW_H 52
42#define DEFAULT_UNITS_W (78 + BLOCKU_W)
43#define DEFAULT_UNITS_H 52
44
45#else /* GUI_SDL3_SMALL_SCREEN */
46
47#define BLOCKM_W 52
48#define BLOCKU_W 28
49#define DEFAULT_OVERVIEW_W 156
50#define DEFAULT_OVERVIEW_H 104
51#define DEFAULT_UNITS_W (158 + BLOCKU_W)
52#define DEFAULT_UNITS_H 104
53
54#endif /* GUI_SDL3_SMALL_SCREEN */
55
56extern int overview_w;
57extern int overview_h;
58
59void popdown_newcity_dialog(void);
60
61void popup_minimap_window(void);
66void popdown_minimap_window(void);
67
68void popup_unitinfo_window(void);
73
74void show_game_page(void);
75void close_game_page(void);
76
79int resize_minimap(void);
83struct widget *get_tax_rates_widget(void);
84struct widget *get_research_widget(void);
85struct widget *get_revolution_widget(void);
88void enable_main_widgets(void);
89void disable_main_widgets(void);
91
94
97
98#endif /* FC__MAPCTRL_H */
char * incite_cost
Definition comments.c:76
static struct mouse_button_behavior button_behavior
Definition gui_main.c:131
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