[email protected] 29 KB

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