getZoomFactor()
Reads the zoom factor for a panel.
Synopsis
float getZoomFactor (float &factor, [string moduleName]);
Parameters
Parameter | Description |
---|---|
factor | Zoom factor |
moduleName | Name of the module. Optional parameter |
Return value
With an error, the function returns -1 otherwise, the zoom factor for a panel.
Error
Missing argument , wrong module name
Description
This function reads the zoom factor of the actual panel and writes the value to a variable (optionally, the module name can be set in the function).
Example
The following example returns the zoom factor for the actual panel.
main()
{
float f;
getZoomFactor(f);
DebugN("Zoom factor: ", f); // for example, 1,5 for 150 %
}
Assignment
Management of managers
Availability
UI