summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-12 09:14:34 +0000
committerfrosch <frosch@openttd.org>2010-08-12 09:14:34 +0000
commitb37be47f162a614ddfb0a777331d7c402930aec5 (patch)
treeba7909ff163a1b023bc4f69ba3c424684813d49b /src/widget_type.h
parent6e9c9c28d950a822beb0fb4e76d5ba40a247085c (diff)
downloadopenttd-b37be47f162a614ddfb0a777331d7c402930aec5.tar.xz
(svn r20460) -Codechange: Remove WF_SCROLL window flags and store the state directly in the scrollbar widget instead.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index 961a6c4c9..067e892e9 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -250,6 +250,9 @@ enum NWidgetDisplay {
NDB_SHADE_DIMMED = 4, ///< Display dimmed colours in the viewport.
/* Button dropdown widget. */
NDB_DROPDOWN_ACTIVE = 5, ///< Dropdown menu of the button dropdown widget is active. @see #NWID_BUTTON_DRPDOWN
+ /* Scrollbar widget. */
+ NDB_SCROLLBAR_UP = 6, ///< Up-button is lowered bit.
+ NDB_SCROLLBAR_DOWN = 7, ///< Down-button is lowered bit.
ND_LOWERED = 1 << NDB_LOWERED, ///< Bit value of the lowered flag.
ND_DISABLED = 1 << NDB_DISABLED, ///< Bit value of the disabled flag.
@@ -257,6 +260,8 @@ enum NWidgetDisplay {
ND_SHADE_GREY = 1 << NDB_SHADE_GREY, ///< Bit value of the 'shade to grey' flag.
ND_SHADE_DIMMED = 1 << NDB_SHADE_DIMMED, ///< Bit value of the 'dimmed colours' flag.
ND_DROPDOWN_ACTIVE = 1 << NDB_DROPDOWN_ACTIVE, ///< Bit value of the 'dropdown active' flag.
+ ND_SCROLLBAR_UP = 1 << NDB_SCROLLBAR_UP, ///< Bit value of the 'scrollbar up' flag.
+ ND_SCROLLBAR_DOWN = 1 << NDB_SCROLLBAR_DOWN, ///< Bit value of the 'scrollbar down' flag.
};
DECLARE_ENUM_AS_BIT_SET(NWidgetDisplay)