public HostWindow(BuildControlHandler BuildControl, string Title, int Width, int Height) : base(Width, Height, GraphicsMode.Default, Title, GameWindowFlags.Default) { this._KeyboardState = new WindowKeyboardState(this); this._MouseState = new WindowMouseState(this); this._Control = BuildControl(); }
public AlignContainer(Control Client, Point ClientSize, Align HorizontalAlign, Align VerticalAlign) { this._Client = Client; this._ClientSize = ClientSize; this._VerticalAlign = VerticalAlign; this._HorizontalAlign = HorizontalAlign; }
public Form(FormStyle Style, Control Client, string Text) { this._RightTitleBar = new FlowContainer(Style.TitleBarItemSeperation, Axis.Horizontal); this._Client = Client; this._Style = Style; this._Text = Text; }
/// <summary> /// Adds a child to the end of the flow container. Size is the size of the child on the axis of the flow container. /// </summary> public void AddChild(Control Child, double Size) { this._Children.Add(new _Child() { Control = Child, Size = Size }); }
/// <summary> /// Adds a child control at the specified position and size. /// </summary> public void AddChild(Control Child, Rectangle Area) { this.ResizeChild(Child, Area.Size); this._Children.Add(new _Child() { Control = Child, Offset = Area.Location }); }
/// <summary> /// Adds a button the the right of the titlebar of the form. Buttons will have no text on them and will be distinguishable only by style. /// </summary> public Button AddTitlebarButton(ButtonStyle Style, Control Client) { Button b = new Button(Style); if (Client != null) { b.Client = Client; } this.AddTitlebarItem(b, this._Style.TitleBarButtonWidth); return b; }
public LayerContainer(Control Background) : this(new LayerContainerStyle(), Background) { }
public LayerContainer(LayerContainerStyle Style, Control Background) { this._Style = Style; this._LayerControls = new LinkedList<LayerControl>(); this._Background = Background; }
public ScrollContainer(ScrollContainerStyle Style, WindowContainer Window, Control View) { this._Style = Style; this._View = View; this._Window = Window; }
public WindowContainer(Control Client) { this._Client = Client; }
public ScrollContainer(WindowContainer Window, Control View) : this(new ScrollContainerStyle(), Window, View) { }
public ScrollContainer(ScrollContainerStyle Style, Control Client) { this._Style = Style; this._View = this._Window = new WindowContainer(Client); }
public PopupContainer(Control Client) : base(Client) { this._Style = new PopupStyle(); this._ShowOnRightClick = true; }
public ScrollContainer(Control Client) : this(new ScrollContainerStyle(), Client) { }
public SplitContainer(Axis Direction, Control Near, Control Far) { this._Direction = Direction; this._Near = Near; this._Far = Far; }
/// <summary> /// Adds an item to the right of the titlebar of the form. /// </summary> public void AddTitlebarItem(Control Item, double Width) { this._RightTitleBar.AddChild(Item, Width); this.OnResize(this.Size); }
public SingleContainer(Control Client) { this._Client = Client; }
/// <summary> /// Resizes a child control. /// </summary> protected void ResizeChild(Control Child, Point Size) { Child._Size = Size; Child.OnResize(Size); }
public MarginContainer(Control Child, double Margin) { this._Child = Child; this._Margin = Margin; }
public BorderContainer(Control Client) { this._Client = Client; this._Color = Color.RGB(0.0, 0.0, 0.0); }
public Form(Control Client, string Text) : this(new FormStyle(), Client, Text) { }