Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/zoom.h Source File

Freeciv-3.1

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);
23void zoom_phase_set(bool individual_tiles);
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);
32bool zoom_update(double time_until_next_call);
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 */
zoom_enabled
bool zoom_enabled
Definition zoom.c:26
zoom_1_0
void zoom_1_0(void)
Definition zoom.c:66
mouse_zoom
float mouse_zoom
Definition zoom.c:28
map_zoom
float map_zoom
Definition zoom.c:25
zoom_phase_set
void zoom_phase_set(bool individual_tiles)
Definition zoom.c:93
zoom_update
bool zoom_update(double time_until_next_call)
Definition zoom.c:172
zoom_set_steps
void zoom_set_steps(float *steps)
Definition zoom.c:80
zoom_set
void zoom_set(float new_zoom)
Definition zoom.c:49
zoom_step_down
void zoom_step_down(void)
Definition zoom.c:130
zoom_step_up
void zoom_step_up(void)
Definition zoom.c:106
zoom_start
void zoom_start(float tgt, bool tgt_1_0, float factor, float interval)
Definition zoom.c:156