diff options
author | rubidium <rubidium@openttd.org> | 2009-11-19 17:56:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-19 17:56:03 +0000 |
commit | 089992ef13310f22923ec65399f5d2bd350ce473 (patch) | |
tree | 2a3159aa66ee97837bbc93d899607c4a5f9ae0ec /src/widget_type.h | |
parent | a36c258644004932f30322d237e0be7214a2191f (diff) | |
download | openttd-089992ef13310f22923ec65399f5d2bd350ce473.tar.xz |
(svn r18186) -Add: a widgets for left/right arrows with the ability to turn themselves around when a RTL language is loaded
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 18afdbdc2..1dc4fc782 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -83,6 +83,14 @@ enum MatrixWidgetValues { MAT_ROW_BITS = 8, ///< Number of bits for the number of rows in the matrix. }; +/** Values for an arrow widget */ +enum ArrowWidgetValues { + AWV_DECREASE, ///< Arrow to the left or in case of RTL to the right + AWV_INCREASE, ///< Arrow to the right or in case of RTL to the left + AWV_LEFT, ///< Force the arrow to the left + AWV_RIGHT, ///< Force the arrow to the right +}; + /** * Window widget types, nested widget types, and nested widget part types. */ @@ -121,6 +129,7 @@ enum WidgetType { NWID_SELECTION, ///< Stacked widgets, only one visible at a time (eg in a panel with tabs). NWID_VIEWPORT, ///< Nested widget containing a viewport. NWID_BUTTON_DRPDOWN, ///< Button with a drop-down. + NWID_BUTTON_ARROW, ///< Button with an arrow /* Nested widget part types. */ WPT_RESIZE, ///< Widget part for specifying resizing. |