123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the MainLoop.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_MainLoop:
- MainLoop
- ========
- **Inherits:** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`SceneTree<class_SceneTree>`
- **Category:** Core
- Brief Description
- -----------------
- Main loop is the abstract main loop base class.
- Methods
- -------
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_drop_files<class_MainLoop_method__drop_files>` **(** :ref:`PoolStringArray<class_PoolStringArray>` files, :ref:`int<class_int>` screen **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_finalize<class_MainLoop_method__finalize>` **(** **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_idle<class_MainLoop_method__idle>` **(** :ref:`float<class_float>` delta **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_initialize<class_MainLoop_method__initialize>` **(** **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_input_event<class_MainLoop_method__input_event>` **(** :ref:`InputEvent<class_InputEvent>` event **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_input_text<class_MainLoop_method__input_text>` **(** :ref:`String<class_String>` text **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`_iteration<class_MainLoop_method__iteration>` **(** :ref:`float<class_float>` delta **)** virtual |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`finish<class_MainLoop_method_finish>` **(** **)** |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`idle<class_MainLoop_method_idle>` **(** :ref:`float<class_float>` delta **)** |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`init<class_MainLoop_method_init>` **(** **)** |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`input_event<class_MainLoop_method_input_event>` **(** :ref:`InputEvent<class_InputEvent>` event **)** |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`input_text<class_MainLoop_method_input_text>` **(** :ref:`String<class_String>` text **)** |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`iteration<class_MainLoop_method_iteration>` **(** :ref:`float<class_float>` delta **)** |
- +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
- Constants
- ---------
- .. _class_MainLoop_constant_NOTIFICATION_WM_MOUSE_ENTER:
- .. _class_MainLoop_constant_NOTIFICATION_WM_MOUSE_EXIT:
- .. _class_MainLoop_constant_NOTIFICATION_WM_FOCUS_IN:
- .. _class_MainLoop_constant_NOTIFICATION_WM_FOCUS_OUT:
- .. _class_MainLoop_constant_NOTIFICATION_WM_QUIT_REQUEST:
- .. _class_MainLoop_constant_NOTIFICATION_WM_GO_BACK_REQUEST:
- .. _class_MainLoop_constant_NOTIFICATION_WM_UNFOCUS_REQUEST:
- .. _class_MainLoop_constant_NOTIFICATION_OS_MEMORY_WARNING:
- .. _class_MainLoop_constant_NOTIFICATION_TRANSLATION_CHANGED:
- .. _class_MainLoop_constant_NOTIFICATION_WM_ABOUT:
- .. _class_MainLoop_constant_NOTIFICATION_CRASH:
- .. _class_MainLoop_constant_NOTIFICATION_OS_IME_UPDATE:
- - **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_GO_BACK_REQUEST** = **7**
- - **NOTIFICATION_WM_UNFOCUS_REQUEST** = **8**
- - **NOTIFICATION_OS_MEMORY_WARNING** = **9**
- - **NOTIFICATION_TRANSLATION_CHANGED** = **90**
- - **NOTIFICATION_WM_ABOUT** = **91**
- - **NOTIFICATION_CRASH** = **92**
- - **NOTIFICATION_OS_IME_UPDATE** = **93**
- 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 :ref:`SceneTree<class_SceneTree>` is created), unless a main :ref:`Script<class_Script>` is supplied, which may or not create and return a ``MainLoop``.
- Method Descriptions
- -------------------
- .. _class_MainLoop_method__drop_files:
- - void **_drop_files** **(** :ref:`PoolStringArray<class_PoolStringArray>` files, :ref:`int<class_int>` screen **)** virtual
- .. _class_MainLoop_method__finalize:
- - void **_finalize** **(** **)** virtual
- Called before the program exits.
- .. _class_MainLoop_method__idle:
- - void **_idle** **(** :ref:`float<class_float>` delta **)** virtual
- Called each idle frame with time since last call as an only argument.
- .. _class_MainLoop_method__initialize:
- - void **_initialize** **(** **)** virtual
- Called once during initialization.
- .. _class_MainLoop_method__input_event:
- - void **_input_event** **(** :ref:`InputEvent<class_InputEvent>` event **)** virtual
- .. _class_MainLoop_method__input_text:
- - void **_input_text** **(** :ref:`String<class_String>` text **)** virtual
- .. _class_MainLoop_method__iteration:
- - void **_iteration** **(** :ref:`float<class_float>` delta **)** virtual
- .. _class_MainLoop_method_finish:
- - void **finish** **(** **)**
- .. _class_MainLoop_method_idle:
- - :ref:`bool<class_bool>` **idle** **(** :ref:`float<class_float>` delta **)**
- .. _class_MainLoop_method_init:
- - void **init** **(** **)**
- .. _class_MainLoop_method_input_event:
- - void **input_event** **(** :ref:`InputEvent<class_InputEvent>` event **)**
- .. _class_MainLoop_method_input_text:
- - void **input_text** **(** :ref:`String<class_String>` text **)**
- .. _class_MainLoop_method_iteration:
- - :ref:`bool<class_bool>` **iteration** **(** :ref:`float<class_float>` delta **)**
|