34 lines
564 B
C#
34 lines
564 B
C#
using System;
|
|
using OpenTK;
|
|
|
|
namespace org.budnhead
|
|
{
|
|
public class Control
|
|
{
|
|
internal Container parent;
|
|
|
|
public Control()
|
|
{
|
|
}
|
|
|
|
public Vector2 Position { get; set; }
|
|
public Vector2 Size { get; set; }
|
|
|
|
|
|
public Container Parent {
|
|
get { return this.parent; }
|
|
set { if (value == null) { if (this.parent != null) this.parent.removeChild(this); } else { value.addChild(this); } }
|
|
}
|
|
|
|
|
|
public virtual void paint(){
|
|
paintBorder();
|
|
paintControl();
|
|
}
|
|
public virtual void paintBorder(){
|
|
}
|
|
public virtual void paintControl(){
|
|
}
|
|
}
|
|
}
|