Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
8c4b3401
Commit
8c4b3401
authored
Aug 24, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PNG migration support, add function: Bitmap()
parent
f577f18b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
CMakeLists.txt
common/CMakeLists.txt
+1
-0
bitmaps.h
include/bitmaps.h
+25
-0
No files found.
common/CMakeLists.txt
View file @
8c4b3401
...
...
@@ -25,6 +25,7 @@ set(COMMON_SRCS
base_struct.cpp
basicframe.cpp
bezier_curves.cpp
bitmap.cpp
block_commande.cpp
build_version.cpp
class_colors_design_settings.cpp
...
...
include/bitmaps.h
View file @
8c4b3401
#ifndef BITMAPS_H_
#define BITMAPS_H_
#define VTOOLBAR_WIDTH 26
#define TOOL_SIZE 23
/// PNG memory record (file in memory).
struct
BITMAP_DEF
{
const
unsigned
char
*
png
;
int
byteCount
;
};
/**
* Function Bitmap
* constructs a wxBitmap from a PNG memory record, held in a
* BITMAP_DEF. This name and interface is chose to ease migration
* into PNG usage from XPM usage.
*/
wxBitmap
Bitmap
(
const
BITMAP_DEF
&
aBitmap
);
// Please keep list sorted alphabetically, ignoring case.
extern
const
char
*
shape_3d_xpm
[];
...
...
@@ -427,3 +450,5 @@ extern const char* zoomplus3d_xpm[];
extern
const
char
*
zoomrefr3d_xpm
[];
extern
const
char
*
zoom_selection_xpm
[];
extern
const
char
*
zoom_xpm
[];
#endif // BITMAPS_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment