added properties to screen

now screen.w and screen.h give back size
and screen.initialized says if init() was succesfull
plus the array layers[] contains the list of currently added layers
This commit is contained in:
Jaromil
2010-04-02 18:23:43 +02:00
parent 997fe4e914
commit 59de73ecbb
5 changed files with 92 additions and 65 deletions

View File

@@ -1,7 +1,7 @@
// simple test for CairoLayer
scr = new Screen();
if (!scr.is_initialized()) {
if (!scr.initialized) {
// screen hasn't been initialized yet, let's do it now
scr.init(400,300);
add_screen(scr);