getInitialZoomFactor()

Returns the defined zoom factor that scales all panels (even childpanels) after the start of a UI.

Synopsis

float getInitialZoomFactor(float &factor);

Parameters

Parameter Meaning
factor Defined zoom factor

Return value

The function returns the zoom factor defined in the config file or in the event of an error, -1.

Error

Missing arguments.

Description

Returns the defined zoom factor (see Reference tables).

Example

main()
{
  float factor;
  getInitialZoomFactor(factor);
  DebugN("Defined zoom factor: " + factor);
}

Assignment

Management of managers

Availability

UI

See also

Reference tables, Zooming/Panning