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();
}