Debian Codegraph @

CodeLite/clBitmap.h

raw
1 #ifndef CLBITMAP_H
2 #define CLBITMAP_H
3
4 #include <wx/defs.h>
5
6 #if wxUSE_GUI
7 #include <wx/bitmap.h> // Base class: wxBitmap
8 #include "codelite_exports.h"
9 #include <wx/mstream.h>
10 #include <functional>
11
12 class WXDLLIMPEXP_CL clBitmap : public wxBitmap
13 {
14 public:
15 static bool ShouldLoadHiResImages();
16
17 public:
18 clBitmap();
19 clBitmap(const wxImage& img, double scale = 1.0);
20 virtual ~clBitmap();
21
22 virtual bool LoadFile(const wxString& name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
23 virtual bool LoadPNGFromMemory(const wxString& name, wxMemoryInputStream& mis,
24 std::function<bool(const wxString&, void**, size_t&)> fnGetHiResVersion);
25 };
26 #endif
27 #endif // CLBITMAP_H