Synced
UI.SetViewport
Section titled “UI.SetViewport”
- Changes one context’s pixel dimensions and density.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.UI
Declaration
Section titled “Declaration”public static void Inno.UI.UI.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.