|
3010 | 3010 | "module": "Runtime", |
3011 | 3011 | "namespace": "", |
3012 | 3012 | "file": "../../source/runtime/NunuApp.js", |
3013 | | - "line": 108, |
| 3013 | + "line": 109, |
3014 | 3014 | "description": "NunuApp is the main class of the runtime system, is used to embed nunu application into a webpage.\n\n.isp files can be loaded directly into webpages.", |
3015 | 3015 | "is_constructor": 1, |
3016 | 3016 | "params": [ |
|
12884 | 12884 | }, |
12885 | 12885 | { |
12886 | 12886 | "file": "../../source/runtime/NunuApp.js", |
12887 | | - "line": 119, |
| 12887 | + "line": 120, |
12888 | 12888 | "description": "Nunu Program", |
12889 | 12889 | "itemtype": "property", |
12890 | 12890 | "name": "program", |
|
12894 | 12894 | }, |
12895 | 12895 | { |
12896 | 12896 | "file": "../../source/runtime/NunuApp.js", |
12897 | | - "line": 125, |
| 12897 | + "line": 126, |
12898 | 12898 | "description": "Graphics renderer in use by this NunuApp instance", |
12899 | 12899 | "itemtype": "property", |
12900 | 12900 | "name": "renderer", |
|
12904 | 12904 | }, |
12905 | 12905 | { |
12906 | 12906 | "file": "../../source/runtime/NunuApp.js", |
12907 | | - "line": 131, |
| 12907 | + "line": 132, |
12908 | 12908 | "description": "VR flag, to set VR mode the toggleVR method should be used", |
12909 | 12909 | "itemtype": "property", |
12910 | 12910 | "name": "vr", |
|
12915 | 12915 | }, |
12916 | 12916 | { |
12917 | 12917 | "file": "../../source/runtime/NunuApp.js", |
12918 | | - "line": 138, |
| 12918 | + "line": 139, |
12919 | 12919 | "description": "Canvas used to render graphics.", |
12920 | 12920 | "itemtype": "property", |
12921 | 12921 | "name": "canvas", |
|
12925 | 12925 | }, |
12926 | 12926 | { |
12927 | 12927 | "file": "../../source/runtime/NunuApp.js", |
12928 | | - "line": 144, |
| 12928 | + "line": 145, |
12929 | 12929 | "description": "Flag used to controll if the canvas element is resized automatically by the nunu app instance.\n\nIf true the canvas is resized whenether the resize method is called.", |
12930 | 12930 | "itemtype": "property", |
12931 | 12931 | "name": "canvasFitWindow", |
|
12936 | 12936 | }, |
12937 | 12937 | { |
12938 | 12938 | "file": "../../source/runtime/NunuApp.js", |
12939 | | - "line": 154, |
| 12939 | + "line": 155, |
12940 | 12940 | "description": "Lock and hide mouse pointer to the canvas.", |
12941 | 12941 | "itemtype": "method", |
12942 | 12942 | "name": "lockMouse", |
|
12945 | 12945 | }, |
12946 | 12946 | { |
12947 | 12947 | "file": "../../source/runtime/NunuApp.js", |
12948 | | - "line": 192, |
| 12948 | + "line": 193, |
12949 | 12949 | "description": "Start running nunu program.\n\nA nunu program must be loaded before calling this method.", |
12950 | 12950 | "itemtype": "method", |
12951 | 12951 | "name": "run", |
|
12954 | 12954 | }, |
12955 | 12955 | { |
12956 | 12956 | "file": "../../source/runtime/NunuApp.js", |
12957 | | - "line": 259, |
| 12957 | + "line": 260, |
12958 | 12958 | "description": "Load program asynchronously and run it after its loaded.", |
12959 | 12959 | "itemtype": "method", |
12960 | 12960 | "name": "loadRunProgram", |
|
12980 | 12980 | }, |
12981 | 12981 | { |
12982 | 12982 | "file": "../../source/runtime/NunuApp.js", |
12983 | | - "line": 280, |
| 12983 | + "line": 281, |
12984 | 12984 | "description": "Load program from file.", |
12985 | 12985 | "itemtype": "method", |
12986 | 12986 | "name": "loadProgram", |
|
12996 | 12996 | }, |
12997 | 12997 | { |
12998 | 12998 | "file": "../../source/runtime/NunuApp.js", |
12999 | | - "line": 305, |
| 12999 | + "line": 306, |
13000 | 13000 | "description": "Load program from file, asynchronously.", |
13001 | 13001 | "itemtype": "method", |
13002 | 13002 | "name": "loadProgramAsync", |
|
13022 | 13022 | }, |
13023 | 13023 | { |
13024 | 13024 | "file": "../../source/runtime/NunuApp.js", |
13025 | | - "line": 348, |
| 13025 | + "line": 349, |
13026 | 13026 | "description": "Update nunu program state.\n\nAutomatically called by the runtime handler.", |
13027 | 13027 | "itemtype": "method", |
13028 | 13028 | "name": "update", |
|
13031 | 13031 | }, |
13032 | 13032 | { |
13033 | 13033 | "file": "../../source/runtime/NunuApp.js", |
13034 | | - "line": 364, |
| 13034 | + "line": 365, |
13035 | 13035 | "description": "Exit from app.\n\nThis method kills the app and disposes all internal elements to avoid memory leaks.\n\nIs should be called before exiting the webpage or before switching nunu programs.\n\nWhen loading new nunu programs the same NunuApp instance can be used.", |
13036 | 13036 | "itemtype": "method", |
13037 | 13037 | "name": "exit", |
|
13040 | 13040 | }, |
13041 | 13041 | { |
13042 | 13042 | "file": "../../source/runtime/NunuApp.js", |
13043 | | - "line": 415, |
| 13043 | + "line": 416, |
13044 | 13044 | "description": "Start or resume the paused application.\n\nStarts a new update cycle and sets the running flag.", |
13045 | 13045 | "itemtype": "method", |
13046 | 13046 | "name": "resume", |
|
13049 | 13049 | }, |
13050 | 13050 | { |
13051 | 13051 | "file": "../../source/runtime/NunuApp.js", |
13052 | | - "line": 449, |
| 13052 | + "line": 450, |
13053 | 13053 | "description": "Pause the running application.", |
13054 | 13054 | "itemtype": "method", |
13055 | 13055 | "name": "pause", |
|
13058 | 13058 | }, |
13059 | 13059 | { |
13060 | 13060 | "file": "../../source/runtime/NunuApp.js", |
13061 | | - "line": 459, |
| 13061 | + "line": 460, |
13062 | 13062 | "description": "Set the canvas to be used for rendering.\n\nShould be set before starting the program.", |
13063 | 13063 | "itemtype": "method", |
13064 | 13064 | "name": "setCanvas", |
|
13074 | 13074 | }, |
13075 | 13075 | { |
13076 | 13076 | "file": "../../source/runtime/NunuApp.js", |
13077 | | - "line": 473, |
| 13077 | + "line": 474, |
13078 | 13078 | "description": "Resize the window.\n\nShould be called whenether the host window is resized.", |
13079 | 13079 | "itemtype": "method", |
13080 | 13080 | "name": "resize", |
|
13083 | 13083 | }, |
13084 | 13084 | { |
13085 | 13085 | "file": "../../source/runtime/NunuApp.js", |
13086 | | - "line": 497, |
| 13086 | + "line": 498, |
13087 | 13087 | "description": "Send data to running nunu application.\n\nThe data sent using this method is received by scripts that implement the onAppData method.", |
13088 | 13088 | "params": [ |
13089 | 13089 | { |
|
13099 | 13099 | }, |
13100 | 13100 | { |
13101 | 13101 | "file": "../../source/runtime/NunuApp.js", |
13102 | | - "line": 513, |
| 13102 | + "line": 514, |
13103 | 13103 | "description": "Set on data receive callback.\n\nCallback receives data as an argument.", |
13104 | 13104 | "itemtype": "method", |
13105 | 13105 | "name": "setOnDataReceived", |
|
13115 | 13115 | }, |
13116 | 13116 | { |
13117 | 13117 | "file": "../../source/runtime/NunuApp.js", |
13118 | | - "line": 526, |
| 13118 | + "line": 527, |
13119 | 13119 | "description": "Set on exit callback.\n\nCallback is executed when exiting the nunu app.", |
13120 | 13120 | "itemtype": "method", |
13121 | 13121 | "name": "setOnExit", |
|
13131 | 13131 | }, |
13132 | 13132 | { |
13133 | 13133 | "file": "../../source/runtime/NunuApp.js", |
13134 | | - "line": 539, |
| 13134 | + "line": 540, |
13135 | 13135 | "description": "Check if virtual reality mode is available.", |
13136 | 13136 | "itemtype": "method", |
13137 | 13137 | "name": "vrAvailable", |
|
13144 | 13144 | }, |
13145 | 13145 | { |
13146 | 13146 | "file": "../../source/runtime/NunuApp.js", |
13147 | | - "line": 550, |
| 13147 | + "line": 551, |
13148 | 13148 | "description": "Toggle VR mode, only works if VR mode is available.", |
13149 | 13149 | "itemtype": "method", |
13150 | 13150 | "name": "toggleVR", |
|
13153 | 13153 | }, |
13154 | 13154 | { |
13155 | 13155 | "file": "../../source/runtime/NunuApp.js", |
13156 | | - "line": 574, |
| 13156 | + "line": 575, |
13157 | 13157 | "description": "Set a element to fullscreen mode, if none is passed the rendering canvas is used.", |
13158 | 13158 | "itemtype": "method", |
13159 | 13159 | "name": "toggleFullscreen", |
|
0 commit comments