class_@globalscope.rst 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the @GlobalScope.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_@GlobalScope:
  5. @GlobalScope
  6. ============
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Global scope constants and variables.
  11. Member Variables
  12. ----------------
  13. .. _class_@GlobalScope_ARVRServer:
  14. - :ref:`ARVRServer<class_arvrserver>` **ARVRServer** - :ref:`ARVRServer<class_arvrserver>` singleton
  15. .. _class_@GlobalScope_AudioServer:
  16. - :ref:`AudioServer<class_audioserver>` **AudioServer** - :ref:`AudioServer<class_audioserver>` singleton
  17. .. _class_@GlobalScope_ClassDB:
  18. - :ref:`ClassDB<class_classdb>` **ClassDB** - :ref:`ClassDB<class_classdb>` singleton
  19. .. _class_@GlobalScope_Engine:
  20. - :ref:`Engine<class_engine>` **Engine** - :ref:`Engine<class_engine>` singleton
  21. .. _class_@GlobalScope_Geometry:
  22. - :ref:`Geometry<class_geometry>` **Geometry** - :ref:`Geometry<class_geometry>` singleton
  23. .. _class_@GlobalScope_GodotSharp:
  24. - :ref:`GodotSharp<class_godotsharp>` **GodotSharp** - :ref:`GodotSharp<class_godotsharp>` singleton
  25. .. _class_@GlobalScope_IP:
  26. - :ref:`IP<class_ip>` **IP** - :ref:`IP<class_ip>` singleton
  27. .. _class_@GlobalScope_Input:
  28. - :ref:`Input<class_input>` **Input** - :ref:`Input<class_input>` singleton
  29. .. _class_@GlobalScope_InputMap:
  30. - :ref:`InputMap<class_inputmap>` **InputMap** - :ref:`InputMap<class_inputmap>` singleton
  31. .. _class_@GlobalScope_JSON:
  32. - :ref:`JSON<class_json>` **JSON** - :ref:`JSON<class_json>` singleton
  33. .. _class_@GlobalScope_JavaScript:
  34. - :ref:`JavaScript<class_javascript>` **JavaScript** - :ref:`JavaScript<class_javascript>` singleton
  35. .. _class_@GlobalScope_Marshalls:
  36. - :ref:`Reference<class_reference>` **Marshalls** - :ref:`Marshalls<class_marshalls>` singleton
  37. .. _class_@GlobalScope_OS:
  38. - :ref:`OS<class_os>` **OS** - :ref:`OS<class_os>` singleton
  39. .. _class_@GlobalScope_Performance:
  40. - :ref:`Performance<class_performance>` **Performance** - :ref:`Performance<class_performance>` singleton
  41. .. _class_@GlobalScope_Physics2DServer:
  42. - :ref:`Physics2DServer<class_physics2dserver>` **Physics2DServer** - :ref:`Physics2DServer<class_physics2dserver>` singleton
  43. .. _class_@GlobalScope_PhysicsServer:
  44. - :ref:`PhysicsServer<class_physicsserver>` **PhysicsServer** - :ref:`PhysicsServer<class_physicsserver>` singleton
  45. .. _class_@GlobalScope_ProjectSettings:
  46. - :ref:`ProjectSettings<class_projectsettings>` **ProjectSettings** - :ref:`ProjectSettings<class_projectsettings>` singleton
  47. .. _class_@GlobalScope_ResourceLoader:
  48. - :ref:`ResourceLoader<class_resourceloader>` **ResourceLoader** - :ref:`ResourceLoader<class_resourceloader>` singleton
  49. .. _class_@GlobalScope_ResourceSaver:
  50. - :ref:`ResourceSaver<class_resourcesaver>` **ResourceSaver** - :ref:`ResourceSaver<class_resourcesaver>` singleton
  51. .. _class_@GlobalScope_TranslationServer:
  52. - :ref:`TranslationServer<class_translationserver>` **TranslationServer** - :ref:`TranslationServer<class_translationserver>` singleton
  53. .. _class_@GlobalScope_VisualScriptEditor:
  54. - :ref:`VisualScriptEditor<class_visualscripteditor>` **VisualScriptEditor** - :ref:`VisualScriptEditor<class_visualscripteditor>` singleton
  55. .. _class_@GlobalScope_VisualServer:
  56. - :ref:`VisualServer<class_visualserver>` **VisualServer** - :ref:`VisualServer<class_visualserver>` singleton
  57. Numeric Constants
  58. -----------------
  59. - **SPKEY** = **16777216** --- Scancodes with this bit applied are non printable.
  60. Enums
  61. -----
  62. .. _enum_@GlobalScope_Variant.Operator:
  63. enum **Variant.Operator**
  64. - **OP_EQUAL** = **0**
  65. - **OP_NOT_EQUAL** = **1**
  66. - **OP_LESS** = **2**
  67. - **OP_LESS_EQUAL** = **3**
  68. - **OP_GREATER** = **4**
  69. - **OP_GREATER_EQUAL** = **5**
  70. - **OP_ADD** = **6**
  71. - **OP_SUBTRACT** = **7**
  72. - **OP_MULTIPLY** = **8**
  73. - **OP_DIVIDE** = **9**
  74. - **OP_NEGATE** = **10**
  75. - **OP_POSITIVE** = **11**
  76. - **OP_MODULE** = **12**
  77. - **OP_STRING_CONCAT** = **13**
  78. - **OP_SHIFT_LEFT** = **14**
  79. - **OP_SHIFT_RIGHT** = **15**
  80. - **OP_BIT_AND** = **16**
  81. - **OP_BIT_OR** = **17**
  82. - **OP_BIT_XOR** = **18**
  83. - **OP_BIT_NEGATE** = **19**
  84. - **OP_AND** = **20**
  85. - **OP_OR** = **21**
  86. - **OP_XOR** = **22**
  87. - **OP_NOT** = **23**
  88. - **OP_IN** = **24**
  89. - **OP_MAX** = **25**
  90. .. _enum_@GlobalScope_MethodFlags:
  91. enum **MethodFlags**
  92. - **METHOD_FLAG_NORMAL** = **1** --- Flag for normal method
  93. - **METHOD_FLAG_EDITOR** = **2** --- Flag for editor method
  94. - **METHOD_FLAG_NOSCRIPT** = **4**
  95. - **METHOD_FLAG_CONST** = **8** --- Flag for constant method
  96. - **METHOD_FLAG_REVERSE** = **16**
  97. - **METHOD_FLAG_VIRTUAL** = **32** --- Flag for virtual method
  98. - **METHOD_FLAG_FROM_SCRIPT** = **64** --- Flag for method from script
  99. - **METHOD_FLAGS_DEFAULT** = **1** --- Default method flags
  100. .. _enum_@GlobalScope_Orientation:
  101. enum **Orientation**
  102. - **VERTICAL** = **1** --- General vertical alignment, used usually for :ref:`Separator<class_separator>`, :ref:`ScrollBar<class_scrollbar>`, :ref:`Slider<class_slider>`, etc.
  103. - **HORIZONTAL** = **0** --- General horizontal alignment, used usually for :ref:`Separator<class_separator>`, :ref:`ScrollBar<class_scrollbar>`, :ref:`Slider<class_slider>`, etc.
  104. .. _enum_@GlobalScope_PropertyUsageFlags:
  105. enum **PropertyUsageFlags**
  106. - **PROPERTY_USAGE_STORAGE** = **1** --- Property will be used as storage (default).
  107. - **PROPERTY_USAGE_EDITOR** = **2** --- Property will be visible in editor (default).
  108. - **PROPERTY_USAGE_NETWORK** = **4**
  109. - **PROPERTY_USAGE_EDITOR_HELPER** = **8**
  110. - **PROPERTY_USAGE_CHECKABLE** = **16**
  111. - **PROPERTY_USAGE_CHECKED** = **32**
  112. - **PROPERTY_USAGE_INTERNATIONALIZED** = **64**
  113. - **PROPERTY_USAGE_GROUP** = **128**
  114. - **PROPERTY_USAGE_CATEGORY** = **256**
  115. - **PROPERTY_USAGE_STORE_IF_NONZERO** = **512**
  116. - **PROPERTY_USAGE_STORE_IF_NONONE** = **1024**
  117. - **PROPERTY_USAGE_NO_INSTANCE_STATE** = **2048**
  118. - **PROPERTY_USAGE_RESTART_IF_CHANGED** = **4096**
  119. - **PROPERTY_USAGE_SCRIPT_VARIABLE** = **8192**
  120. - **PROPERTY_USAGE_DEFAULT** = **7** --- Default usage (storage and editor).
  121. - **PROPERTY_USAGE_DEFAULT_INTL** = **71**
  122. - **PROPERTY_USAGE_NOEDITOR** = **5**
  123. .. _enum_@GlobalScope_JoystickList:
  124. enum **JoystickList**
  125. - **JOY_BUTTON_0** = **0** --- Joypad Button 0
  126. - **JOY_BUTTON_1** = **1** --- Joypad Button 1
  127. - **JOY_BUTTON_2** = **2** --- Joypad Button 2
  128. - **JOY_BUTTON_3** = **3** --- Joypad Button 3
  129. - **JOY_BUTTON_4** = **4** --- Joypad Button 4
  130. - **JOY_BUTTON_5** = **5** --- Joypad Button 5
  131. - **JOY_BUTTON_6** = **6** --- Joypad Button 6
  132. - **JOY_BUTTON_7** = **7** --- Joypad Button 7
  133. - **JOY_BUTTON_8** = **8** --- Joypad Button 8
  134. - **JOY_BUTTON_9** = **9** --- Joypad Button 9
  135. - **JOY_BUTTON_10** = **10** --- Joypad Button 10
  136. - **JOY_BUTTON_11** = **11** --- Joypad Button 11
  137. - **JOY_BUTTON_12** = **12** --- Joypad Button 12
  138. - **JOY_BUTTON_13** = **13** --- Joypad Button 13
  139. - **JOY_BUTTON_14** = **14** --- Joypad Button 14
  140. - **JOY_BUTTON_15** = **15** --- Joypad Button 15
  141. - **JOY_BUTTON_MAX** = **16** --- Joypad Button 16
  142. - **JOY_SONY_CIRCLE** = **1** --- DUALSHOCK circle button
  143. - **JOY_SONY_X** = **0** --- DUALSHOCK X button
  144. - **JOY_SONY_SQUARE** = **2** --- DUALSHOCK square button
  145. - **JOY_SONY_TRIANGLE** = **3** --- DUALSHOCK triangle button
  146. - **JOY_XBOX_B** = **1** --- XBOX controller B button
  147. - **JOY_XBOX_A** = **0** --- XBOX controller A button
  148. - **JOY_XBOX_X** = **2** --- XBOX controller X button
  149. - **JOY_XBOX_Y** = **3** --- XBOX controller Y button
  150. - **JOY_DS_A** = **1** --- DualShock controller A button
  151. - **JOY_DS_B** = **0** --- DualShock controller B button
  152. - **JOY_DS_X** = **3** --- DualShock controller X button
  153. - **JOY_DS_Y** = **2** --- DualShock controller Y button
  154. - **JOY_SELECT** = **10** --- Joypad Button Select
  155. - **JOY_START** = **11** --- Joypad Button Start
  156. - **JOY_DPAD_UP** = **12** --- Joypad DPad Up
  157. - **JOY_DPAD_DOWN** = **13** --- Joypad DPad Down
  158. - **JOY_DPAD_LEFT** = **14** --- Joypad DPad Left
  159. - **JOY_DPAD_RIGHT** = **15** --- Joypad DPad Right
  160. - **JOY_L** = **4** --- Joypad Left Shoulder Button
  161. - **JOY_L2** = **6** --- Joypad Left Trigger
  162. - **JOY_L3** = **8** --- Joypad Left Stick Click
  163. - **JOY_R** = **5** --- Joypad Right Shoulder Button
  164. - **JOY_R2** = **7** --- Joypad Right Trigger
  165. - **JOY_R3** = **9** --- Joypad Right Stick Click
  166. - **JOY_AXIS_0** = **0** --- Joypad Left Stick Horizontal Axis
  167. - **JOY_AXIS_1** = **1** --- Joypad Left Stick Vertical Axis
  168. - **JOY_AXIS_2** = **2** --- Joypad Right Stick Horizontal Axis
  169. - **JOY_AXIS_3** = **3** --- Joypad Right Stick Vertical Axis
  170. - **JOY_AXIS_4** = **4**
  171. - **JOY_AXIS_5** = **5**
  172. - **JOY_AXIS_6** = **6** --- Joypad Left Trigger Analog Axis
  173. - **JOY_AXIS_7** = **7** --- Joypad Right Trigger Analog Axis
  174. - **JOY_AXIS_8** = **8**
  175. - **JOY_AXIS_9** = **9**
  176. - **JOY_AXIS_MAX** = **10**
  177. - **JOY_ANALOG_LX** = **0** --- Joypad Left Stick Horizontal Axis
  178. - **JOY_ANALOG_LY** = **1** --- Joypad Left Stick Vertical Axis
  179. - **JOY_ANALOG_RX** = **2** --- Joypad Right Stick Horizontal Axis
  180. - **JOY_ANALOG_RY** = **3** --- Joypad Right Stick Vertical Axis
  181. - **JOY_ANALOG_L2** = **6** --- Joypad Left Analog Trigger
  182. - **JOY_ANALOG_R2** = **7** --- Joypad Right Analog Trigger
  183. .. _enum_@GlobalScope_Error:
  184. enum **Error**
  185. - **OK** = **0** --- Functions that return Error return OK when no error occurred. Most functions don't return errors and/or just print errors to STDOUT.
  186. - **FAILED** = **1** --- Generic error.
  187. - **ERR_UNAVAILABLE** = **2** --- Unavailable error
  188. - **ERR_UNCONFIGURED** = **3** --- Unconfigured error
  189. - **ERR_UNAUTHORIZED** = **4** --- Unauthorized error
  190. - **ERR_PARAMETER_RANGE_ERROR** = **5** --- Parameter range error
  191. - **ERR_OUT_OF_MEMORY** = **6** --- Out of memory (OOM) error
  192. - **ERR_FILE_NOT_FOUND** = **7** --- File: Not found error
  193. - **ERR_FILE_BAD_DRIVE** = **8** --- File: Bad drive error
  194. - **ERR_FILE_BAD_PATH** = **9** --- File: Bad path error
  195. - **ERR_FILE_NO_PERMISSION** = **10** --- File: No permission error
  196. - **ERR_FILE_ALREADY_IN_USE** = **11** --- File: Already in use error
  197. - **ERR_FILE_CANT_OPEN** = **12** --- File: Can't open error
  198. - **ERR_FILE_CANT_WRITE** = **13** --- File: Can't write error
  199. - **ERR_FILE_CANT_READ** = **14** --- File: Can't read error
  200. - **ERR_FILE_UNRECOGNIZED** = **15** --- File: Unrecognized error
  201. - **ERR_FILE_CORRUPT** = **16** --- File: Corrupt error
  202. - **ERR_FILE_MISSING_DEPENDENCIES** = **17** --- File: Missing dependencies error
  203. - **ERR_FILE_EOF** = **18** --- File: End of file (EOF) error
  204. - **ERR_CANT_OPEN** = **19** --- Can't open error
  205. - **ERR_CANT_CREATE** = **20** --- Can't create error
  206. - **ERR_PARSE_ERROR** = **43** --- Parse error
  207. - **ERR_QUERY_FAILED** = **21** --- Query failed error
  208. - **ERR_ALREADY_IN_USE** = **22** --- Already in use error
  209. - **ERR_LOCKED** = **23** --- Locked error
  210. - **ERR_TIMEOUT** = **24** --- Timeout error
  211. - **ERR_CANT_ACQUIRE_RESOURCE** = **28** --- Can't acquire resource error
  212. - **ERR_INVALID_DATA** = **30** --- Invalid data error
  213. - **ERR_INVALID_PARAMETER** = **31** --- Invalid parameter error
  214. - **ERR_ALREADY_EXISTS** = **32** --- Already exists error
  215. - **ERR_DOES_NOT_EXIST** = **33** --- Does not exist error
  216. - **ERR_DATABASE_CANT_READ** = **34** --- Database: Read error
  217. - **ERR_DATABASE_CANT_WRITE** = **35** --- Database: Write error
  218. - **ERR_COMPILATION_FAILED** = **36** --- Compilation failed error
  219. - **ERR_METHOD_NOT_FOUND** = **37** --- Method not found error
  220. - **ERR_LINK_FAILED** = **38** --- Linking failed error
  221. - **ERR_SCRIPT_FAILED** = **39** --- Script failed error
  222. - **ERR_CYCLIC_LINK** = **40** --- Cycling link (import cycle) error
  223. - **ERR_BUSY** = **44** --- Busy error
  224. - **ERR_HELP** = **46** --- Help error
  225. - **ERR_BUG** = **47** --- Bug error
  226. .. _enum_@GlobalScope_KeyModifierMask:
  227. enum **KeyModifierMask**
  228. - **KEY_CODE_MASK** = **33554431** --- Key Code Mask
  229. - **KEY_MODIFIER_MASK** = **-16777216** --- Modifier Key Mask
  230. - **KEY_MASK_SHIFT** = **33554432** --- Shift Key Mask
  231. - **KEY_MASK_ALT** = **67108864** --- Alt Key Mask
  232. - **KEY_MASK_META** = **134217728** --- Meta Key Mask
  233. - **KEY_MASK_CTRL** = **268435456** --- CTRL Key Mask
  234. - **KEY_MASK_CMD** = **268435456** --- CMD Key Mask
  235. - **KEY_MASK_KPAD** = **536870912** --- Keypad Key Mask
  236. - **KEY_MASK_GROUP_SWITCH** = **1073741824** --- Group Switch Key Mask
  237. .. _enum_@GlobalScope_HAlign:
  238. enum **HAlign**
  239. - **HALIGN_LEFT** = **0** --- Horizontal left alignment, usually for text-derived classes.
  240. - **HALIGN_CENTER** = **1** --- Horizontal center alignment, usually for text-derived classes.
  241. - **HALIGN_RIGHT** = **2** --- Horizontal right alignment, usually for text-derived classes.
  242. .. _enum_@GlobalScope_VAlign:
  243. enum **VAlign**
  244. - **VALIGN_TOP** = **0** --- Vertical top alignment, usually for text-derived classes.
  245. - **VALIGN_CENTER** = **1** --- Vertical center alignment, usually for text-derived classes.
  246. - **VALIGN_BOTTOM** = **2** --- Vertical bottom alignment, usually for text-derived classes.
  247. .. _enum_@GlobalScope_PropertyHint:
  248. enum **PropertyHint**
  249. - **PROPERTY_HINT_NONE** = **0** --- No hint for edited property.
  250. - **PROPERTY_HINT_RANGE** = **1** --- Hints that the string is a range, defined as "min,max" or "min,max,step". This is valid for integers and floats.
  251. - **PROPERTY_HINT_EXP_RANGE** = **2** --- Hints that the string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats.
  252. - **PROPERTY_HINT_ENUM** = **3** --- Property hint for an enumerated value, like "Hello,Something,Else". This is valid for integer, float and string properties.
  253. - **PROPERTY_HINT_EXP_EASING** = **4**
  254. - **PROPERTY_HINT_LENGTH** = **5**
  255. - **PROPERTY_HINT_KEY_ACCEL** = **7**
  256. - **PROPERTY_HINT_FLAGS** = **8** --- Property hint for a bitmask description, for bits 0,1,2,3 and 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers.
  257. - **PROPERTY_HINT_LAYERS_2D_RENDER** = **9**
  258. - **PROPERTY_HINT_LAYERS_2D_PHYSICS** = **10**
  259. - **PROPERTY_HINT_LAYERS_3D_RENDER** = **11**
  260. - **PROPERTY_HINT_LAYERS_3D_PHYSICS** = **12**
  261. - **PROPERTY_HINT_FILE** = **13** --- String property is a file (so pop up a file dialog when edited). Hint string can be a set of wildcards like "\*.doc".
  262. - **PROPERTY_HINT_DIR** = **14** --- String property is a directory (so pop up a file dialog when edited).
  263. - **PROPERTY_HINT_GLOBAL_FILE** = **15**
  264. - **PROPERTY_HINT_GLOBAL_DIR** = **16**
  265. - **PROPERTY_HINT_RESOURCE_TYPE** = **17** --- String property is a resource, so open the resource popup menu when edited.
  266. - **PROPERTY_HINT_MULTILINE_TEXT** = **18**
  267. - **PROPERTY_HINT_COLOR_NO_ALPHA** = **19**
  268. - **PROPERTY_HINT_IMAGE_COMPRESS_LOSSY** = **20** --- Hints that the image is compressed using lossy compression.
  269. - **PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS** = **21** --- Hints that the image is compressed using lossless compression.
  270. .. _enum_@GlobalScope_Corner:
  271. enum **Corner**
  272. - **CORNER_TOP_LEFT** = **0**
  273. - **CORNER_TOP_RIGHT** = **1**
  274. - **CORNER_BOTTOM_RIGHT** = **2**
  275. - **CORNER_BOTTOM_LEFT** = **3**
  276. .. _enum_@GlobalScope_KeyList:
  277. enum **KeyList**
  278. - **KEY_ESCAPE** = **16777217** --- Escape Key
  279. - **KEY_TAB** = **16777218** --- Tab Key
  280. - **KEY_BACKTAB** = **16777219** --- Shift-Tab Key
  281. - **KEY_BACKSPACE** = **16777220** --- Backspace Key
  282. - **KEY_ENTER** = **16777221** --- Return Key (On Main Keyboard)
  283. - **KEY_KP_ENTER** = **16777222** --- Enter Key (On Numpad)
  284. - **KEY_INSERT** = **16777223** --- Insert Key
  285. - **KEY_DELETE** = **16777224** --- Delete Key
  286. - **KEY_PAUSE** = **16777225** --- Pause Key
  287. - **KEY_PRINT** = **16777226** --- Printscreen Key
  288. - **KEY_SYSREQ** = **16777227** --- System Request Key
  289. - **KEY_CLEAR** = **16777228** --- Clear Key
  290. - **KEY_HOME** = **16777229** --- Home Key
  291. - **KEY_END** = **16777230** --- End Key
  292. - **KEY_LEFT** = **16777231** --- Left Arrow Key
  293. - **KEY_UP** = **16777232** --- Up Arrow Key
  294. - **KEY_RIGHT** = **16777233** --- Right Arrow Key
  295. - **KEY_DOWN** = **16777234** --- Down Arrow Key
  296. - **KEY_PAGEUP** = **16777235** --- Pageup Key
  297. - **KEY_PAGEDOWN** = **16777236** --- Pagedown Key
  298. - **KEY_SHIFT** = **16777237** --- Shift Key
  299. - **KEY_CONTROL** = **16777238** --- Control Key
  300. - **KEY_META** = **16777239** --- Meta Key
  301. - **KEY_ALT** = **16777240** --- Alt Key
  302. - **KEY_CAPSLOCK** = **16777241** --- Capslock Key
  303. - **KEY_NUMLOCK** = **16777242** --- Numlock Key
  304. - **KEY_SCROLLLOCK** = **16777243** --- Scrolllock Key
  305. - **KEY_F1** = **16777244** --- F1 Key
  306. - **KEY_F2** = **16777245** --- F2 Key
  307. - **KEY_F3** = **16777246** --- F3 Key
  308. - **KEY_F4** = **16777247** --- F4 Key
  309. - **KEY_F5** = **16777248** --- F5 Key
  310. - **KEY_F6** = **16777249** --- F6 Key
  311. - **KEY_F7** = **16777250** --- F7 Key
  312. - **KEY_F8** = **16777251** --- F8 Key
  313. - **KEY_F9** = **16777252** --- F9 Key
  314. - **KEY_F10** = **16777253** --- F10 Key
  315. - **KEY_F11** = **16777254** --- F11 Key
  316. - **KEY_F12** = **16777255** --- F12 Key
  317. - **KEY_F13** = **16777256** --- F13 Key
  318. - **KEY_F14** = **16777257** --- F14 Key
  319. - **KEY_F15** = **16777258** --- F15 Key
  320. - **KEY_F16** = **16777259** --- F16 Key
  321. - **KEY_KP_MULTIPLY** = **16777345** --- Multiply Key on Numpad
  322. - **KEY_KP_DIVIDE** = **16777346** --- Divide Key on Numpad
  323. - **KEY_KP_SUBTRACT** = **16777347** --- Subtract Key on Numpad
  324. - **KEY_KP_PERIOD** = **16777348** --- Period Key on Numpad
  325. - **KEY_KP_ADD** = **16777349** --- Add Key on Numpad
  326. - **KEY_KP_0** = **16777350** --- Number 0 on Numpad
  327. - **KEY_KP_1** = **16777351** --- Number 1 on Numpad
  328. - **KEY_KP_2** = **16777352** --- Number 2 on Numpad
  329. - **KEY_KP_3** = **16777353** --- Number 3 on Numpad
  330. - **KEY_KP_4** = **16777354** --- Number 4 on Numpad
  331. - **KEY_KP_5** = **16777355** --- Number 5 on Numpad
  332. - **KEY_KP_6** = **16777356** --- Number 6 on Numpad
  333. - **KEY_KP_7** = **16777357** --- Number 7 on Numpad
  334. - **KEY_KP_8** = **16777358** --- Number 8 on Numpad
  335. - **KEY_KP_9** = **16777359** --- Number 9 on Numpad
  336. - **KEY_SUPER_L** = **16777260** --- Left Super Key (Windows Key)
  337. - **KEY_SUPER_R** = **16777261** --- Right Super Key (Windows Key)
  338. - **KEY_MENU** = **16777262** --- Context menu key
  339. - **KEY_HYPER_L** = **16777263** --- Left Hyper Key
  340. - **KEY_HYPER_R** = **16777264** --- Right Hyper Key
  341. - **KEY_HELP** = **16777265** --- Help key
  342. - **KEY_DIRECTION_L** = **16777266** --- Left Direction Key
  343. - **KEY_DIRECTION_R** = **16777267** --- Right Direction Key
  344. - **KEY_BACK** = **16777280** --- Back key
  345. - **KEY_FORWARD** = **16777281** --- Forward key
  346. - **KEY_STOP** = **16777282** --- Stop key
  347. - **KEY_REFRESH** = **16777283** --- Refresh key
  348. - **KEY_VOLUMEDOWN** = **16777284** --- Volume down key
  349. - **KEY_VOLUMEMUTE** = **16777285** --- Mute volume key
  350. - **KEY_VOLUMEUP** = **16777286** --- Volume up key
  351. - **KEY_BASSBOOST** = **16777287** --- Bass Boost Key
  352. - **KEY_BASSUP** = **16777288** --- Bass Up Key
  353. - **KEY_BASSDOWN** = **16777289** --- Bass Down Key
  354. - **KEY_TREBLEUP** = **16777290** --- Treble Up Key
  355. - **KEY_TREBLEDOWN** = **16777291** --- Treble Down Key
  356. - **KEY_MEDIAPLAY** = **16777292** --- Media play key
  357. - **KEY_MEDIASTOP** = **16777293** --- Media stop key
  358. - **KEY_MEDIAPREVIOUS** = **16777294** --- Previous song key
  359. - **KEY_MEDIANEXT** = **16777295** --- Next song key
  360. - **KEY_MEDIARECORD** = **16777296** --- Media record key
  361. - **KEY_HOMEPAGE** = **16777297** --- Home page key
  362. - **KEY_FAVORITES** = **16777298** --- Favorites key
  363. - **KEY_SEARCH** = **16777299** --- Search key
  364. - **KEY_STANDBY** = **16777300** --- Standby Key
  365. - **KEY_OPENURL** = **16777301** --- Open URL / Launch Browser Key
  366. - **KEY_LAUNCHMAIL** = **16777302** --- Launch Mail Key
  367. - **KEY_LAUNCHMEDIA** = **16777303** --- Launch Media Key
  368. - **KEY_LAUNCH0** = **16777304** --- Launch Shortcut 0 Key
  369. - **KEY_LAUNCH1** = **16777305** --- Launch Shortcut 1 Key
  370. - **KEY_LAUNCH2** = **16777306** --- Launch Shortcut 2 Key
  371. - **KEY_LAUNCH3** = **16777307** --- Launch Shortcut 3 Key
  372. - **KEY_LAUNCH4** = **16777308** --- Launch Shortcut 4 Key
  373. - **KEY_LAUNCH5** = **16777309** --- Launch Shortcut 5 Key
  374. - **KEY_LAUNCH6** = **16777310** --- Launch Shortcut 6 Key
  375. - **KEY_LAUNCH7** = **16777311** --- Launch Shortcut 7 Key
  376. - **KEY_LAUNCH8** = **16777312** --- Launch Shortcut 8 Key
  377. - **KEY_LAUNCH9** = **16777313** --- Launch Shortcut 9 Key
  378. - **KEY_LAUNCHA** = **16777314** --- Launch Shortcut A Key
  379. - **KEY_LAUNCHB** = **16777315** --- Launch Shortcut B Key
  380. - **KEY_LAUNCHC** = **16777316** --- Launch Shortcut C Key
  381. - **KEY_LAUNCHD** = **16777317** --- Launch Shortcut D Key
  382. - **KEY_LAUNCHE** = **16777318** --- Launch Shortcut E Key
  383. - **KEY_LAUNCHF** = **16777319** --- Launch Shortcut F Key
  384. - **KEY_UNKNOWN** = **33554431** --- Unknown Key
  385. - **KEY_SPACE** = **32** --- Space Key
  386. - **KEY_EXCLAM** = **33** --- ! key
  387. - **KEY_QUOTEDBL** = **34** --- " key
  388. - **KEY_NUMBERSIGN** = **35** --- # key
  389. - **KEY_DOLLAR** = **36** --- $ key
  390. - **KEY_PERCENT** = **37** --- % key
  391. - **KEY_AMPERSAND** = **38** --- & key
  392. - **KEY_APOSTROPHE** = **39** --- ' key
  393. - **KEY_PARENLEFT** = **40** --- ( key
  394. - **KEY_PARENRIGHT** = **41** --- ) key
  395. - **KEY_ASTERISK** = **42** --- \* key
  396. - **KEY_PLUS** = **43** --- + key
  397. - **KEY_COMMA** = **44** --- , key
  398. - **KEY_MINUS** = **45** --- - key
  399. - **KEY_PERIOD** = **46** --- . key
  400. - **KEY_SLASH** = **47** --- / key
  401. - **KEY_0** = **48** --- Number 0
  402. - **KEY_1** = **49** --- Number 1
  403. - **KEY_2** = **50** --- Number 2
  404. - **KEY_3** = **51** --- Number 3
  405. - **KEY_4** = **52** --- Number 4
  406. - **KEY_5** = **53** --- Number 5
  407. - **KEY_6** = **54** --- Number 6
  408. - **KEY_7** = **55** --- Number 7
  409. - **KEY_8** = **56** --- Number 8
  410. - **KEY_9** = **57** --- Number 9
  411. - **KEY_COLON** = **58** --- : key
  412. - **KEY_SEMICOLON** = **59** --- ; key
  413. - **KEY_LESS** = **60** --- Lower than key
  414. - **KEY_EQUAL** = **61** --- = key
  415. - **KEY_GREATER** = **62** --- Greater than key
  416. - **KEY_QUESTION** = **63** --- ? key
  417. - **KEY_AT** = **64** --- @ key
  418. - **KEY_A** = **65** --- A Key
  419. - **KEY_B** = **66** --- B Key
  420. - **KEY_C** = **67** --- C Key
  421. - **KEY_D** = **68** --- D Key
  422. - **KEY_E** = **69** --- E Key
  423. - **KEY_F** = **70** --- F Key
  424. - **KEY_G** = **71** --- G Key
  425. - **KEY_H** = **72** --- H Key
  426. - **KEY_I** = **73** --- I Key
  427. - **KEY_J** = **74** --- J Key
  428. - **KEY_K** = **75** --- K Key
  429. - **KEY_L** = **76** --- L Key
  430. - **KEY_M** = **77** --- M Key
  431. - **KEY_N** = **78** --- N Key
  432. - **KEY_O** = **79** --- O Key
  433. - **KEY_P** = **80** --- P Key
  434. - **KEY_Q** = **81** --- Q Key
  435. - **KEY_R** = **82** --- R Key
  436. - **KEY_S** = **83** --- S Key
  437. - **KEY_T** = **84** --- T Key
  438. - **KEY_U** = **85** --- U Key
  439. - **KEY_V** = **86** --- V Key
  440. - **KEY_W** = **87** --- W Key
  441. - **KEY_X** = **88** --- X Key
  442. - **KEY_Y** = **89** --- Y Key
  443. - **KEY_Z** = **90** --- Z Key
  444. - **KEY_BRACKETLEFT** = **91** --- [ key
  445. - **KEY_BACKSLASH** = **92** --- \ key
  446. - **KEY_BRACKETRIGHT** = **93** --- ] key
  447. - **KEY_ASCIICIRCUM** = **94** --- ^ key
  448. - **KEY_UNDERSCORE** = **95** --- \_ key
  449. - **KEY_QUOTELEFT** = **96** --- Left Quote Key
  450. - **KEY_BRACELEFT** = **123** --- { key
  451. - **KEY_BAR** = **124** --- | key
  452. - **KEY_BRACERIGHT** = **125** --- } key
  453. - **KEY_ASCIITILDE** = **126** --- ~ key
  454. - **KEY_NOBREAKSPACE** = **160**
  455. - **KEY_EXCLAMDOWN** = **161**
  456. - **KEY_CENT** = **162** --- ¢ key
  457. - **KEY_STERLING** = **163**
  458. - **KEY_CURRENCY** = **164**
  459. - **KEY_YEN** = **165** --- Yen Key
  460. - **KEY_BROKENBAR** = **166** --- ¦ key
  461. - **KEY_SECTION** = **167** --- § key
  462. - **KEY_DIAERESIS** = **168** --- ¨ key
  463. - **KEY_COPYRIGHT** = **169** --- © key
  464. - **KEY_ORDFEMININE** = **170**
  465. - **KEY_GUILLEMOTLEFT** = **171** --- « key
  466. - **KEY_NOTSIGN** = **172** --- » key
  467. - **KEY_HYPHEN** = **173** --- ‐ key
  468. - **KEY_REGISTERED** = **174** --- ® key
  469. - **KEY_MACRON** = **175** --- Macron Key
  470. - **KEY_DEGREE** = **176** --- ° key
  471. - **KEY_PLUSMINUS** = **177** --- ± key
  472. - **KEY_TWOSUPERIOR** = **178** --- ² key
  473. - **KEY_THREESUPERIOR** = **179** --- ³ key
  474. - **KEY_ACUTE** = **180** --- ´ key
  475. - **KEY_MU** = **181** --- µ key
  476. - **KEY_PARAGRAPH** = **182** --- Paragraph Key
  477. - **KEY_PERIODCENTERED** = **183** --- · key
  478. - **KEY_CEDILLA** = **184** --- ¬ key
  479. - **KEY_ONESUPERIOR** = **185** --- ¹ key
  480. - **KEY_MASCULINE** = **186** --- ♂ key
  481. - **KEY_GUILLEMOTRIGHT** = **187** --- » key
  482. - **KEY_ONEQUARTER** = **188** --- ¼ key
  483. - **KEY_ONEHALF** = **189** --- ½ key
  484. - **KEY_THREEQUARTERS** = **190** --- ¾ key
  485. - **KEY_QUESTIONDOWN** = **191** --- ¿ key
  486. - **KEY_AGRAVE** = **192** --- à key
  487. - **KEY_AACUTE** = **193** --- á key
  488. - **KEY_ACIRCUMFLEX** = **194** --- â key
  489. - **KEY_ATILDE** = **195** --- ã key
  490. - **KEY_ADIAERESIS** = **196** --- ä key
  491. - **KEY_ARING** = **197** --- å key
  492. - **KEY_AE** = **198** --- æ key
  493. - **KEY_CCEDILLA** = **199** --- ç key
  494. - **KEY_EGRAVE** = **200** --- è key
  495. - **KEY_EACUTE** = **201** --- é key
  496. - **KEY_ECIRCUMFLEX** = **202** --- ê key
  497. - **KEY_EDIAERESIS** = **203** --- ë key
  498. - **KEY_IGRAVE** = **204** --- ì key
  499. - **KEY_IACUTE** = **205** --- í key
  500. - **KEY_ICIRCUMFLEX** = **206** --- î key
  501. - **KEY_IDIAERESIS** = **207** --- ë key
  502. - **KEY_ETH** = **208** --- ð key
  503. - **KEY_NTILDE** = **209** --- ñ key
  504. - **KEY_OGRAVE** = **210** --- ò key
  505. - **KEY_OACUTE** = **211** --- ó key
  506. - **KEY_OCIRCUMFLEX** = **212** --- ô key
  507. - **KEY_OTILDE** = **213** --- õ key
  508. - **KEY_ODIAERESIS** = **214** --- ö key
  509. - **KEY_MULTIPLY** = **215** --- × key
  510. - **KEY_OOBLIQUE** = **216** --- ø key
  511. - **KEY_UGRAVE** = **217** --- ù key
  512. - **KEY_UACUTE** = **218** --- ú key
  513. - **KEY_UCIRCUMFLEX** = **219** --- û key
  514. - **KEY_UDIAERESIS** = **220** --- ü key
  515. - **KEY_YACUTE** = **221** --- ý key
  516. - **KEY_THORN** = **222** --- þ key
  517. - **KEY_SSHARP** = **223** --- ß key
  518. - **KEY_DIVISION** = **247** --- ÷ key
  519. - **KEY_YDIAERESIS** = **255** --- ÿ key
  520. .. _enum_@GlobalScope_Variant.Type:
  521. enum **Variant.Type**
  522. - **TYPE_NIL** = **0** --- Variable is of type nil (only applied for null).
  523. - **TYPE_BOOL** = **1** --- Variable is of type :ref:`bool<class_bool>`.
  524. - **TYPE_INT** = **2** --- Variable is of type :ref:`int<class_int>`.
  525. - **TYPE_REAL** = **3** --- Variable is of type :ref:`float<class_float>`/real.
  526. - **TYPE_STRING** = **4** --- Variable is of type :ref:`String<class_string>`.
  527. - **TYPE_VECTOR2** = **5** --- Variable is of type :ref:`Vector2<class_vector2>`.
  528. - **TYPE_RECT2** = **6** --- Variable is of type :ref:`Rect2<class_rect2>`.
  529. - **TYPE_VECTOR3** = **7** --- Variable is of type :ref:`Vector3<class_vector3>`.
  530. - **TYPE_TRANSFORM2D** = **8** --- Variable is of type :ref:`Transform2D<class_transform2d>`.
  531. - **TYPE_PLANE** = **9** --- Variable is of type :ref:`Plane<class_plane>`.
  532. - **TYPE_QUAT** = **10** --- Variable is of type :ref:`Quat<class_quat>`.
  533. - **TYPE_AABB** = **11** --- Variable is of type :ref:`AABB<class_aabb>`.
  534. - **TYPE_BASIS** = **12** --- Variable is of type :ref:`Basis<class_basis>`.
  535. - **TYPE_TRANSFORM** = **13** --- Variable is of type :ref:`Transform<class_transform>`.
  536. - **TYPE_COLOR** = **14** --- Variable is of type :ref:`Color<class_color>`.
  537. - **TYPE_NODE_PATH** = **15** --- Variable is of type :ref:`NodePath<class_nodepath>`.
  538. - **TYPE_RID** = **16** --- Variable is of type :ref:`RID<class_rid>`.
  539. - **TYPE_OBJECT** = **17** --- Variable is of type :ref:`Object<class_object>`.
  540. - **TYPE_DICTIONARY** = **18** --- Variable is of type :ref:`Dictionary<class_dictionary>`.
  541. - **TYPE_ARRAY** = **19** --- Variable is of type :ref:`Array<class_array>`.
  542. - **TYPE_RAW_ARRAY** = **20** --- Variable is of type :ref:`PoolByteArray<class_poolbytearray>`.
  543. - **TYPE_INT_ARRAY** = **21** --- Variable is of type :ref:`PoolIntArray<class_poolintarray>`.
  544. - **TYPE_REAL_ARRAY** = **22** --- Variable is of type :ref:`PoolRealArray<class_poolrealarray>`.
  545. - **TYPE_STRING_ARRAY** = **23** --- Variable is of type :ref:`PoolStringArray<class_poolstringarray>`.
  546. - **TYPE_VECTOR2_ARRAY** = **24** --- Variable is of type :ref:`PoolVector2Array<class_poolvector2array>`.
  547. - **TYPE_VECTOR3_ARRAY** = **25** --- Variable is of type :ref:`PoolVector3Array<class_poolvector3array>`.
  548. - **TYPE_COLOR_ARRAY** = **26** --- Variable is of type :ref:`PoolColorArray<class_poolcolorarray>`.
  549. - **TYPE_MAX** = **27** --- Marker for end of type constants.
  550. .. _enum_@GlobalScope_Margin:
  551. enum **Margin**
  552. - **MARGIN_LEFT** = **0** --- Left margin, used usually for :ref:`Control<class_control>` or :ref:`StyleBox<class_stylebox>` derived classes.
  553. - **MARGIN_TOP** = **1** --- Top margin, used usually for :ref:`Control<class_control>` or :ref:`StyleBox<class_stylebox>` derived classes.
  554. - **MARGIN_RIGHT** = **2** --- Right margin, used usually for :ref:`Control<class_control>` or :ref:`StyleBox<class_stylebox>` derived classes.
  555. - **MARGIN_BOTTOM** = **3** --- Bottom margin, used usually for :ref:`Control<class_control>` or :ref:`StyleBox<class_stylebox>` derived classes.
  556. .. _enum_@GlobalScope_ButtonList:
  557. enum **ButtonList**
  558. - **BUTTON_LEFT** = **1** --- Left Mouse Button
  559. - **BUTTON_RIGHT** = **2** --- Right Mouse Button
  560. - **BUTTON_MIDDLE** = **3** --- Middle Mouse Button
  561. - **BUTTON_WHEEL_UP** = **4** --- Mouse wheel up
  562. - **BUTTON_WHEEL_DOWN** = **5** --- Mouse wheel down
  563. - **BUTTON_WHEEL_LEFT** = **6** --- Mouse wheel left button
  564. - **BUTTON_WHEEL_RIGHT** = **7** --- Mouse wheel right button
  565. - **BUTTON_MASK_LEFT** = **1** --- Left Mouse Button Mask
  566. - **BUTTON_MASK_RIGHT** = **2** --- Right Mouse Button Mask
  567. - **BUTTON_MASK_MIDDLE** = **4** --- Middle Mouse Button Mask
  568. Description
  569. -----------
  570. Global scope constants and variables. This is all that resides in the globals, constants regarding error codes, scancodes, property hints, etc. It's not much.
  571. Singletons are also documented here, since they can be accessed from anywhere.