diff options
author | tron <tron@openttd.org> | 2006-08-29 06:07:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-29 06:07:57 +0000 |
commit | 17c610c0f49142168d834cdb34c780d79b9ccfd1 (patch) | |
tree | 164b9142d238f73a8ae387c96a49c99228de05e2 /window.h | |
parent | fc7a80c4707ce31181b047e73ca9ceea56cb9e2d (diff) | |
download | openttd-17c610c0f49142168d834cdb34c780d79b9ccfd1.tar.xz |
(svn r6209) Move DrawFrameRect() out of gfx.[ch], because it uses data (_color_list) which the renderer shouldn't have know about
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -61,13 +61,15 @@ typedef struct Widget { StringID tooltips; } Widget; -enum FrameFlags { +typedef enum FrameFlags { FR_TRANSPARENT = 0x01, ///< Makes the background transparent if set FR_NOBORDER = 0x08, ///< Hide border (draws just a solid box) FR_BORDERONLY = 0x10, ///< Draw border only, no background FR_LOWERED = 0x20, ///< If set the frame is lowered and the background color brighter (ie. buttons when pressed) FR_DARKENED = 0x40, ///< If set the background is darker, allows for lowered frames with normal background color when used with FR_LOWERED (ie. dropdown boxes) -}; +} FrameFlags; + +void DrawFrameRect(int left, int top, int right, int bottom, int color, FrameFlags flags); /* XXX - outside "byte event" so you can set event directly without going into * the union elements at first. Because of this every first element of the union |