KiCad PCB EDA Suite
SIM_CURSORS Class Reference

Simple class to provide cursors for simulation functions. More...

#include <simulation_cursors.h>

Public Types

enum  CURSOR { VOLTAGE_PROBE, CURRENT_PROBE, WATTAGE_PROBE, TUNE }
 

Probe cursor, used by circuit simulator

More...
 

Static Public Member Functions

static const wxCursor & GetCursor (CURSOR aCursorType)
 

Detailed Description

Simple class to provide cursors for simulation functions.

For now, it's using simple static-access, but could be made more advanced in future.

Definition at line 34 of file simulation_cursors.h.

Member Enumeration Documentation

◆ CURSOR

Probe cursor, used by circuit simulator

Enumerator
VOLTAGE_PROBE 
CURRENT_PROBE 
WATTAGE_PROBE 
TUNE 

Definition at line 38 of file simulation_cursors.h.

Member Function Documentation

◆ GetCursor()

const wxCursor & SIM_CURSORS::GetCursor ( CURSOR  aCursorType)
static

Definition at line 106 of file simulation_cursors.cpp.

107 {
108  static CURSOR_STORE store( simulation_cursors );
109  return store.Get( static_cast<int>( aCursorType ) );
110 }
Simple class to construct and store cursors against unique ID keys.
Definition: cursor_store.h:39
static const std::vector< CURSOR_STORE::CURSOR_DEF > simulation_cursors

References CURSOR_STORE::Get(), and simulation_cursors.


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