Commit 8c4b3401 authored by Dick Hollenbeck's avatar Dick Hollenbeck

PNG migration support, add function: Bitmap()

parent f577f18b
...@@ -25,6 +25,7 @@ set(COMMON_SRCS ...@@ -25,6 +25,7 @@ set(COMMON_SRCS
base_struct.cpp base_struct.cpp
basicframe.cpp basicframe.cpp
bezier_curves.cpp bezier_curves.cpp
bitmap.cpp
block_commande.cpp block_commande.cpp
build_version.cpp build_version.cpp
class_colors_design_settings.cpp class_colors_design_settings.cpp
......
#ifndef BITMAPS_H_
#define BITMAPS_H_
#define VTOOLBAR_WIDTH 26 #define VTOOLBAR_WIDTH 26
#define TOOL_SIZE 23 #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. // Please keep list sorted alphabetically, ignoring case.
extern const char* shape_3d_xpm[]; extern const char* shape_3d_xpm[];
...@@ -427,3 +450,5 @@ extern const char* zoomplus3d_xpm[]; ...@@ -427,3 +450,5 @@ extern const char* zoomplus3d_xpm[];
extern const char* zoomrefr3d_xpm[]; extern const char* zoomrefr3d_xpm[];
extern const char* zoom_selection_xpm[]; extern const char* zoom_selection_xpm[];
extern const char* zoom_xpm[]; extern const char* zoom_xpm[];
#endif // BITMAPS_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment