Synced
IUiService.SetViewport
Section titled “IUiService.SetViewport”
- Changes one context’s pixel dimensions and density.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.UI
Scope: Runtime
Declaration
Section titled “Declaration”void InnoEngine.UI.IUiService.SetViewport(InnoEngine.UI.UiContextHandle context, int width, int height, float density = 1)Parameters
Section titled “Parameters”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.