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>
26
#include <
bitmaps/bitmaps_list.h
>
27
28
#include <wx/string.h>
29
30
struct
BITMAP_INFO
31
{
32
BITMAPS
id
;
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
47
extern
void
BuildBitmapInfo
( std::unordered_map<
BITMAPS
,
48
std::vector<BITMAP_INFO>>& aBitmapInfoCache );
49
50
#endif
// KICAD_BITMAP_INFO_H
BuildBitmapInfo
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_list.h
BITMAPS
BITMAPS
A list of all bitmap identifiers.
Definition:
bitmaps_list.h:33
BITMAP_INFO
Definition:
bitmap_info.h:31
BITMAP_INFO::theme
wxString theme
Definition:
bitmap_info.h:35
BITMAP_INFO::filename
wxString filename
Definition:
bitmap_info.h:33
BITMAP_INFO::id
BITMAPS id
Definition:
bitmap_info.h:32
BITMAP_INFO::BITMAP_INFO
BITMAP_INFO(BITMAPS aId, const wxString &aFilename, int aHeight, const wxString &aTheme)
Definition:
bitmap_info.h:37
BITMAP_INFO::height
int height
Definition:
bitmap_info.h:34
src
include
bitmaps
bitmap_info.h
Generated on Mon Mar 6 2023 00:04:28 for KiCad PCB EDA Suite by
1.9.4