OpenTTD
date_gui.h
Go to the documentation of this file.
1 /* $Id: date_gui.h 18809 2010-01-15 16:41:15Z rubidium $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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 <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef DATE_GUI_H
13 #define DATE_GUI_H
14 
15 #include "date_type.h"
16 #include "window_type.h"
17 
23 typedef void SetDateCallback(const Window *w, Date date);
24 
25 void ShowSetDateWindow(Window *parent, int window_number, Date initial_date, Year min_year, Year max_year, SetDateCallback *callback);
26 
27 #endif /* DATE_GUI_H */
Types related to windows.
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
Definition: date_type.h:20
void ShowSetDateWindow(Window *parent, int window_number, Date initial_date, Year min_year, Year max_year, SetDateCallback *callback)
Create the new &#39;set date&#39; window.
Definition: date_gui.cpp:215
Data structure for an opened window.
Definition: window_gui.h:271
void SetDateCallback(const Window *w, Date date)
Callback for when a date has been chosen.
Definition: date_gui.h:23
Types related to the dates in OpenTTD.
int32 Date
The type to store our dates in.
Definition: date_type.h:16