KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_zoom_controller.cpp File Reference

Go to the source code of this file.

Classes

struct  CONST_ZOOM_CASE
 
class  PREDEF_TIMESTAMPER
 Timestamper that returns predefined values from a vector. More...
 
struct  ACCEL_ZOOM_CASE
 

Functions

 BOOST_AUTO_TEST_CASE (ConstController)
 Check basic setting and getting of values.
 
 BOOST_AUTO_TEST_CASE (AccelController)
 Check basic setting and getting of values.
 

Variables

static const std::vector< CONST_ZOOM_CASEconst_zoom_cases
 
static const std::vector< ACCEL_ZOOM_CASEaccel_cases
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( AccelController  )

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( ConstController  )

Check basic setting and getting of values.

Definition at line 61 of file test_zoom_controller.cpp.

References const_zoom_cases, and KIGFX::CONSTANT_ZOOM_CONTROLLER::GetScaleForRotation().

Variable Documentation

◆ accel_cases

const std::vector<ACCEL_ZOOM_CASE> accel_cases
static
Initial value:
= {
{ 500, { 0, 1000, 2000, 3000, 4000 }, { 120, 120, -120, -120 }, { 1.05, 1.05, 1 / 1.05, 1 / 1.05 } },
{ 500, { 0, 1000, 1100, 1200, 1300, 1400 }, { 120, 120, -120, -120, 120 }, { 1.05, 2.05, 1 / 1.05, 1 / 2.05, 1.05 } },
}

Definition at line 117 of file test_zoom_controller.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ const_zoom_cases

const std::vector<CONST_ZOOM_CASE> const_zoom_cases
static
Initial value:
= {
{ CONSTANT_ZOOM_CONTROLLER::GTK3_SCALE, 120, 1.1, 1 / 1.1 },
}
static constexpr double GTK3_SCALE
A suitable (magic) scale factor for Mac systems.

Definition at line 51 of file test_zoom_controller.cpp.

Referenced by BOOST_AUTO_TEST_CASE().