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)=0 |
Get the scale factor produced by a given mousewheel rotation. | |
Handle the response of the zoom scale to external inputs.
Definition at line 43 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()). |
Implemented in KIGFX::ACCELERATING_ZOOM_CONTROLLER, and KIGFX::CONSTANT_ZOOM_CONTROLLER.