KiCad PCB EDA Suite
KIGFX::ZOOM_CONTROLLER Class Referenceabstract

Class that handles 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
 Gets the scale factor produced by a given mousewheel rotation. More...
 

Detailed Description

Class that handles the response of the zoom scale to external inputs.

Definition at line 42 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

Gets 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::CONSTANT_ZOOM_CONTROLLER, and KIGFX::ACCELERATING_ZOOM_CONTROLLER.


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