Add profiling with Remotery
This commit is contained in:
parent
c37be6798f
commit
6331a2bf79
50 changed files with 16864 additions and 11 deletions
48
vis/extern/BrowserLib/WindowManager/Code/Container.js
vendored
Normal file
48
vis/extern/BrowserLib/WindowManager/Code/Container.js
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
namespace("WM");
|
||||
|
||||
|
||||
WM.Container = (function()
|
||||
{
|
||||
var template_html = "<div class='Container'></div>";
|
||||
|
||||
|
||||
function Container(x, y, w, h)
|
||||
{
|
||||
// Create a simple container node
|
||||
this.Node = DOM.Node.CreateHTML(template_html);
|
||||
this.SetPosition(x, y);
|
||||
this.SetSize(w, h);
|
||||
}
|
||||
|
||||
|
||||
Container.prototype.SetPosition = function(x, y)
|
||||
{
|
||||
this.Position = [ x, y ];
|
||||
DOM.Node.SetPosition(this.Node, this.Position);
|
||||
}
|
||||
|
||||
|
||||
Container.prototype.SetSize = function(w, h)
|
||||
{
|
||||
this.Size = [ w, h ];
|
||||
DOM.Node.SetSize(this.Node, this.Size);
|
||||
}
|
||||
|
||||
|
||||
Container.prototype.AddControlNew = function(control)
|
||||
{
|
||||
control.ParentNode = this.Node;
|
||||
this.Node.appendChild(control.Node);
|
||||
return control;
|
||||
}
|
||||
|
||||
|
||||
Container.prototype.ClearControls = function()
|
||||
{
|
||||
this.Node.innerHTML = "";
|
||||
}
|
||||
|
||||
|
||||
return Container;
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue