Package totalcross

Interface MainClass

  • All Known Implementing Classes:
    Conduit, GameEngine, MainWindow, Service, TestSuite

    public interface MainClass
    This 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 posted
      void appEnding()
      Called by the vm when the application is ending
      void appStarting​(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.