.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_MainLoop: MainLoop ======== **Inherits:** :ref:`Object` **Inherited By:** :ref:`SceneTree` **Category:** Core Brief Description ----------------- Main loop is the abstract main loop base class. Member Functions ---------------- +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_drop_files` **(** :ref:`PoolStringArray` files, :ref:`int` screen **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_finalize` **(** **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_idle` **(** :ref:`float` delta **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_initialize` **(** **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_input_event` **(** :ref:`InputEvent` ev **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_input_text` **(** :ref:`String` text **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_iteration` **(** :ref:`float` delta **)** virtual | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`finish` **(** **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`idle` **(** :ref:`float` delta **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`init` **(** **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`input_event` **(** :ref:`InputEvent` ev **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`input_text` **(** :ref:`String` text **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`iteration` **(** :ref:`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 :ref:`MainLoop` has to be provided to OS, else the application will exit. This happens automatically (and a :ref:`SceneTree` is created), unless a main :ref:`Script` is supplied, which may or not create and return a :ref:`MainLoop`. Member Function Description --------------------------- .. _class_MainLoop__drop_files: - void **_drop_files** **(** :ref:`PoolStringArray` files, :ref:`int` screen **)** virtual .. _class_MainLoop__finalize: - void **_finalize** **(** **)** virtual .. _class_MainLoop__idle: - void **_idle** **(** :ref:`float` delta **)** virtual .. _class_MainLoop__initialize: - void **_initialize** **(** **)** virtual .. _class_MainLoop__input_event: - void **_input_event** **(** :ref:`InputEvent` ev **)** virtual .. _class_MainLoop__input_text: - void **_input_text** **(** :ref:`String` text **)** virtual .. _class_MainLoop__iteration: - void **_iteration** **(** :ref:`float` delta **)** virtual .. _class_MainLoop_finish: - void **finish** **(** **)** .. _class_MainLoop_idle: - :ref:`bool` **idle** **(** :ref:`float` delta **)** .. _class_MainLoop_init: - void **init** **(** **)** .. _class_MainLoop_input_event: - void **input_event** **(** :ref:`InputEvent` ev **)** .. _class_MainLoop_input_text: - void **input_text** **(** :ref:`String` text **)** .. _class_MainLoop_iteration: - :ref:`bool` **iteration** **(** :ref:`float` delta **)**