Window.hx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /*
  2. * Copyright (C)2005-2018 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\Window.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `Window` interface represents a window containing a DOM document; the `document` property points to the DOM document loaded in that window.
  26. Documentation [Window](https://developer.mozilla.org/en-US/docs/Web/API/Window) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/Window$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/Window>
  28. **/
  29. @:native("Window")
  30. extern class Window extends EventTarget
  31. {
  32. /**
  33. Returns a reference to the current window.
  34. **/
  35. var window(default,null) : Window;
  36. /**
  37. Returns an object reference to the window object itself.
  38. **/
  39. var self(default,null) : Window;
  40. /**
  41. Returns a reference to the document that the window contains.
  42. **/
  43. var document(default,null) : HTMLDocument;
  44. /**
  45. Gets/sets the name of the window.
  46. **/
  47. var name : String;
  48. /**
  49. Gets/sets the location, or current URL, of the window object.
  50. **/
  51. var location(default,null) : Location;
  52. /**
  53. Returns a reference to the history object.
  54. **/
  55. var history(default,null) : History;
  56. /**
  57. Returns the locationbar object, whose visibility can be toggled in the window.
  58. **/
  59. var locationbar(default,null) : BarProp;
  60. /**
  61. Returns the menubar object, whose visibility can be toggled in the window.
  62. **/
  63. var menubar(default,null) : BarProp;
  64. /**
  65. Returns the personalbar object, whose visibility can be toggled in the window.
  66. **/
  67. var personalbar(default,null) : BarProp;
  68. /**
  69. Returns the scrollbars object, whose visibility can be toggled in the window.
  70. **/
  71. var scrollbars(default,null) : BarProp;
  72. /**
  73. Returns the statusbar object, whose visibility can be toggled in the window.
  74. **/
  75. var statusbar(default,null) : BarProp;
  76. /**
  77. Returns the toolbar object, whose visibility can be toggled in the window.
  78. **/
  79. var toolbar(default,null) : BarProp;
  80. /**
  81. Gets/sets the text in the statusbar at the bottom of the browser.
  82. **/
  83. var status : String;
  84. /**
  85. This property indicates whether the current window is closed or not.
  86. **/
  87. var closed(default,null) : Bool;
  88. /**
  89. Returns the current event, which is the event currently being handled by the JavaScript code's context, or `undefined` if no event is currently being handled. The `Event` object passed directly to event handlers should be used instead whenever possible.
  90. **/
  91. var event(default,null) : Dynamic;
  92. /**
  93. Returns an array of the subframes in the current window.
  94. **/
  95. var frames(default,null) : Window;
  96. /**
  97. Returns the number of frames in the window. See also `window.frames`.
  98. **/
  99. var length(default,null) : Int;
  100. /**
  101. Returns a reference to the topmost window in the window hierarchy. This property is read only.
  102. **/
  103. var top(default,null) : Window;
  104. /**
  105. Returns a reference to the window that opened this current window.
  106. **/
  107. var opener : Dynamic;
  108. /**
  109. Returns a reference to the parent of the current window or subframe.
  110. **/
  111. var parent(default,null) : Window;
  112. /**
  113. Returns the element in which the window is embedded, or null if the window is not embedded.
  114. **/
  115. var frameElement(default,null) : Element;
  116. /**
  117. Returns a reference to the navigator object.
  118. **/
  119. var navigator(default,null) : Navigator;
  120. /**
  121. Returns a reference to the console object which provides access to the browser's debugging console.
  122. **/
  123. var console(default,null) : ConsoleInstance;
  124. /**
  125. Returns a reference to the screen object associated with the window.
  126. **/
  127. var screen(default,null) : Screen;
  128. /**
  129. Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
  130. **/
  131. var innerWidth : Dynamic;
  132. /**
  133. Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
  134. **/
  135. var innerHeight : Dynamic;
  136. /**
  137. Returns the number of pixels that the document has already been scrolled horizontally.
  138. **/
  139. var scrollX(default,null) : Float;
  140. /**
  141. An alias for `window.scrollX`.
  142. **/
  143. var pageXOffset(default,null) : Float;
  144. /**
  145. Returns the number of pixels that the document has already been scrolled vertically.
  146. **/
  147. var scrollY(default,null) : Float;
  148. /**
  149. An alias for `window.scrollY`
  150. **/
  151. var pageYOffset(default,null) : Float;
  152. /**
  153. Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
  154. **/
  155. var screenX : Dynamic;
  156. /**
  157. Returns the vertical distance of the top border of the user's browser from the top side of the screen.
  158. **/
  159. var screenY : Dynamic;
  160. /**
  161. Gets the width of the outside of the browser window.
  162. **/
  163. var outerWidth : Dynamic;
  164. /**
  165. Gets the height of the outside of the browser window.
  166. **/
  167. var outerHeight : Dynamic;
  168. /**
  169. Returns a `Performance` object, which includes the `Performance.timing` and `Performance.navigation` attributes, each of which is an object providing performance-related data. See also Using Navigation Timing for additional information and examples.
  170. **/
  171. var performance(default,null) : Performance;
  172. /**
  173. Returns the ratio between physical pixels and device independent pixels in the current display.
  174. **/
  175. var devicePixelRatio(default,null) : Float;
  176. /**
  177. The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
  178. **/
  179. var scrollMaxX(default,null) : Int;
  180. /**
  181. The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
  182. **/
  183. var scrollMaxY(default,null) : Int;
  184. /**
  185. This property indicates whether the window is displayed in full screen or not.
  186. **/
  187. var fullScreen : Bool;
  188. var ondevicemotion : haxe.Constraints.Function;
  189. var ondeviceorientation : haxe.Constraints.Function;
  190. var onabsolutedeviceorientation : haxe.Constraints.Function;
  191. var ondeviceproximity : haxe.Constraints.Function;
  192. var onuserproximity : haxe.Constraints.Function;
  193. var ondevicelight : haxe.Constraints.Function;
  194. /**
  195. Returns a reference to the content element in the current window. Since Firefox 57 (initially Nightly-only), both versions are only available from chrome (privileged) code, and not available to the web anymore.
  196. **/
  197. var content(default,null) : Dynamic;
  198. /**
  199. Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
  200. **/
  201. var orientation(default,null) : Int;
  202. var onorientationchange : haxe.Constraints.Function;
  203. /**
  204. Returns the browser crypto object.
  205. **/
  206. var crypto(default,null) : Crypto;
  207. var onabort : haxe.Constraints.Function;
  208. var onblur : haxe.Constraints.Function;
  209. var onfocus : haxe.Constraints.Function;
  210. var onauxclick : haxe.Constraints.Function;
  211. var oncanplay : haxe.Constraints.Function;
  212. var oncanplaythrough : haxe.Constraints.Function;
  213. var onchange : haxe.Constraints.Function;
  214. var onclick : haxe.Constraints.Function;
  215. var onclose : haxe.Constraints.Function;
  216. var oncontextmenu : haxe.Constraints.Function;
  217. var ondblclick : haxe.Constraints.Function;
  218. var ondrag : haxe.Constraints.Function;
  219. var ondragend : haxe.Constraints.Function;
  220. var ondragenter : haxe.Constraints.Function;
  221. var ondragexit : haxe.Constraints.Function;
  222. var ondragleave : haxe.Constraints.Function;
  223. var ondragover : haxe.Constraints.Function;
  224. var ondragstart : haxe.Constraints.Function;
  225. var ondrop : haxe.Constraints.Function;
  226. var ondurationchange : haxe.Constraints.Function;
  227. var onemptied : haxe.Constraints.Function;
  228. var onended : haxe.Constraints.Function;
  229. var oninput : haxe.Constraints.Function;
  230. var oninvalid : haxe.Constraints.Function;
  231. var onkeydown : haxe.Constraints.Function;
  232. var onkeypress : haxe.Constraints.Function;
  233. var onkeyup : haxe.Constraints.Function;
  234. var onload : haxe.Constraints.Function;
  235. var onloadeddata : haxe.Constraints.Function;
  236. var onloadedmetadata : haxe.Constraints.Function;
  237. var onloadend : haxe.Constraints.Function;
  238. var onloadstart : haxe.Constraints.Function;
  239. var onmousedown : haxe.Constraints.Function;
  240. var onmouseenter : haxe.Constraints.Function;
  241. var onmouseleave : haxe.Constraints.Function;
  242. var onmousemove : haxe.Constraints.Function;
  243. var onmouseout : haxe.Constraints.Function;
  244. var onmouseover : haxe.Constraints.Function;
  245. var onmouseup : haxe.Constraints.Function;
  246. var onwheel : haxe.Constraints.Function;
  247. var onpause : haxe.Constraints.Function;
  248. var onplay : haxe.Constraints.Function;
  249. var onplaying : haxe.Constraints.Function;
  250. var onprogress : haxe.Constraints.Function;
  251. var onratechange : haxe.Constraints.Function;
  252. var onreset : haxe.Constraints.Function;
  253. var onresize : haxe.Constraints.Function;
  254. var onscroll : haxe.Constraints.Function;
  255. var onseeked : haxe.Constraints.Function;
  256. var onseeking : haxe.Constraints.Function;
  257. var onselect : haxe.Constraints.Function;
  258. var onshow : haxe.Constraints.Function;
  259. var onstalled : haxe.Constraints.Function;
  260. var onsubmit : haxe.Constraints.Function;
  261. var onsuspend : haxe.Constraints.Function;
  262. var ontimeupdate : haxe.Constraints.Function;
  263. var onvolumechange : haxe.Constraints.Function;
  264. var onwaiting : haxe.Constraints.Function;
  265. var ontoggle : haxe.Constraints.Function;
  266. var onpointercancel : haxe.Constraints.Function;
  267. var onpointerdown : haxe.Constraints.Function;
  268. var onpointerup : haxe.Constraints.Function;
  269. var onpointermove : haxe.Constraints.Function;
  270. var onpointerout : haxe.Constraints.Function;
  271. var onpointerover : haxe.Constraints.Function;
  272. var onpointerenter : haxe.Constraints.Function;
  273. var onpointerleave : haxe.Constraints.Function;
  274. var ongotpointercapture : haxe.Constraints.Function;
  275. var onlostpointercapture : haxe.Constraints.Function;
  276. var onanimationcancel : haxe.Constraints.Function;
  277. var onanimationend : haxe.Constraints.Function;
  278. var onanimationiteration : haxe.Constraints.Function;
  279. var onanimationstart : haxe.Constraints.Function;
  280. var ontransitioncancel : haxe.Constraints.Function;
  281. var ontransitionend : haxe.Constraints.Function;
  282. var ontransitionrun : haxe.Constraints.Function;
  283. var ontransitionstart : haxe.Constraints.Function;
  284. var onwebkitanimationend : haxe.Constraints.Function;
  285. var onwebkitanimationiteration : haxe.Constraints.Function;
  286. var onwebkitanimationstart : haxe.Constraints.Function;
  287. var onwebkittransitionend : haxe.Constraints.Function;
  288. var onerror : haxe.extern.EitherType<Event,String> -> String -> Int -> Int -> Dynamic -> Dynamic;
  289. /**
  290. Returns a `SpeechSynthesis` object, which is the entry point into using Web Speech API speech synthesis functionality.
  291. **/
  292. var speechSynthesis(default,null) : SpeechSynthesis;
  293. var ontouchstart : haxe.Constraints.Function;
  294. var ontouchend : haxe.Constraints.Function;
  295. var ontouchmove : haxe.Constraints.Function;
  296. var ontouchcancel : haxe.Constraints.Function;
  297. var onafterprint : haxe.Constraints.Function;
  298. var onbeforeprint : haxe.Constraints.Function;
  299. var onbeforeunload : Event -> String;
  300. var onhashchange : haxe.Constraints.Function;
  301. var onlanguagechange : haxe.Constraints.Function;
  302. var onmessage : haxe.Constraints.Function;
  303. var onmessageerror : haxe.Constraints.Function;
  304. var onoffline : haxe.Constraints.Function;
  305. var ononline : haxe.Constraints.Function;
  306. var onpagehide : haxe.Constraints.Function;
  307. var onpageshow : haxe.Constraints.Function;
  308. var onpopstate : haxe.Constraints.Function;
  309. var onstorage : haxe.Constraints.Function;
  310. var onunload : haxe.Constraints.Function;
  311. /**
  312. Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
  313. **/
  314. var localStorage(default,null) : Storage;
  315. var origin(default,null) : String;
  316. /**
  317. Indicates whether a context is capable of using features that require secure contexts.
  318. **/
  319. var isSecureContext(default,null) : Bool;
  320. var indexedDB(default,null) : js.html.idb.Factory;
  321. /**
  322. Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
  323. **/
  324. var sessionStorage(default,null) : Storage;
  325. /**
  326. Closes the current window.
  327. @throws DOMError
  328. **/
  329. function close() : Void;
  330. /**
  331. This method stops window loading.
  332. @throws DOMError
  333. **/
  334. function stop() : Void;
  335. /**
  336. Sets focus on the current window.
  337. @throws DOMError
  338. **/
  339. function focus() : Void;
  340. /**
  341. Sets focus away from the window.
  342. @throws DOMError
  343. **/
  344. function blur() : Void;
  345. /**
  346. Opens a new window.
  347. @throws DOMError
  348. **/
  349. function open( ?url : String = "", ?target : String = "", ?features : String = "" ) : Window;
  350. /**
  351. Displays an alert dialog.
  352. @throws DOMError
  353. **/
  354. @:overload( function() : Void {} )
  355. function alert( message : String ) : Void;
  356. /**
  357. Displays a dialog with a message that the user needs to respond to.
  358. @throws DOMError
  359. **/
  360. function confirm( ?message : String = "" ) : Bool;
  361. /**
  362. Returns the text entered by the user in a prompt dialog.
  363. @throws DOMError
  364. **/
  365. function prompt( ?message : String = "", ?default_ : String = "" ) : String;
  366. /**
  367. Opens the Print Dialog to print the current document.
  368. @throws DOMError
  369. **/
  370. function print() : Void;
  371. /**
  372. Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.
  373. @throws DOMError
  374. **/
  375. function postMessage( message : Dynamic, targetOrigin : String, ?transfer : Array<Dynamic> = [] ) : Void;
  376. /**
  377. Registers the window to capture all events of the specified type.
  378. **/
  379. function captureEvents() : Void;
  380. /**
  381. Releases the window from trapping events of a specific type.
  382. **/
  383. function releaseEvents() : Void;
  384. /**
  385. Returns the selection object representing the selected item(s).
  386. @throws DOMError
  387. **/
  388. function getSelection() : Selection;
  389. /**
  390. Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.
  391. @throws DOMError
  392. **/
  393. function getComputedStyle( elt : Element, ?pseudoElt : String = "" ) : CSSStyleDeclaration;
  394. /**
  395. Returns a `MediaQueryList` object representing the specified media query string.
  396. @throws DOMError
  397. **/
  398. function matchMedia( query : String ) : MediaQueryList;
  399. /**
  400. Moves the window to the specified coordinates.
  401. @throws DOMError
  402. **/
  403. function moveTo( x : Int, y : Int ) : Void;
  404. /**
  405. Moves the current window by a specified amount.
  406. @throws DOMError
  407. **/
  408. function moveBy( x : Int, y : Int ) : Void;
  409. /**
  410. Dynamically resizes window.
  411. @throws DOMError
  412. **/
  413. function resizeTo( x : Int, y : Int ) : Void;
  414. /**
  415. Resizes the current window by a certain amount.
  416. @throws DOMError
  417. **/
  418. function resizeBy( x : Int, y : Int ) : Void;
  419. /**
  420. Scrolls the window to a particular place in the document.
  421. **/
  422. @:overload( function( x : Float, y : Float ) : Void {} )
  423. function scroll( ?options : ScrollToOptions ) : Void;
  424. /**
  425. Scrolls to a particular set of coordinates in the document.
  426. **/
  427. @:overload( function( x : Float, y : Float ) : Void {} )
  428. function scrollTo( ?options : ScrollToOptions ) : Void;
  429. /**
  430. Scrolls the document in the window by the given amount.
  431. **/
  432. @:overload( function( x : Float, y : Float ) : Void {} )
  433. function scrollBy( ?options : ScrollToOptions ) : Void;
  434. /**
  435. Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.
  436. @throws DOMError
  437. **/
  438. function requestAnimationFrame( callback : Float -> Void ) : Int;
  439. /**
  440. Enables you to cancel a callback previously scheduled with `Window.requestAnimationFrame`.
  441. @throws DOMError
  442. **/
  443. function cancelAnimationFrame( handle : Int ) : Void;
  444. /**
  445. Gets default computed style for the specified element, ignoring author stylesheets.
  446. @throws DOMError
  447. **/
  448. function getDefaultComputedStyle( elt : Element, ?pseudoElt : String = "" ) : CSSStyleDeclaration;
  449. /**
  450. Scrolls the document by the given number of lines.
  451. **/
  452. function scrollByLines( numLines : Int, ?options : ScrollOptions ) : Void;
  453. /**
  454. Scrolls the current document by the specified number of pages.
  455. **/
  456. function scrollByPages( numPages : Int, ?options : ScrollOptions ) : Void;
  457. /**
  458. Sizes the window according to its content.
  459. @throws DOMError
  460. **/
  461. function sizeToContent() : Void;
  462. /**
  463. Updates the state of commands of the current chrome window (UI).
  464. **/
  465. function updateCommands( action : String, ?sel : Selection, ?reason : Int = 0 ) : Void;
  466. /**
  467. Searches for a given string in a window.
  468. @throws DOMError
  469. **/
  470. function find( ?str : String = "", ?caseSensitive : Bool = false, ?backwards : Bool = false, ?wrapAround : Bool = false, ?wholeWord : Bool = false, ?searchInFrames : Bool = false, ?showDialog : Bool = false ) : Bool;
  471. /**
  472. Writes a message to the console.
  473. **/
  474. function dump( str : String ) : Void;
  475. /**
  476. Toggles a user's ability to resize a window.
  477. **/
  478. function setResizable( resizable : Bool ) : Void;
  479. /** @throws DOMError */
  480. function btoa( btoa : String ) : String;
  481. /** @throws DOMError */
  482. function atob( atob : String ) : String;
  483. /** @throws DOMError */
  484. @:overload( function( handler : haxe.Constraints.Function, ?timeout : Int = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
  485. function setTimeout( handler : String, ?timeout : Int = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
  486. function clearTimeout( ?handle : Int = 0 ) : Void;
  487. /** @throws DOMError */
  488. @:overload( function( handler : haxe.Constraints.Function, ?timeout : Int = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
  489. function setInterval( handler : String, ?timeout : Int = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
  490. function clearInterval( ?handle : Int = 0 ) : Void;
  491. /** @throws DOMError */
  492. @:overload( function( aImage : VideoElement) : Promise<ImageBitmap> {} )
  493. @:overload( function( aImage : CanvasElement) : Promise<ImageBitmap> {} )
  494. @:overload( function( aImage : Blob) : Promise<ImageBitmap> {} )
  495. @:overload( function( aImage : ImageData) : Promise<ImageBitmap> {} )
  496. @:overload( function( aImage : CanvasRenderingContext2D) : Promise<ImageBitmap> {} )
  497. @:overload( function( aImage : ImageBitmap) : Promise<ImageBitmap> {} )
  498. @:overload( function( aImage : ArrayBufferView) : Promise<ImageBitmap> {} )
  499. @:overload( function( aImage : ArrayBuffer) : Promise<ImageBitmap> {} )
  500. @:overload( function( aImage : VideoElement, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  501. @:overload( function( aImage : CanvasElement, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  502. @:overload( function( aImage : Blob, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  503. @:overload( function( aImage : ImageData, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  504. @:overload( function( aImage : CanvasRenderingContext2D, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  505. @:overload( function( aImage : ImageBitmap, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  506. @:overload( function( aImage : ArrayBufferView, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  507. @:overload( function( aImage : ArrayBuffer, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  508. @:overload( function( aImage : VideoElement, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  509. @:overload( function( aImage : CanvasElement, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  510. @:overload( function( aImage : Blob, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  511. @:overload( function( aImage : ImageData, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  512. @:overload( function( aImage : CanvasRenderingContext2D, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  513. @:overload( function( aImage : ImageBitmap, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  514. @:overload( function( aImage : ArrayBufferView, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  515. @:overload( function( aImage : ArrayBuffer, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  516. @:overload( function( aImage : ImageElement ) : Promise<ImageBitmap> {} )
  517. @:overload( function( aImage : ImageElement, aSx : Int, aSy : Int, aSw : Int, aSh : Int ) : Promise<ImageBitmap> {} )
  518. function createImageBitmap( aImage : ImageElement, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout> ) : Promise<ImageBitmap>;
  519. @:overload( function( input : String, ?init : RequestInit) : Promise<Response> {} )
  520. function fetch( input : Request, ?init : RequestInit ) : Promise<Response>;
  521. }