(svn r8932) [cpp_gui] -Fix(r8931): forward enum declaration doesn't work for g++ cpp_gui
authorKUDr
Tue, 27 Feb 2007 22:59:55 +0000
branchcpp_gui
changeset 6265 7054c910251d
parent 6264 9fc3b5467396
child 6266 3fa43db5af91
(svn r8932) [cpp_gui] -Fix(r8931): forward enum declaration doesn't work for g++
src/widget/widget.h
--- a/src/widget/widget.h	Tue Feb 27 22:47:59 2007 +0000
+++ b/src/widget/widget.h	Tue Feb 27 22:59:55 2007 +0000
@@ -16,7 +16,16 @@
 
 #include "window_event_base.h"
 
-enum FrameFlags;
+enum FrameFlags {
+	FR_NONE         = 0x00,
+	FR_TRANSPARENT  = 0x01,  ///< Makes the background transparent if set
+	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)
+};
+
+DECLARE_ENUM_AS_BIT_SET(FrameFlags);
+
 
 namespace gui {
 
@@ -228,15 +237,5 @@
 
 }; // namespace gui
 
-enum FrameFlags {
-	FR_NONE         = 0x00,
-	FR_TRANSPARENT  = 0x01,  ///< Makes the background transparent if set
-	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)
-};
-
-DECLARE_ENUM_AS_BIT_SET(FrameFlags);
-
 
 #endif /* WIDGET_H */