41 if( !aBefore && !aAfter )
60 std::map<KIID, KIGFX::COLOR4D> overrides;
64 overrides[element.item->m_Uuid] = colorFor( element.kind );
65 const_cast<EDA_ITEM*
>( element.item )->SetBrightened();
68 std::vector<KIGFX::VIEW_ITEM*> items;
73 items.push_back( &item );
79 items.push_back(
const_cast<EDA_ITEM*
>( element.item ) );
KIGFX::GAL * GetGAL() const
Return a pointer to the GAL instance used in the panel.
A base class for most all the KiCad significant classes used in schematics and boards.
A color representation with 4 components: red, green, blue, alpha.
Define a library symbol object.
LIB_ITEMS_CONTAINER & GetDrawItems()
Return a reference to the draw item list.
Base class for any item which can be embedded within the SCHEMATIC container class,...
CHANGE_KIND
Coarse classification of a single item-level change between two documents.
std::vector< SYM_ELEMENT > DiffSymbolElements(const LIB_SYMBOL *aBefore, const LIB_SYMBOL *aAfter)
Compares the elements of two library symbols.
std::unique_ptr< KIGFX::PAINTER > MakeSchDiffContextPainter(KIGFX::GAL *aGal, SCHEMATIC *aSchematic, const KIGFX::COLOR4D &aColor, std::map< KIID, KIGFX::COLOR4D > aOverrides)
void ConfigureSymDiffCanvasContext(WIDGET_DIFF_CANVAS &aCanvas, LIB_SYMBOL *aBefore, LIB_SYMBOL *aAfter)
constexpr double SCH_WORLD_UNIT(1e-7/0.0254)
KIGFX::COLOR4D reference
Default color for source-document context geometry.