public Window(Vector2 position, Vector2 clientSize) : base(position, clientSize) { TitleBar = new LayoutBox(position) { Parent = this }; ScaleNob = new LayoutBox(position, new Vector2(6)) { Parent = this }; ScaleNob.Dragged += scaleNob_Dragged; TitleBar.Dragged += titleBar_Dragged; Dragged += titleBar_Dragged; TitleBarSize = 20; //UpdateLayout(); }
public Window(Vector2 position, Vector2 clientSize) : base(position, clientSize) { titleBar = new LayoutBox(position) { Parent = this }; scaleNob = new LayoutBox(position, new Vector2(6)) { Parent = this }; scaleNob.Dragged += new RefEventHandler <Vector2>(scaleNob_Dragged); titleBar.Dragged += new RefEventHandler <Vector2>(titleBar_Dragged); this.Dragged += new RefEventHandler <Vector2>(titleBar_Dragged); TitleBarSize = 20; //UpdateLayout(); }