Synced
UiRuntime.SetViewport
Section titled “UiRuntime.SetViewport”
- Updates the viewport state and applies the resulting invariants.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.UI.Runtime
Declaration
Section titled “Declaration”public void Inno.UI.Runtime.UiRuntime.SetViewport(Inno.UI.UiContextHandle context, int width, int height, float density = 1)Parameters
Section titled “Parameters”Parameter context: The context that supplies state and services for this operation.
Parameter width: The width in logical units or pixels required by this operation.
Parameter height: The height in logical units or pixels required by this operation.
Parameter density: The density consumed by set viewport; ownership remains with the caller unless explicitly stated otherwise.