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