Пример #1
0
        public Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel CreatePanel(int left, int top, int right, int bottom)
        {
            Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel p = new Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel(left, top, right, bottom);
            int index = PANELS.Count;

            PANELS.Add(p);

            return(PANELS[index]);
        }
Пример #2
0
        public Window(string caption, Rectangle location, WindowState state)
        {
            AllowShade      = true;
            HasScrollBars   = true;
            State           = state;
            CaptionText     = caption;
            DefaultLocation = location;
            _last_area      = _client_area = DefaultLocation;

            _main_panel = new Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel(location.Left, location.Top, location.Right, location.Bottom);
            _main_panel.AlwaysRender = true;

            _caption_bar        = _client_area;
            _caption_bar.Height = _DEFAULT_CAPTION_HEIGHT_;

            _scroll_background_material.Diffuse  = ScrollBackground;
            _scroll_color_material.Diffuse       = ScrollColor;
            _border_color_material.Diffuse       = BorderColor;
            _caption_color_material.Diffuse      = CaptionColor;
            _caption_foreground_material.Diffuse = CaptionForeground;
            _background_color_material.Diffuse   = BackgroundColor;
        }
Пример #3
0
        public Window(string caption, int left, int top, int right, int bottom, WindowState state)
        {
            AllowShade = true;
            HasScrollBars = true;

            State = state;
            CaptionText = caption;

            DefaultLocation = Rectangle.FromLTRB(left, top, right, bottom);
            _last_area =  _client_area = DefaultLocation;

            _caption_bar = DefaultLocation;
            _caption_bar.Height = _DEFAULT_CAPTION_HEIGHT_;

            _main_panel = new Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel(left, _caption_bar.Bottom, right, bottom);
            _main_panel.AlwaysRender = true;

            _scroll_background_material.Diffuse = ScrollBackground;
            _scroll_color_material.Diffuse = ScrollColor;
            _border_color_material.Diffuse = BorderColor;
            _caption_color_material.Diffuse = CaptionColor;
            _caption_foreground_material.Diffuse = CaptionForeground;
            _background_color_material.Diffuse = BackgroundColor;

        }
Пример #4
0
        public Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel CreatePanel(int left, int top, int right, int bottom)
        {
            Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel p = new Aptima.Asim.DDD.Client.Common.GLCore.Controls.Panel(left, top, right, bottom);
            int index = PANELS.Count;

            PANELS.Add(p);

            return PANELS[index];
        }