viewportPosOnControl

Checks whether a 2D viewport position affects the control.

Signatures

  •   ParamateControls.<ControlName>.viewportPosOnControl(pos)

Details

Abstract function that must be implemented when creating a custom control. The function is used internally to check, whether a click on a position would activate the control or not.

The function checks but must not alter the state of the control.

Parameters

pos

A pixel position on the viewport: the click position.

Return value

'true' if the control would be activated by a click on this position, 'false' otherwise.