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
25
struct
BITMAP_OPAQUE
26
{
27
const
unsigned
char
*
png
;
28
int
byteCount
;
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
38
typedef
const
BITMAP_OPAQUE
*
BITMAP_DEF
;
39
40
#endif
// KICAD_BITMAP_OPAQUE_H
BITMAP_DEF
const BITMAP_OPAQUE * BITMAP_DEF
a BITMAP_DEF is really a const pointer to an opaque structure.
Definition:
bitmap_opaque.h:38
BITMAP_OPAQUE
PNG memory record (file in memory).
Definition:
bitmap_opaque.h:26
BITMAP_OPAQUE::png
const unsigned char * png
Definition:
bitmap_opaque.h:27
BITMAP_OPAQUE::name
const char * name
Definition:
bitmap_opaque.h:29
BITMAP_OPAQUE::byteCount
int byteCount
Definition:
bitmap_opaque.h:28
src
include
bitmaps
bitmap_opaque.h
Generated on Mon Mar 6 2023 00:04:28 for KiCad PCB EDA Suite by
1.9.4