Freeciv-3.2
Loading...
Searching...
No Matches
zoom.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#ifndef FC__ZOOM_H
14#define FC__ZOOM_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20void zoom_set(float new_zoom);
21void zoom_1_0(void);
22void zoom_set_steps(float *steps);
24
25#define zoom_get_level() map_zoom
26#define zoom_is_enabled() zoom_enabled
27
28void zoom_step_up(void);
29void zoom_step_down(void);
30
31void zoom_start(float tgt, bool tgt_1_0, float factor, float interval);
33
34extern bool zoom_enabled;
35extern float map_zoom;
36extern float mouse_zoom;
37
38#ifdef __cplusplus
39}
40#endif /* __cplusplus */
41
42#endif /* FC__ZOOM_H */
char * incite_cost
Definition comments.c:75
bool zoom_enabled
Definition zoom.c:26
void zoom_1_0(void)
Definition zoom.c:66
float mouse_zoom
Definition zoom.c:28
float map_zoom
Definition zoom.c:25
void zoom_phase_set(bool individual_tiles)
Definition zoom.c:93
bool zoom_update(double time_until_next_call)
Definition zoom.c:172
void zoom_set_steps(float *steps)
Definition zoom.c:80
void zoom_set(float new_zoom)
Definition zoom.c:49
void zoom_step_down(void)
Definition zoom.c:130
void zoom_step_up(void)
Definition zoom.c:106
void zoom_start(float tgt, bool tgt_1_0, float factor, float interval)
Definition zoom.c:156