summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-24 13:27:22 +0000
committerrubidium <rubidium@openttd.org>2010-04-24 13:27:22 +0000
commite75e2648fc5a9c741629ef1efc8a097c655ed035 (patch)
tree37af684212bbdd39ab92860c5e0adb3e68f9fb87 /src/widget_type.h
parentfef77ca53e2d3a381889aecc6739053f1582143b (diff)
downloadopenttd-e75e2648fc5a9c741629ef1efc8a097c655ed035.tar.xz
(svn r19706) -Add: support for the (NewGRF) debug box
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index d73f2d428..4c9585eb2 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -65,6 +65,7 @@ enum WidgetType {
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_DEBUGBOX, ///< NewGRF debug box (between shade box and caption)
WWT_SCROLL2BAR, ///< 2nd vertical scrollbar
WWT_RESIZEBOX, ///< Resize box (normally at bottom-right of a window)
WWT_CLOSEBOX, ///< Close box (at top-left of a window)
@@ -480,6 +481,7 @@ public:
static void InvalidateDimensionCache();
private:
static Dimension shadebox_dimension; ///< Cached size of a shadebox widget.
+ static Dimension debugbox_dimension; ///< Cached size of a debugbox 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.