Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public AlignContainer(Control Client, Point ClientSize, Align HorizontalAlign, Align VerticalAlign)
 {
     this._Client = Client;
     this._ClientSize = ClientSize;
     this._VerticalAlign = VerticalAlign;
     this._HorizontalAlign = HorizontalAlign;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 /// <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
     });
 }
Esempio n. 5
0
 /// <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
     });
 }
Esempio n. 6
0
 /// <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;
 }
Esempio n. 7
0
 public LayerContainer(Control Background)
     : this(new LayerContainerStyle(), Background)
 {
 }
Esempio n. 8
0
 public LayerContainer(LayerContainerStyle Style, Control Background)
 {
     this._Style = Style;
     this._LayerControls = new LinkedList<LayerControl>();
     this._Background = Background;
 }
Esempio n. 9
0
 public ScrollContainer(ScrollContainerStyle Style, WindowContainer Window, Control View)
 {
     this._Style = Style;
     this._View = View;
     this._Window = Window;
 }
Esempio n. 10
0
 public WindowContainer(Control Client)
 {
     this._Client = Client;
 }
Esempio n. 11
0
 public ScrollContainer(WindowContainer Window, Control View)
     : this(new ScrollContainerStyle(), Window, View)
 {
 }
Esempio n. 12
0
 public ScrollContainer(ScrollContainerStyle Style, Control Client)
 {
     this._Style = Style;
     this._View = this._Window = new WindowContainer(Client);
 }
Esempio n. 13
0
 public PopupContainer(Control Client)
     : base(Client)
 {
     this._Style = new PopupStyle();
     this._ShowOnRightClick = true;
 }
Esempio n. 14
0
 public ScrollContainer(Control Client)
     : this(new ScrollContainerStyle(), Client)
 {
 }
Esempio n. 15
0
 public SplitContainer(Axis Direction, Control Near, Control Far)
 {
     this._Direction = Direction;
     this._Near = Near;
     this._Far = Far;
 }
Esempio n. 16
0
 /// <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);
 }
Esempio n. 17
0
 public SingleContainer(Control Client)
 {
     this._Client = Client;
 }
Esempio n. 18
0
 /// <summary>
 /// Resizes a child control.
 /// </summary>
 protected void ResizeChild(Control Child, Point Size)
 {
     Child._Size = Size;
     Child.OnResize(Size);
 }
Esempio n. 19
0
 public MarginContainer(Control Child, double Margin)
 {
     this._Child = Child;
     this._Margin = Margin;
 }
Esempio n. 20
0
 public BorderContainer(Control Client)
 {
     this._Client = Client;
     this._Color = Color.RGB(0.0, 0.0, 0.0);
 }
Esempio n. 21
0
 public Form(Control Client, string Text)
     : this(new FormStyle(), Client, Text)
 {
 }