Add support for specifying high DPI animations in XRC

Deprecate wxXmlResourceHandler::GetAnimation() function which returns
just a single animation and add a new GetAnimations() replacing it.

Use the new function in wxAnimationCtrl XRC handler to pass all the
animations defined in the XRC file to the control.
This commit is contained in:
Vadim Zeitlin 2023-08-25 20:19:56 +02:00
parent 27e80f81b4
commit cb99932114
5 changed files with 105 additions and 40 deletions

View file

@ -653,7 +653,9 @@ controls cannot have children.
@beginTable
@hdr3col{property, type, description}
@row3col{animation, @ref overview_xrcformat_type_url,
Animation file to load into the control (default: none).}
Animation file to load into the control or, since wxWindow 3.3.0, multiple
semicolon-separated files in order of increasing size, corresponding to
multiple versions of the animation for different resolutions (default: none).}
@row3col{inactive-bitmap, @ref overview_xrcformat_type_bitmap,
Bitmap to use when not playing the animation (default: the default).}
@endTable