KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sym_diff_canvas_context.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/gpl-3.0.html
19 */
20
21#ifndef SYM_DIFF_CANVAS_CONTEXT_H
22#define SYM_DIFF_CANVAS_CONTEXT_H
23
25
26#include <memory>
27
28class LIB_SYMBOL;
30
31
32namespace KICAD_DIFF
33{
34
36void ConfigureSymDiffCanvasContext( WIDGET_DIFF_CANVAS& aCanvas, LIB_SYMBOL* aBefore, LIB_SYMBOL* aAfter,
37 std::shared_ptr<const void> aOwner = nullptr );
38
40void ShowSymbolPair( WIDGET_DIFF_CANVAS& aCanvas, const SYM_LIB_DIFFER::SYMBOL_MAP& aBefore,
41 const SYM_LIB_DIFFER::SYMBOL_MAP& aAfter, const wxString& aName );
42
43} // namespace KICAD_DIFF
44
45#endif // SYM_DIFF_CANVAS_CONTEXT_H
std::map< wxString, const LIB_SYMBOL * > SYMBOL_MAP
Library content is a map of (canonical_name -> LIB_SYMBOL*).
Define a library symbol object.
Definition lib_symbol.h:114
GAL-backed canvas for visualizing a KICAD_DIFF::DIFF_SCENE.
void ConfigureSymDiffCanvasContext(WIDGET_DIFF_CANVAS &aCanvas, LIB_SYMBOL *aBefore, LIB_SYMBOL *aAfter, std::shared_ptr< const void > aOwner)
Draw aBefore and aAfter, which aOwner keeps alive for as long as the canvas shows them.
void ShowSymbolPair(WIDGET_DIFF_CANVAS &aCanvas, const SYM_LIB_DIFFER::SYMBOL_MAP &aBefore, const SYM_LIB_DIFFER::SYMBOL_MAP &aAfter, const wxString &aName)
Draw the symbol aName as it is in aBefore and aAfter.