Merge branch 'gtk-image-bundle'

Use wxBitmapBundle in wxGtkImage and select the appropriately-sized
bitmaps depending on DPI in wxGTK wxToolBar.

See https://github.com/wxWidgets/wxWidgets/pull/2547
This commit is contained in:
Vadim Zeitlin
2021-10-17 23:19:00 +02:00
5 changed files with 136 additions and 52 deletions

View File

@@ -112,6 +112,26 @@ public:
bool IsToggled() const;
bool CanBeToggled() const;
/**
Return the bundle containing normal tool bitmaps.
This bundle may be invalid if the tool doesn't show a bitmap.
@since 3.1.6
*/
wxBitmapBundle GetNormalBitmapBundle() const;
/**
Return the bundle containing disabled tool bitmaps.
This bundle may be invalid if the tool doesn't show a bitmap or doesn't
have a specific disabled bitmap creates one automatically from the
normal bitmap.
@since 3.1.6
*/
wxBitmapBundle GetDisabledBitmapBundle() const;
wxBitmap GetNormalBitmap() const;
wxBitmap GetDisabledBitmap() const;