diff options
author | Darkvater <darkvater@openttd.org> | 2006-09-04 15:44:28 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-09-04 15:44:28 +0000 |
commit | 56d06ba0a75b7157fdd236327cd08f9b0538551e (patch) | |
tree | 86531580a623b508d7fd6804425e9004d31057d9 /window.h | |
parent | b7f36808acfd52ff64bfb454260bb4071acbd6e7 (diff) | |
download | openttd-56d06ba0a75b7157fdd236327cd08f9b0538551e.tar.xz |
(svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it to 'data'.
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -36,7 +36,7 @@ typedef void WindowProc(Window *w, WindowEvent *e); w->resize.width or w->resize.height. That was all.. good luck, and enjoy :) -- TrueLight */ -enum { +enum ResizeFlags { RESIZE_NONE = 0, RESIZE_LEFT = 1, @@ -50,15 +50,15 @@ enum { RESIZE_LRB = RESIZE_LEFT | RESIZE_RIGHT | RESIZE_BOTTOM, RESIZE_LRTB = RESIZE_LEFT | RESIZE_RIGHT | RESIZE_TOP | RESIZE_BOTTOM, RESIZE_RTB = RESIZE_RIGHT | RESIZE_TOP | RESIZE_BOTTOM, -}; +} ResizeFlag; typedef struct Widget { - byte type; - byte resize_flag; - byte color; - uint16 left, right, top, bottom; - uint16 unkA; - StringID tooltips; + byte type; ///< Widget type, see @WindowWidgetTypes + byte resize_flag; ///< Resize direction, alignment, etc. during resizing, see @ResizeFlags + byte color; ///< Widget colour, see docs/ottd-colourtext-palette.png + uint16 left, right, top, bottom; ///< The position offsets inside the window + uint16 data; ///< The String/Image or special code (list-matrixes) of a widget + StringID tooltips; ///< Tooltips that are shown when rightclicking on a widget } Widget; typedef enum FrameFlags { |