(svn r6209) Move DrawFrameRect() out of gfx.[ch], because it uses data (_color_list) which the renderer shouldn't have know about
This commit is contained in:
6
window.h
6
window.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user