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

API: scripting
Project: Inno.UI
Scope: Runtime

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

Parameter context: The context that owns the requested document or state.

Parameter width: New viewport width in physical pixels.

Parameter height: New viewport height in physical pixels.

Parameter density: Physical pixels per logical layout pixel.