|
KiCad PCB EDA Suite
|
Handle the response of the zoom scale to external inputs. More...
#include <zoom_controller.h>
Public Member Functions | |
| virtual | ~ZOOM_CONTROLLER ()=default |
| virtual double | GetScaleForRotation (int aRotation, int aWheelDelta=0)=0 |
| Get the scale factor produced by a given mousewheel rotation. | |
Handle the response of the zoom scale to external inputs.
Definition at line 39 of file zoom_controller.h.
|
virtualdefault |
|
pure virtual |
Get the scale factor produced by a given mousewheel rotation.
| aRotation | rotation of the mouse wheel (this comes from wxMouseEvent::GetWheelRotation()). |
| aWheelDelta | rotation of one wheel notch (wxMouseEvent::GetWheelDelta()), which zooms once per notch of a merged event, or 0 when the rotation is a scroll distance and is only capped. |
Implemented in KIGFX::ACCELERATING_ZOOM_CONTROLLER, and KIGFX::CONSTANT_ZOOM_CONTROLLER.