|
249 | 249 | <param index="0" name="position" type="Vector2i" /> |
250 | 250 | <description> |
251 | 251 | Returns the ID of the window at the specified screen [param position] (in pixels). On multi-monitor setups, the screen position is relative to the virtual desktop area. On multi-monitor setups with different screen resolutions or orientations, the origin may be located outside any display like this: |
252 | | - [codeblock] |
| 252 | + [codeblock lang=text] |
253 | 253 | * (0, 0) +-------+ |
254 | 254 | | | |
255 | 255 | +-------------+ | | |
|
282 | 282 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
283 | 283 | [b]Note:[/b] This method is implemented only on macOS. |
284 | 284 | [b]Supported system menu IDs:[/b] |
285 | | - [codeblock] |
| 285 | + [codeblock lang=text] |
286 | 286 | "_main" - Main menu (macOS). |
287 | 287 | "_dock" - Dock popup menu (macOS). |
288 | 288 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
308 | 308 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
309 | 309 | [b]Note:[/b] This method is implemented only on macOS. |
310 | 310 | [b]Supported system menu IDs:[/b] |
311 | | - [codeblock] |
| 311 | + [codeblock lang=text] |
312 | 312 | "_main" - Main menu (macOS). |
313 | 313 | "_dock" - Dock popup menu (macOS). |
314 | 314 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
334 | 334 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
335 | 335 | [b]Note:[/b] This method is implemented only on macOS. |
336 | 336 | [b]Supported system menu IDs:[/b] |
337 | | - [codeblock] |
| 337 | + [codeblock lang=text] |
338 | 338 | "_main" - Main menu (macOS). |
339 | 339 | "_dock" - Dock popup menu (macOS). |
340 | 340 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
361 | 361 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
362 | 362 | [b]Note:[/b] This method is implemented only on macOS. |
363 | 363 | [b]Supported system menu IDs:[/b] |
364 | | - [codeblock] |
| 364 | + [codeblock lang=text] |
365 | 365 | "_main" - Main menu (macOS). |
366 | 366 | "_dock" - Dock popup menu (macOS). |
367 | 367 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
386 | 386 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
387 | 387 | [b]Note:[/b] This method is implemented only on macOS. |
388 | 388 | [b]Supported system menu IDs:[/b] |
389 | | - [codeblock] |
| 389 | + [codeblock lang=text] |
390 | 390 | "_main" - Main menu (macOS). |
391 | 391 | "_dock" - Dock popup menu (macOS). |
392 | 392 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
415 | 415 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
416 | 416 | [b]Note:[/b] This method is implemented only on macOS. |
417 | 417 | [b]Supported system menu IDs:[/b] |
418 | | - [codeblock] |
| 418 | + [codeblock lang=text] |
419 | 419 | "_main" - Main menu (macOS). |
420 | 420 | "_dock" - Dock popup menu (macOS). |
421 | 421 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
441 | 441 | [b]Note:[/b] The [param callback] and [param key_callback] Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to [param tag]. |
442 | 442 | [b]Note:[/b] This method is implemented only on macOS. |
443 | 443 | [b]Supported system menu IDs:[/b] |
444 | | - [codeblock] |
| 444 | + [codeblock lang=text] |
445 | 445 | "_main" - Main menu (macOS). |
446 | 446 | "_dock" - Dock popup menu (macOS). |
447 | 447 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
459 | 459 | Returns index of the inserted item, it's not guaranteed to be the same as [param index] value. |
460 | 460 | [b]Note:[/b] This method is implemented only on macOS. |
461 | 461 | [b]Supported system menu IDs:[/b] |
462 | | - [codeblock] |
| 462 | + [codeblock lang=text] |
463 | 463 | "_main" - Main menu (macOS). |
464 | 464 | "_dock" - Dock popup menu (macOS). |
465 | 465 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
479 | 479 | Returns index of the inserted item, it's not guaranteed to be the same as [param index] value. |
480 | 480 | [b]Note:[/b] This method is implemented only on macOS. |
481 | 481 | [b]Supported system menu IDs:[/b] |
482 | | - [codeblock] |
| 482 | + [codeblock lang=text] |
483 | 483 | "_main" - Main menu (macOS). |
484 | 484 | "_dock" - Dock popup menu (macOS). |
485 | 485 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
495 | 495 | Removes all items from the global menu with ID [param menu_root]. |
496 | 496 | [b]Note:[/b] This method is implemented only on macOS. |
497 | 497 | [b]Supported system menu IDs:[/b] |
498 | | - [codeblock] |
| 498 | + [codeblock lang=text] |
499 | 499 | "_main" - Main menu (macOS). |
500 | 500 | "_dock" - Dock popup menu (macOS). |
501 | 501 | "_apple" - Apple menu (macOS, custom items added before "Services"). |
|
1022 | 1022 | Returns the dots per inch density of the specified screen. If [param screen] is [constant SCREEN_OF_MAIN_WINDOW] (the default value), a screen with the main window will be used. |
1023 | 1023 | [b]Note:[/b] On macOS, returned value is inaccurate if fractional display scaling mode is used. |
1024 | 1024 | [b]Note:[/b] On Android devices, the actual screen densities are grouped into six generalized densities: |
1025 | | - [codeblock] |
| 1025 | + [codeblock lang=text] |
1026 | 1026 | ldpi - 120 dpi |
1027 | 1027 | mdpi - 160 dpi |
1028 | 1028 | hdpi - 240 dpi |
|
1072 | 1072 | <param index="0" name="screen" type="int" default="-1" /> |
1073 | 1073 | <description> |
1074 | 1074 | Returns the screen's top-left corner position in pixels. On multi-monitor setups, the screen position is relative to the virtual desktop area. On multi-monitor setups with different screen resolutions or orientations, the origin may be located outside any display like this: |
1075 | | - [codeblock] |
| 1075 | + [codeblock lang=text] |
1076 | 1076 | * (0, 0) +-------+ |
1077 | 1077 | | | |
1078 | 1078 | +-------------+ | | |
|
1674 | 1674 | <param index="1" name="window_id" type="int" default="0" /> |
1675 | 1675 | <description> |
1676 | 1676 | Sets the position of the given window to [param position]. On multi-monitor setups, the screen position is relative to the virtual desktop area. On multi-monitor setups with different screen resolutions or orientations, the origin may be located outside any display like this: |
1677 | | - [codeblock] |
| 1677 | + [codeblock lang=text] |
1678 | 1678 | * (0, 0) +-------+ |
1679 | 1679 | | | |
1680 | 1680 | +-------------+ | | |
|
0 commit comments