setZoomRange()
Sets the minimum and maximum value that can be used while zooming.
Synopsis
int setZoomRange(float min, float max);
Parameters
Parameter | Description |
---|---|
min | Minimum zoom factor |
max | Maximum zoom factor |
Return value
The function returns 0 on success, an error returns -1.
Error
An error occurs when the minimum or maximum are less than 0.0 or the minimum is bigger than the maximum.
Description
This function sets the maximum and minimum zoom range that can be set when using the zoom functions.
Note: The maximum and minimum zoom factor is a UI manager global setting and will affect all panels.
Assignment
CTRL
Availability
CTRL, UI