Esempio n. 1
0
        public Window(string name, string title, Font font, int x, int y, int width, int height)
        {
            Name    = name;
            _title  = title;
            _font   = font;
            _border = WindowBorderStyle.Sizeable;
            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            X      = x;
            Y      = y;
            Width  = width;
            Height = height;

            _pnl = new Panel("pnl", x, y, width, height)
            {
                BackColor = Colors.Wheat
            };
            ActiveChild = _pnl;
            // ReSharper restore DoNotCallOverridableMethodsInConstructor

            _canClose = true;
            _canMax   = true;
            _canMin   = true;
        }
 /// <summary>
 /// Sets the style of the supplied window borders.
 /// </summary>
 /// <param name="window">The window to modify.</param>
 /// <param name="borderStyle">The border style to apply to the window.</param>
 protected internal abstract void SetWindowBorderStyle(Window window, WindowBorderStyle borderStyle);
Esempio n. 3
0
 public GuiWindow()
 {
     dragBorderSizes = new int[] { 20, 20, 20, 20 };
     borderStyle     = WindowBorderStyle.Normal;
 }
Esempio n. 4
0
 public WindowCreateOptions(bool showInTaskbar, WindowBorderStyle windowBorderStyle)
 {
     this.showInTaskbar     = showInTaskbar;
     this.windowBorderStyle = windowBorderStyle;
 }