KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::ZOOM_CONTROLLER Class Referenceabstract

Handle the response of the zoom scale to external inputs. More...

#include <zoom_controller.h>

Inheritance diagram for KIGFX::ZOOM_CONTROLLER:
KIGFX::ACCELERATING_ZOOM_CONTROLLER KIGFX::CONSTANT_ZOOM_CONTROLLER

Public Member Functions

virtual ~ZOOM_CONTROLLER ()=default
 
virtual double GetScaleForRotation (int aRotation)=0
 Get the scale factor produced by a given mousewheel rotation.
 

Detailed Description

Handle the response of the zoom scale to external inputs.

Definition at line 43 of file zoom_controller.h.

Constructor & Destructor Documentation

◆ ~ZOOM_CONTROLLER()

virtual KIGFX::ZOOM_CONTROLLER::~ZOOM_CONTROLLER ( )
virtualdefault

Member Function Documentation

◆ GetScaleForRotation()

virtual double KIGFX::ZOOM_CONTROLLER::GetScaleForRotation ( int  aRotation)
pure virtual

Get the scale factor produced by a given mousewheel rotation.

Parameters
aRotationrotation of the mouse wheel (this comes from wxMouseEvent::GetWheelRotation()).
Returns
the scale factor to scroll by.

Implemented in KIGFX::ACCELERATING_ZOOM_CONTROLLER, and KIGFX::CONSTANT_ZOOM_CONTROLLER.


The documentation for this class was generated from the following file: