예제 #1
0
파일: Window.cs 프로젝트: bartwe/Gearset
        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();
        }
예제 #2
0
파일: Window.cs 프로젝트: bartwe/Gearset
        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();
        }
예제 #3
0
파일: Window.cs 프로젝트: nanexcool/Gearset
        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();
        }