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;
 
 
  103    wxImage getImage( 
BITMAPS aBitmapId, 
int aHeight = -1 );
 
  105    const wxString& bitmapName( 
BITMAPS aBitmapId, 
int aHeight = -1 );
 
  107    wxString computeBitmapName( 
BITMAPS aBitmapId, 
int aHeight = -1 );
 
  109    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...
 
wxBitmapBundle GetBitmapBundle(BITMAPS aBitmapId, int aMinHeight=-1)
Constructs and returns a bitmap bundle containing all available sizes of the given ID.
 
std::unordered_map< BITMAPS, std::vector< BITMAP_INFO > > m_bitmapInfoCache
 
void ThemeChanged()
Notifies the store that the icon theme has been changed by the user, so caches must be invalidated.
 
std::unique_ptr< ASSET_ARCHIVE > m_archive
 
std::unordered_map< std::pair< BITMAPS, int >, wxString > m_bitmapNameCache
 
wxBitmap GetBitmap(BITMAPS aBitmapId, int aHeight=-1)
Retrieves a bitmap from the given bitmap id.
 
wxBitmap GetBitmapScaled(BITMAPS aBitmapId, int aScaleFactor, int aHeight=-1)
Retrieves a bitmap from the given bitmap id, scaled to a given factor.
 
wxBitmapBundle GetDisabledBitmapBundle(BITMAPS aBitmapId)
Constructs and returns a bitmap bundle for the given icon ID, with the bitmaps converted to disabled ...
 
size_t operator()(const std::pair< BITMAPS, int > &aPair) const