KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 <kicommon.h>
25#include <vector>
26#include <unordered_map>
28
29#include <wx/string.h>
30
32{
34 wxString filename;
35 int height;
36 wxString theme;
37
38 BITMAP_INFO( BITMAPS aId, const wxString& aFilename, int aHeight, const wxString& aTheme ) :
39 id( aId ),
40 filename( aFilename ),
41 height( aHeight ),
42 theme( aTheme )
43 {};
44
45};
46
47
48extern KICOMMON_API void BuildBitmapInfo( std::unordered_map<BITMAPS,
49 std::vector<BITMAP_INFO>>& aBitmapInfoCache );
50
51#endif // KICAD_BITMAP_INFO_H
KICOMMON_API 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
#define KICOMMON_API
Definition: kicommon.h:28
wxString theme
Definition: bitmap_info.h:36
wxString filename
Definition: bitmap_info.h:34
BITMAPS id
Definition: bitmap_info.h:33
BITMAP_INFO(BITMAPS aId, const wxString &aFilename, int aHeight, const wxString &aTheme)
Definition: bitmap_info.h:38