Window
Window is special case of View. It is a view re-sized to full device screen. It handles system events only. System events are listed in the table below :
onHide |
onShow |
onIdle |
onProcess |
onQuit |
onDraw |
onStart |
|
Window is used in application and game development. Window is a first responder and controls application runs.
Example of Window:
var app = new Moscrif.Window();
app.onStart = function(sender) {
//on start code goes here
}
app.onDraw = function(sender) {
//on draw code goes here
}
app.init();
app.run();