diff options
author | hackykid <hackykid@openttd.org> | 2005-06-15 17:27:14 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-15 17:27:14 +0000 |
commit | 8607bbf06d0fd1781c6ea7cb551327bfde2a6b4b (patch) | |
tree | 675809baa0b80a6754f7327b5b7cc056952ef6e0 /window.h | |
parent | b73099e083489ffea5d226517e5193bd7f742202 (diff) | |
download | openttd-8607bbf06d0fd1781c6ea7cb551327bfde2a6b4b.tar.xz |
(svn r2444) - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_)
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -61,6 +61,14 @@ typedef struct Widget { uint16 tooltips; } Widget; +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) +}; + /* 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 * MUST BE 'byte event'. Whoever did this must get shot! Scheduled for immediate |