2011-04-23 16:45:50 +00:00
|
|
|
// vim: et:ts=4:sw=4:sts=4:ft=js
|
2011-05-16 08:24:46 +00:00
|
|
|
/*@
|
|
|
|
Ox.Window <f:Ox.Element> Window object
|
|
|
|
() -> <f> Window object
|
|
|
|
(options) -> <f> Window object
|
|
|
|
(options, self) -> <f> Window object
|
|
|
|
options <o> Options object
|
|
|
|
draggable <b|true> is window draggable
|
|
|
|
fullscreenable <b|true> fixme: silly name
|
|
|
|
height <n|225> height
|
|
|
|
resizeable <b|true> resizeable
|
|
|
|
scaleable <b|true> sccaleable
|
|
|
|
width <n|400> width
|
|
|
|
self <o> Shared private variable
|
|
|
|
@*/
|
2011-04-22 22:03:10 +00:00
|
|
|
Ox.Window = function(options, self) {
|
|
|
|
|
|
|
|
self = self || {},
|
2011-04-29 12:40:51 +00:00
|
|
|
that = new Ox.Element({}, self)
|
2011-04-22 22:03:10 +00:00
|
|
|
.defaults({
|
|
|
|
draggable: true,
|
|
|
|
fullscreenable: true, // fixme: silly name
|
|
|
|
height: 225,
|
|
|
|
resizeable: true,
|
|
|
|
scaleable: true,
|
|
|
|
width: 400
|
|
|
|
})
|
|
|
|
.options(options || {})
|
|
|
|
|
|
|
|
self.center = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
self.drag = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
self.fullscreen = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2011-04-29 12:40:51 +00:00
|
|
|
self.setOption = function() {
|
2011-04-22 22:03:10 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
self.reset = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
self.resize = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
self.scale = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
that.close = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
that.open = function() {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
return that;
|
|
|
|
|
|
|
|
};
|