using System; using System.Collections.Generic; using System.Linq; using System.Text; using Orvid.Graphics; namespace OForms { /// /// The base class of all controls in the OForms Framework. /// public abstract class OControl { /// /// This is the unique id of the control. /// public int CID; /// /// The size of the control. /// public Vec2 Size; /// /// The location of the control. /// Measured from the top left corner. /// public Vec2 Location; /// /// The parent of the OControl. /// Null if this control is the window itself. /// public OControl Parent; /// /// The color of the OControl. /// public uint Color; /// /// Draws the control. /// public abstract void Draw(Image i); } }