81 const int c_fileDefSize = 18;
82 const int c_gitDefSize = 16;
84 const int c_fileDefSize = 22;
85 const int c_gitDefSize = 16;
88 auto getBundle = [&](
BITMAPS aBmp,
int aDefSize )
92 const int c_padding = 1;
93 wxVector<wxBitmap> bmps;
95 for(
double scale : { 1.0, 1.25, 1.5, 1.75, 2.0, 3.0 } )
97 int size = aDefSize *
scale;
98 int paddedSize = size + c_padding * 2 *
scale;
100 wxBitmap bmp = scaled.GetBitmap( wxDefaultSize );
101 wxBitmap padded( paddedSize, paddedSize, 32 );
105 wxMemoryDC
dc( padded );
106 dc.DrawBitmap( bmp, c_padding *
scale, c_padding *
scale );
109 bmps.push_back( padded );
112 return wxBitmapBundle::FromBitmaps( bmps );
118 wxVector<wxBitmapBundle> images;
148 images.push_back( getBundle(
BITMAPS::zip, c_fileDefSize ) );
155#if wxCHECK_VERSION( 3, 3, 0 ) || defined( __WXMAC__ )
156 wxVector<wxBitmapBundle> stateImages;
167 SetStateImages( stateImages );
194 wxTreeItemIdValue cookie;
195 wxTreeItemId child = GetFirstChild( aParentId, cookie );
197 while( child.IsOk() )
199 aItems.push_back( child );
201 child = GetNextChild( aParentId, cookie );
wxBitmapBundle KiBitmapBundleDef(BITMAPS aBitmap, int aDefHeight)
Construct and return a bitmap bundle for the given icon ID, with the default bitmap size being aDefHe...
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...