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