20#ifndef KICAD_BITMAP_STORE_H
21#define KICAD_BITMAP_STORE_H
24#include <unordered_map>
26#include <wx/bmpbndl.h>
39 size_t operator()(
const std::pair<BITMAPS, int>& aPair )
const;
58 wxBitmap GetBitmap(
BITMAPS aBitmapId,
int aHeight = -1 );
64 wxBitmapBundle GetBitmapBundle(
BITMAPS aBitmapId );
71 wxBitmapBundle GetDisabledBitmapBundle(
BITMAPS aBitmapId );
87 wxBitmap GetBitmapScaled(
BITMAPS aBitmapId,
int aScaleFactor,
int aHeight = -1 );
99 wxImage getImage(
BITMAPS aBitmapId,
int aHeight = -1 );
101 const wxString& bitmapName(
BITMAPS aBitmapId,
int aHeight = -1 );
103 wxString computeBitmapName(
BITMAPS aBitmapId,
int aHeight = -1 );
105 void buildBitmapInfoCache();
BITMAPS
A list of all bitmap identifiers.
An asset archive represents a file containing data assets that are loaded from disk and then cached i...
Helper to retrieve bitmaps while handling icon themes and scaling.
std::unordered_map< BITMAPS, std::vector< BITMAP_INFO > > m_bitmapInfoCache
std::unique_ptr< ASSET_ARCHIVE > m_archive
std::unordered_map< std::pair< BITMAPS, int >, wxString > m_bitmapNameCache