Add support for PiP mode
This commit is contained in:
parent
220b0b2f74
commit
ef0163ba9f
27 changed files with 405 additions and 52 deletions
|
|
@ -1604,6 +1604,14 @@
|
|||
[b]Note:[/b] This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_in_pip_mode">
|
||||
<return type="bool" />
|
||||
<param index="0" name="window_id" type="int" default="0" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the application is in picture-in-picture mode.
|
||||
[b]Note:[/b] This method is implemented on Android.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_touchscreen_available" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
|
|
@ -1695,6 +1703,33 @@
|
|||
Sets the current mouse mode. See also [method mouse_get_mode].
|
||||
</description>
|
||||
</method>
|
||||
<method name="pip_mode_enter">
|
||||
<return type="void" />
|
||||
<param index="0" name="window_id" type="int" default="0" />
|
||||
<description>
|
||||
Enters picture-in-picture mode.
|
||||
[b]Note:[/b] This method is implemented on Android.
|
||||
</description>
|
||||
</method>
|
||||
<method name="pip_mode_set_aspect_ratio">
|
||||
<return type="void" />
|
||||
<param index="0" name="numerator" type="int" />
|
||||
<param index="1" name="denominator" type="int" />
|
||||
<param index="2" name="window_id" type="int" default="0" />
|
||||
<description>
|
||||
Specifies the aspect ratio for picture-in-picture mode.
|
||||
[b]Note:[/b] This method is implemented on Android.
|
||||
</description>
|
||||
</method>
|
||||
<method name="pip_mode_set_auto_enter_on_background">
|
||||
<return type="void" />
|
||||
<param index="0" name="auto_enter_on_background" type="bool" />
|
||||
<param index="1" name="window_id" type="int" default="0" />
|
||||
<description>
|
||||
Specifies whether picture-in-picture mode should be entered automatically when the application goes in the background.
|
||||
[b]Note:[/b] This method is implemented on Android.
|
||||
</description>
|
||||
</method>
|
||||
<method name="process_events">
|
||||
<return type="void" />
|
||||
<description>
|
||||
|
|
@ -2753,6 +2788,9 @@
|
|||
<constant name="FEATURE_HDR_OUTPUT" value="35" enum="Feature">
|
||||
Display server supports HDR output. [b]macOS, iOS, visionOS, Windows[/b]
|
||||
</constant>
|
||||
<constant name="FEATURE_PIP_MODE" value="36" enum="Feature">
|
||||
Display server supports putting the application in picture-in-picture mode. [b]Android[/b]
|
||||
</constant>
|
||||
<constant name="ROLE_UNKNOWN" value="0" enum="AccessibilityRole" deprecated="Use [AccessibilityServer] instead.">
|
||||
Unknown or custom role.
|
||||
</constant>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue