Index: /branches/gui/src/lib/gui/gl/glgui_widget.cc
===================================================================
--- /branches/gui/src/lib/gui/gl/glgui_widget.cc	(revision 8602)
+++ /branches/gui/src/lib/gui/gl/glgui_widget.cc	(revision 8603)
@@ -282,6 +282,6 @@
     LoadParam(root, "foreground-color", this, GLGuiWidget, setForegroundColorS);
 
-//    LoadParamXML(root, "backmat", this, GLGuiWidget, loadBackgroundMaterial);
-//    LoadParamXML(root, "frontmat", this, GLGuiWidget, loadForegroundMaterial);
+    //    LoadParamXML(root, "backmat", this, GLGuiWidget, loadBackgroundMaterial);
+    //    LoadParamXML(root, "frontmat", this, GLGuiWidget, loadForegroundMaterial);
 
     LoadParam(root, "feature-position", this, GLGuiWidget, setFeaturePositionS);
@@ -514,8 +514,8 @@
   }
 
-    /**
-   * @brief sets the Background Texture to all States.
-   * @param textureName the Texture's fileName.
-     */
+  /**
+  * @brief sets the Background Texture to all States.
+  * @param textureName the Texture's fileName.
+   */
   void GLGuiWidget::setBackgroundTexture(const std::string& textureName)
   {
@@ -620,5 +620,5 @@
 
   void GLGuiWidget::loadForegroundMaterial(const Material& material)
-  {}
+{}
   void GLGuiWidget::loadForegroundMaterial(const Material& material, OrxGui::State state)
   {}
@@ -707,8 +707,8 @@
     for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)
       if (stateName == OrxGui::StateString[i])
-    {
-      *state = (OrxGui::State)i;
-      return true;
-    }
+      {
+        *state = (OrxGui::State)i;
+        return true;
+      }
     return false;
   }
@@ -740,3 +740,55 @@
   }
 
+  void GLGuiWidget::debug() const
+  {
+    PRINT(0)("Debug of %s::%s - WidgetPart ", this->getClassName(), this->getName());
+    if (_parent != NULL)
+      PRINT(0)("- Parent %s::%s ", _parent->getClassName(), _parent->getName());
+    PRINT(0)("- State: %s", StateString[_state].c_str());
+
+    if (_focusable)
+      PRINT(0)("- focusable ");
+    if (_clickable)
+      PRINT(0)("- Clickable ");
+    if (_pushed)
+      PRINT(0)("- Pushed ");
+    PRINT(0)("\n");
+
+
+    PRINT(0)("Minimum Size %0.2f %0.2f ", _minSize.x, _minSize.y);
+    PRINT(0)("Back Rect: ");
+    _backRect.debug();
+    PRINT(0)("Style:\n");
+
+    for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)
+    {
+      PRINT(0)("In State %s: \n", StateString[i].c_str());
+
+      PRINT(0)("  Borders: Left: %0.2f, Right: %0.2f, Top: %0.2f, Bottom %0.2f\n",
+               _style[i]._borderLeft, _style[i]._borderRight, _style[i]._borderTop, _style[i]._borderBottom);
+      PRINT(0)("  TextSize %0.2f", _style[i]._textSize);
+      PRINT(0)(" - BackgroundColor"); _style[i]._background.diffuseColor().debug();
+      PRINT(0)(" - ForegroundColor"); _style[i]._foreground.diffuseColor().debug();
+      PRINT(0)("\n");
+    }
+
+
+    PRINT(0)(" Feature at %s ", FeaturePositionString[_featurePosition].c_str());
+    /// TODO    PRINT(0)("");    Font*               _font;                 //!< The Font used in the current Widget.
+
+    if (_animated)
+      PRINT(0)("- Animated ");
+    if (_animatedStateChanges)
+      PRINT(0)("- AnimatedStateChanges");
+    PRINT(0)("\n");
+
+    /*
+    float               _animationCycle;
+    float               _animationDuration;
+    StatedStyle         _currentStyle;
+    OrxGui::State       _currentState;
+    */
+  }
+
+
 }
Index: /branches/gui/src/lib/gui/gl/glgui_widget.h
===================================================================
--- /branches/gui/src/lib/gui/gl/glgui_widget.h	(revision 8602)
+++ /branches/gui/src/lib/gui/gl/glgui_widget.h	(revision 8603)
@@ -250,4 +250,5 @@
     virtual void destroyed();
 
+    virtual void debug() const;
 
   private:
Index: /branches/gui/src/lib/math/rect2D.cc
===================================================================
--- /branches/gui/src/lib/math/rect2D.cc	(revision 8602)
+++ /branches/gui/src/lib/math/rect2D.cc	(revision 8603)
@@ -475,2 +475,9 @@
 }
 
+/**
+ * @brief print debug output for the Rect
+ */
+void Rect2D::debug() const
+{
+  PRINT(0)("Top: %0.2f Left: %0.2f; Bottom %0.2f Right:%0.2f; Size: %0.2fx%0.2f\n", top(), left(), bottom(), right(), size().x, size().y);
+}
Index: /branches/gui/src/lib/math/rect2D.h
===================================================================
--- /branches/gui/src/lib/math/rect2D.h	(revision 8602)
+++ /branches/gui/src/lib/math/rect2D.h	(revision 8603)
@@ -127,4 +127,6 @@
   const Rect2D& slerp(const Rect2D& rect, float value);
 
+  void debug() const;
+
 private:
   Vector2D _topLeft;
Index: /branches/gui/src/lib/util/color.cc
===================================================================
--- /branches/gui/src/lib/util/color.cc	(revision 8602)
+++ /branches/gui/src/lib/util/color.cc	(revision 8603)
@@ -24,4 +24,6 @@
   printf("r:%0.2f g:%0.2f, b:%0.2f, a:%0.2f\n", r(), g(), b(), a());
 }
+
+
 
 /**
