OpenTTD Source: src/date_gui.h Source File

OpenTTD Source 15.0-RC2

date_gui.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef DATE_GUI_H
11#define DATE_GUI_H
12
13#include "timer/timer_game_economy.h"
14#include "window_type.h"
15
21 using SetDateCallback = std::function<void (const Window *w, TimerGameEconomy::Date date)>;
22
23void ShowSetDateWindow(Window *parent, int window_number, TimerGameEconomy::Date initial_date, TimerGameEconomy::Year min_year, TimerGameEconomy::Year max_year, SetDateCallback &&callback);
24
25#endif /* DATE_GUI_H */
ShowSetDateWindow
void ShowSetDateWindow(Window *parent, int window_number, TimerGameEconomy::Date initial_date, TimerGameEconomy::Year min_year, TimerGameEconomy::Year max_year, SetDateCallback &&callback)
Create the new 'set date' window.
Definition date_gui.cpp:214
SetDateCallback
std::function< void(const Window *w, TimerGameEconomy::Date date)> SetDateCallback
Callback for when a date has been chosen.
Definition date_gui.h:21
Window
Data structure for an opened window.
Definition window_gui.h:274
timer_game_economy.h
Definition of the game-economy-timer.
window_type.h
Types related to windows.