diff options
author | alberth <alberth@openttd.org> | 2009-12-21 16:06:20 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-12-21 16:06:20 +0000 |
commit | ca66652005babd3a45717e00ab89f3653098122a (patch) | |
tree | cc797ff9856637b5969a826e33523ee937ea4dea /src/widget_type.h | |
parent | c03aadda08b2a1626aba0a3cd50595df0a368f46 (diff) | |
download | openttd-ca66652005babd3a45717e00ab89f3653098122a.tar.xz |
(svn r18583) -Codechange: Add WWT_SHADEBOX widget and its functions (heavily based on code by erikjanp).
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 549db6236..b6bbbbabb 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -61,6 +61,7 @@ enum WidgetType { WWT_CAPTION, ///< Window caption (window title between closebox and stickybox) WWT_HSCROLLBAR, ///< Horizontal scrollbar + 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_SCROLL2BAR, ///< 2nd vertical scrollbar WWT_RESIZEBOX, ///< Resize box (normally at bottom-right of a window) @@ -468,6 +469,7 @@ public: static void InvalidateDimensionCache(); private: + static Dimension shadebox_dimension; ///< Cached size of a shadebox 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. |