MainLoop

Inherits: Object

Inherited By: SceneTree

Category: Core

Brief Description

Main loop is the abstract main loop base class.

Member Functions

void _drop_files ( PoolStringArray files, int screen ) virtual
void _finalize ( ) virtual
void _idle ( float delta ) virtual
void _initialize ( ) virtual
void _input_event ( InputEvent ev ) virtual
void _input_text ( String text ) virtual
void _iteration ( float delta ) virtual
void finish ( )
bool idle ( float delta )
void init ( )
void input_event ( InputEvent ev )
void input_text ( String text )
bool iteration ( float delta )

Numeric Constants

  • NOTIFICATION_WM_MOUSE_ENTER = 2
  • NOTIFICATION_WM_MOUSE_EXIT = 3
  • NOTIFICATION_WM_FOCUS_IN = 4
  • NOTIFICATION_WM_FOCUS_OUT = 5
  • NOTIFICATION_WM_QUIT_REQUEST = 6
  • NOTIFICATION_WM_UNFOCUS_REQUEST = 8
  • NOTIFICATION_OS_MEMORY_WARNING = 9
  • NOTIFICATION_TRANSLATION_CHANGED = 90
  • NOTIFICATION_WM_ABOUT = 91

Description

Main loop is the abstract main loop base class. All other main loop classes are derived from it. Upon application start, a MainLoop has to be provided to OS, else the application will exit. This happens automatically (and a SceneTree is created), unless a main Script is supplied, which may or not create and return a MainLoop.

Member Function Description

  • void _finalize ( ) virtual
  • void _idle ( float delta ) virtual
  • void _initialize ( ) virtual
  • void _input_text ( String text ) virtual
  • void _iteration ( float delta ) virtual
  • void finish ( )
  • void init ( )
  • void input_text ( String text )