2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file dropdown_func.h Functions related to the drop down widget. */
|
|
|
|
|
2008-01-14 16:10:58 +00:00
|
|
|
#ifndef WIDGETS_DROPDOWN_FUNC_H
|
|
|
|
#define WIDGETS_DROPDOWN_FUNC_H
|
|
|
|
|
2010-01-15 16:41:15 +00:00
|
|
|
#include "../window_gui.h"
|
|
|
|
|
2008-01-14 16:10:58 +00:00
|
|
|
/* Show drop down menu containing a fixed list of strings */
|
2008-04-09 23:00:12 +00:00
|
|
|
void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask, uint width = 0);
|
2008-01-14 16:10:58 +00:00
|
|
|
|
|
|
|
/* Hide drop down menu of a parent window */
|
2009-02-01 22:32:07 +00:00
|
|
|
int HideDropDownMenu(Window *pw);
|
2008-01-14 16:10:58 +00:00
|
|
|
|
|
|
|
#endif /* WIDGETS_DROPDOWN_FUNC_H */
|