|
2131 | 2131 | Returns the current value of the given window's [param flag]. |
2132 | 2132 | </description> |
2133 | 2133 | </method> |
| 2134 | + <method name="window_get_hdr_output_current_max_luminance" qualifiers="const"> |
| 2135 | + <return type="float" /> |
| 2136 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2137 | + <description> |
| 2138 | + Returns the current maximum luminance in nits (cd/m²) for HDR content for the window specified by [param window_id]. |
| 2139 | + If max luminance is being auto adjusted based on the display's capabilities, this will return that value. |
| 2140 | + Otherwise, it will return the value set by [method window_set_hdr_output_max_luminance]. |
| 2141 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2142 | + </description> |
| 2143 | + </method> |
| 2144 | + <method name="window_get_hdr_output_current_reference_luminance" qualifiers="const"> |
| 2145 | + <return type="float" /> |
| 2146 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2147 | + <description> |
| 2148 | + Returns the current reference luminance in nits (cd/m²) for HDR content for the window specified by [param window_id]. |
| 2149 | + If reference luminance is being auto adjusted based on the display's capabilities, this will return that value. |
| 2150 | + Otherwise, it will return the value set by [method window_set_hdr_output_reference_luminance]. |
| 2151 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2152 | + </description> |
| 2153 | + </method> |
| 2154 | + <method name="window_get_hdr_output_max_luminance" qualifiers="const"> |
| 2155 | + <return type="float" /> |
| 2156 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2157 | + <description> |
| 2158 | + Returns the maximum luminance in nits (cd/m²) set for HDR content for the window specified by [param window_id]. |
| 2159 | + Negative values indicate that the value is being auto adjusted based on the display's capabilities. |
| 2160 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2161 | + </description> |
| 2162 | + </method> |
| 2163 | + <method name="window_get_hdr_output_reference_luminance" qualifiers="const"> |
| 2164 | + <return type="float" /> |
| 2165 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2166 | + <description> |
| 2167 | + Returns the SDR reference luminance in nits (cd/m²) set for HDR content for the window specified by [param window_id]. |
| 2168 | + Negative values indicate that the value is being auto adjusted based on the display's capabilities. |
| 2169 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2170 | + </description> |
| 2171 | + </method> |
2134 | 2172 | <method name="window_get_max_size" qualifiers="const"> |
2135 | 2173 | <return type="Vector2i" /> |
2136 | 2174 | <param index="0" name="window_id" type="int" default="0" /> |
|
2161 | 2199 | [b]Note:[/b] This method is implemented on Android, Linux (X11/Wayland), macOS, and Windows. |
2162 | 2200 | </description> |
2163 | 2201 | </method> |
| 2202 | + <method name="window_get_output_max_linear_value" qualifiers="const"> |
| 2203 | + <return type="float" /> |
| 2204 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2205 | + <description> |
| 2206 | + Equivalent to [method Window.get_output_max_linear_value]. |
| 2207 | + </description> |
| 2208 | + </method> |
2164 | 2209 | <method name="window_get_popup_safe_rect" qualifiers="const"> |
2165 | 2210 | <return type="Rect2i" /> |
2166 | 2211 | <param index="0" name="window" type="int" /> |
|
2226 | 2271 | Returns [code]true[/code] if the window specified by [param window_id] is focused. |
2227 | 2272 | </description> |
2228 | 2273 | </method> |
| 2274 | + <method name="window_is_hdr_output_enabled" qualifiers="const"> |
| 2275 | + <return type="bool" /> |
| 2276 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2277 | + <description> |
| 2278 | + Returns whether HDR output is currently enabled for the window specified by [param window_id]. |
| 2279 | + This value may change dynamically based on system settings, display capabilities, and which display the window is currently on. |
| 2280 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2281 | + </description> |
| 2282 | + </method> |
| 2283 | + <method name="window_is_hdr_output_requested" qualifiers="const"> |
| 2284 | + <return type="bool" /> |
| 2285 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2286 | + <description> |
| 2287 | + Returns whether HDR output is requested for the window specified by [param window_id]. |
| 2288 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2289 | + </description> |
| 2290 | + </method> |
| 2291 | + <method name="window_is_hdr_output_supported" qualifiers="const"> |
| 2292 | + <return type="bool" /> |
| 2293 | + <param index="0" name="window_id" type="int" default="0" /> |
| 2294 | + <description> |
| 2295 | + Returns whether the window specified by [param window_id] supports HDR output. |
| 2296 | + This depends on the platform, display capabilities, system settings, and the display the window is currently on. |
| 2297 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2298 | + </description> |
| 2299 | + </method> |
2229 | 2300 | <method name="window_is_maximize_allowed" qualifiers="const"> |
2230 | 2301 | <return type="bool" /> |
2231 | 2302 | <param index="0" name="window_id" type="int" default="0" /> |
|
2261 | 2332 | Makes the window specified by [param window_id] request attention, which is materialized by the window title and taskbar entry blinking until the window is focused. This usually has no visible effect if the window is currently focused. The exact behavior varies depending on the operating system. |
2262 | 2333 | </description> |
2263 | 2334 | </method> |
| 2335 | + <method name="window_request_hdr_output"> |
| 2336 | + <return type="void" /> |
| 2337 | + <param index="0" name="enable" type="bool" /> |
| 2338 | + <param index="1" name="window_id" type="int" default="0" /> |
| 2339 | + <description> |
| 2340 | + Sets whether HDR output should be requested for the window specified by [param window_id], falling back to SDR if not supported, and automatically switching between HDR and SDR as the window moves between displays, display capabilities change, or system settings are modified. |
| 2341 | + Only available on platforms that support HDR output, have HDR enabled in the system settings, and have a compatible display connected. |
| 2342 | + [b]Note:[/b] Some integrated GPUs have poor support for HDR output, even when they claim to support it. If you experience issues, try disabling this setting. |
| 2343 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2344 | + [b]Note:[/b] Requires support by the rendering device. |
| 2345 | + </description> |
| 2346 | + </method> |
2264 | 2347 | <method name="window_set_color"> |
2265 | 2348 | <return type="void" /> |
2266 | 2349 | <param index="0" name="color" type="Color" /> |
|
2308 | 2391 | Enables or disables the given window's given [param flag]. |
2309 | 2392 | </description> |
2310 | 2393 | </method> |
| 2394 | + <method name="window_set_hdr_output_max_luminance"> |
| 2395 | + <return type="void" /> |
| 2396 | + <param index="0" name="max_luminance" type="float" /> |
| 2397 | + <param index="1" name="window_id" type="int" default="0" /> |
| 2398 | + <description> |
| 2399 | + Sets the maximum luminance in nits (cd/m²) for HDR content for the window specified by [param window_id]. |
| 2400 | + Set to a negative value to automatically use the display's maximum capability. |
| 2401 | + By default, this is set to [code]-1[/code]. |
| 2402 | + This controls the maximum brightness of bright elements in HDR content, typically by scaling down highlights within the scene. |
| 2403 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2404 | + [b]Note:[/b] Requires support by the rendering device. |
| 2405 | + [b]Note:[/b] On some platforms, setting a custom max luminance is not supported and will always be auto adjusted based on the display's capabilities. |
| 2406 | + </description> |
| 2407 | + </method> |
| 2408 | + <method name="window_set_hdr_output_reference_luminance"> |
| 2409 | + <return type="void" /> |
| 2410 | + <param index="0" name="reference_luminance" type="float" /> |
| 2411 | + <param index="1" name="window_id" type="int" default="0" /> |
| 2412 | + <description> |
| 2413 | + Sets the SDR reference luminance in nits (cd/m²) for HDR content for the window specified by [param window_id]. |
| 2414 | + Set to a negative value to automatically adjust to the reference level set by the OS or window manager. |
| 2415 | + By default, this is set to [code]-1[/code]. |
| 2416 | + This controls the brightness of SDR content (such as UI) when HDR is enabled. |
| 2417 | + [b]Note:[/b] Requires support for [constant FEATURE_HDR_OUTPUT]. |
| 2418 | + [b]Note:[/b] Requires support by the rendering device. |
| 2419 | + [b]Note:[/b] On some platforms, setting a custom reference luminance is not supported and will always be auto adjusted based on the display's capabilities. |
| 2420 | + </description> |
| 2421 | + </method> |
2311 | 2422 | <method name="window_set_ime_active"> |
2312 | 2423 | <return type="void" /> |
2313 | 2424 | <param index="0" name="active" type="bool" /> |
|
2620 | 2731 | <constant name="FEATURE_ACCESSIBILITY_SCREEN_READER" value="34" enum="Feature"> |
2621 | 2732 | Display server supports interaction with screen reader or Braille display. [b]Linux (X11/Wayland), macOS, Windows[/b] |
2622 | 2733 | </constant> |
| 2734 | + <constant name="FEATURE_HDR_OUTPUT" value="35" enum="Feature"> |
| 2735 | + Display server supports HDR output. [b]Windows[/b] |
| 2736 | + </constant> |
2623 | 2737 | <constant name="ROLE_UNKNOWN" value="0" enum="AccessibilityRole"> |
2624 | 2738 | Unknown or custom role. |
2625 | 2739 | </constant> |
|
0 commit comments