diff options
author | frosch <frosch@openttd.org> | 2013-05-26 19:30:07 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-26 19:30:07 +0000 |
commit | 4e4e635916d7852c0da9a53edd2d510080922ed5 (patch) | |
tree | 3131851c69f879767d377c68d8e7c8a3f9910a9a /src/widget_type.h | |
parent | 559b7ef35eb4896e4f2e35d2dc8afb3d86519c3e (diff) | |
download | openttd-4e4e635916d7852c0da9a53edd2d510080922ed5.tar.xz |
(svn r25294) -Feature: Add another button to window title bars to resize the window to its default size.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 1bd4f88fe..222983cd2 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -60,9 +60,11 @@ enum WidgetType { WWT_FRAME, ///< Frame WWT_CAPTION, ///< Window caption (window title between closebox and stickybox) - WWT_SHADEBOX, ///< Shade box (at top-right of a window, between caption and stickybox) - WWT_STICKYBOX, ///< Sticky box (normally at top-right of a window) - WWT_DEBUGBOX, ///< NewGRF debug box (between shade box and caption) + WWT_DEBUGBOX, ///< NewGRF debug box (at top-right of a window, between WWT_CAPTION and WWT_SHADEBOX) + WWT_SHADEBOX, ///< Shade box (at top-right of a window, between WWT_DEBUGBOX and WWT_DEFSIZEBOX) + WWT_DEFSIZEBOX, ///< Default window size box (at top-right of a window, between WWT_SHADEBOX and WWT_STICKYBOX) + WWT_STICKYBOX, ///< Sticky box (at top-right of a window, after WWT_DEFSIZEBOX) + WWT_RESIZEBOX, ///< Resize box (normally at bottom-right of a window) WWT_CLOSEBOX, ///< Close box (at top-left of a window) WWT_DROPDOWN, ///< Drop down list @@ -778,6 +780,7 @@ public: private: static Dimension shadebox_dimension; ///< Cached size of a shadebox widget. static Dimension debugbox_dimension; ///< Cached size of a debugbox widget. + static Dimension defsizebox_dimension; ///< Cached size of a defsizebox widget. static Dimension stickybox_dimension; ///< Cached size of a stickybox widget. static Dimension resizebox_dimension; ///< Cached size of a resizebox widget. static Dimension closebox_dimension; ///< Cached size of a closebox widget. |