KiCad PCB EDA Suite
bitmap_opaque.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 (C) 2007-2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 1992-2021 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_OPAQUE_H
22#define KICAD_BITMAP_OPAQUE_H
23
26{
27 const unsigned char* png;
29 const char* name; // for debug, or future lazy dynamic linking
30};
31
32// declared as single element _array_, so its name assigns to pointer
33#define EXTERN_BITMAP( x ) extern const BITMAP_OPAQUE x[1];
34
35
39
40#endif // KICAD_BITMAP_OPAQUE_H
const BITMAP_OPAQUE * BITMAP_DEF
a BITMAP_DEF is really a const pointer to an opaque structure.
Definition: bitmap_opaque.h:38
PNG memory record (file in memory).
Definition: bitmap_opaque.h:26
const unsigned char * png
Definition: bitmap_opaque.h:27
const char * name
Definition: bitmap_opaque.h:29