KiCad PCB EDA Suite
ee_actions.h File Reference
#include <tool/tool_action.h>
#include <tool/actions.h>
#include <core/optional.h>

Go to the source code of this file.

Classes

class  EE_ACTIONS
 EESCHEMA_ACTIONS. More...
 

Functions

VECTOR2I mapCoords (const wxPoint &aCoord)
 
wxPoint mapCoords (const VECTOR2I &aCoord)
 
wxPoint mapCoords (const int x, const int y)
 

Function Documentation

◆ mapCoords() [1/3]

VECTOR2I mapCoords ( const wxPoint &  aCoord)
inline

Definition at line 230 of file ee_actions.h.

231 {
232  return VECTOR2I( aCoord.x, -aCoord.y );
233 }
VECTOR2< int > VECTOR2I
Definition: vector2d.h:594

◆ mapCoords() [2/3]

wxPoint mapCoords ( const VECTOR2I aCoord)
inline

Definition at line 235 of file ee_actions.h.

236 {
237  return wxPoint( aCoord.x, -aCoord.y );
238 }

References VECTOR2< T >::x, and VECTOR2< T >::y.

◆ mapCoords() [3/3]

wxPoint mapCoords ( const int  x,
const int  y 
)
inline

Definition at line 240 of file ee_actions.h.

241 {
242  return wxPoint( x, -y );
243 }