summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown_func.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-14 16:10:58 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-14 16:10:58 +0000
commite4c05f8d789b8a83159313d3ce745745038a7b67 (patch)
tree3a4930e55ee49d4a3da2e6070bc4f6751fd11cda /src/widgets/dropdown_func.h
parent7beb63a93bf48b38cbd1e6a258968acf50099a2c (diff)
downloadopenttd-e4c05f8d789b8a83159313d3ce745745038a7b67.tar.xz
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
Diffstat (limited to 'src/widgets/dropdown_func.h')
-rw-r--r--src/widgets/dropdown_func.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/widgets/dropdown_func.h b/src/widgets/dropdown_func.h
new file mode 100644
index 000000000..dd6b430bc
--- /dev/null
+++ b/src/widgets/dropdown_func.h
@@ -0,0 +1,12 @@
+/* $Id$ */
+
+#ifndef WIDGETS_DROPDOWN_FUNC_H
+#define WIDGETS_DROPDOWN_FUNC_H
+
+/* Show drop down menu containing a fixed list of strings */
+void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask);
+
+/* Hide drop down menu of a parent window */
+void HideDropDownMenu(Window *pw);
+
+#endif /* WIDGETS_DROPDOWN_FUNC_H */