KiCad PCB EDA Suite
bitmap_info.h
Go to the documentation of this file.
1
2/*
3 * This program source code file is part of KiCad, a free EDA CAD application.
4 *
5 * Copyright (C) 2022 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef KICAD_BITMAP_INFO_H
22#define KICAD_BITMAP_INFO_H
23
24#include <vector>
25#include <unordered_map>
27
28#include <wx/string.h>
29
31{
33 wxString filename;
34 int height;
35 wxString theme;
36
37 BITMAP_INFO( BITMAPS aId, const wxString& aFilename, int aHeight, const wxString& aTheme ) :
38 id( aId ),
39 filename( aFilename ),
40 height( aHeight ),
41 theme( aTheme )
42 {};
43
44};
45
46
47extern void BuildBitmapInfo( std::unordered_map<BITMAPS,
48 std::vector<BITMAP_INFO>>& aBitmapInfoCache );
49
50#endif // KICAD_BITMAP_INFO_H
void BuildBitmapInfo(std::unordered_map< BITMAPS, std::vector< BITMAP_INFO > > &aBitmapInfoCache)
This file is auto-generated by CMake when MAINTAIN_PNGS is on.
Definition: bitmap_info.cpp:27
BITMAPS
A list of all bitmap identifiers.
Definition: bitmaps_list.h:33
wxString theme
Definition: bitmap_info.h:35
wxString filename
Definition: bitmap_info.h:33
BITMAPS id
Definition: bitmap_info.h:32
BITMAP_INFO(BITMAPS aId, const wxString &aFilename, int aHeight, const wxString &aTheme)
Definition: bitmap_info.h:37