XNAInterfaceComponents.Components.Component.Component C# (CSharp) Method

Component() public method

public Component ( ParentComponent parent, Rectangle bounds ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
return System
        public Component(ParentComponent parent, Rectangle bounds)
        {
            this.parent = parent;
            this.bounds = bounds;
            this.backgroundColor = Color.White;
            this.mouseOverColor = Color.Orange;
            this.visible = true;
            this.border = new Border(this, 1, Color.Black);
            if (parent != null) this.z = parent.z - 0.01f;
            else this.z = 1f - this.GetDrawDepthOffset();
        }