//public int CompareTo(object obj) //{ // return Layer.CompareTo(obj); //} public UIElement(UIEnvironment environment) { parentEnvironment = environment; // Draw(environment.Canvas); }
public DelegateUIElement(UIEnvironment environment, DrawDelegate draw) : base(environment) { ShapeDraw = draw; Draw(); }
public BackgroundUIElement(UIEnvironment environment) : base(environment) { parentEnvironment.Canvas.OnModeChanged.Add(Canvas_OnModeChanged); SetScreenSize(); Draw(); }