KiCad PCB EDA Suite
pin_shape.cpp File Reference

Pin shape handling. More...

#include "pin_shape.h"
#include <macros.h>

Go to the source code of this file.

Classes

struct  pinShapeStruct
 

Functions

wxString GetText (GRAPHIC_PINSHAPE aShape)
 
BITMAP_DEF GetBitmap (GRAPHIC_PINSHAPE aShape)
 

Variables

const std::map< GRAPHIC_PINSHAPE, struct pinShapeStructpinShapes
 

Detailed Description

Pin shape handling.

Definition in file pin_shape.cpp.

Function Documentation

◆ GetBitmap()

BITMAP_DEF GetBitmap ( GRAPHIC_PINSHAPE  aShape)

Definition at line 68 of file pin_shape.cpp.

69 {
70  auto findIt = pinShapes.find( aShape );
71 
72  wxCHECK_MSG( findIt != pinShapes.end(), nullptr, "Could not find pinshape in lookup map" );
73 
74  return findIt->second.bitmap;
75 }
const std::map< GRAPHIC_PINSHAPE, struct pinShapeStruct > pinShapes
Definition: pin_shape.cpp:44

References pinShapes.

Referenced by DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), LIB_PIN::GetMenuImage(), LIB_TREE::LIB_TREE(), PANEL_SETUP_MASK_AND_PASTE_BASE::PANEL_SETUP_MASK_AND_PASTE_BASE(), PinShapeComboBox::PinShapeComboBox(), PinTypeComboBox::PinTypeComboBox(), and WIZARD_3DSHAPE_LIBS_DOWNLOADER_BASE::WIZARD_3DSHAPE_LIBS_DOWNLOADER_BASE().

◆ GetText()

Variable Documentation

◆ pinShapes

const std::map<GRAPHIC_PINSHAPE, struct pinShapeStruct> pinShapes
Initial value:
= {
}
const BITMAP_OPAQUE pinshape_active_low_input_xpm[1]
const BITMAP_OPAQUE pinshape_normal_xpm[1]
const BITMAP_OPAQUE pinshape_active_low_output_xpm[1]
const BITMAP_OPAQUE pinshape_clock_invert_xpm[1]
const BITMAP_OPAQUE pinshape_clock_fall_xpm[1]
const BITMAP_OPAQUE pinshape_invert_xpm[1]
const BITMAP_OPAQUE pinshape_clock_normal_xpm[1]
const BITMAP_OPAQUE pinshape_clock_active_low_xpm[1]
const BITMAP_OPAQUE pinshape_nonlogic_xpm[1]
#define _(s)
Definition: 3d_actions.cpp:33

Definition at line 44 of file pin_shape.cpp.

Referenced by GetBitmap(), and GetText().