Package totalcross
Interface MainClass
-
- All Known Implementing Classes:
Conduit,GameEngine,MainWindow,Service,TestSuite
public interface MainClassThis is the main class of a TotalCross package. It is useful to create headless applications. Note that totalcross.ui.MainWindow implements this interface, so you must implement it yourself only if you're creating a headless (no user interface) application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void_onTimerTick(boolean canUpdate)Called by the vm when a timer event has been triggered.void_postEvent(int type, int key, int x, int y, int modifiers, int timeStamp)Called by the vm when an event is postedvoidappEnding()Called by the vm when the application is endingvoidappStarting(int timeAvail)Called by the vm when the application is starting
-
-
-
Method Detail
-
_postEvent
void _postEvent(int type, int key, int x, int y, int modifiers, int timeStamp)Called by the vm when an event is posted
-
appStarting
void appStarting(int timeAvail)
Called by the vm when the application is starting
-
appEnding
void appEnding()
Called by the vm when the application is ending
-
_onTimerTick
void _onTimerTick(boolean canUpdate)
Called by the vm when a timer event has been triggered.
-
-