Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Changes one context’s pixel dimensions and density.

API: scripting
Project: Inno.UI
Scope: Runtime

public static void InnoEngine.UI.UI.SetViewport(InnoEngine.UI.UiContextHandle context, int width, int height, float density = 1)

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.