projects: update some short descriptions
[nit.git] / lib / mnit_linux / linux_app.nit
index edbede5..45d15c1 100644 (file)
@@ -19,23 +19,37 @@ module linux_app
 import mnit
 import sdl
 import linux_opengles1
+import linux
 
 in "C" `{
        #include <EGL/egl.h>
 `}
 
 redef class App
-       redef type IE: SDLInputEvent
        redef type D: Opengles1Display
        redef type I: Opengles1Image
 
-       redef init
+       redef fun setup
        do
+               if "NIT_TESTING".environ == "true" then exit 0
                display = new Opengles1Display
 
                super
 
-               init_window
+               on_create
+               on_restore_state
+               on_start
+               on_resume
+       end
+
+       redef fun run
+       do
+               super
+
+               on_pause
+               on_save_state
+               on_stop
+               on_destroy
        end
 
        redef fun generate_input