Add animation decoders

This commit is contained in:
Robin Dunn
2020-03-24 17:37:44 -07:00
parent 24be75d44a
commit 73b18b6650
2 changed files with 23 additions and 2 deletions

View File

@@ -110,10 +110,15 @@
"AND":"wx.",
"AND_INVERT":"wx.",
"AND_REVERSE":"wx.",
"ANIDecoder":"wx.adv.",
"ANIMATION_TYPE_ANI":"wx.adv.",
"ANIMATION_TYPE_ANY":"wx.adv.",
"ANIMATION_TYPE_GIF":"wx.adv.",
"ANIMATION_TYPE_INVALID":"wx.adv.",
"ANIM_DONOTREMOVE":"wx.adv.",
"ANIM_TOBACKGROUND":"wx.adv.",
"ANIM_TOPREVIOUS":"wx.adv.",
"ANIM_UNSPECIFIED":"wx.adv.",
"ANTIALIAS_DEFAULT":"wx.",
"ANTIALIAS_NONE":"wx.",
"APPLY":"wx.",
@@ -302,6 +307,8 @@
"Animation":"wx.adv.",
"AnimationCtrl":"wx.adv.",
"AnimationCtrlNameStr":"wx.adv.",
"AnimationDecoder":"wx.adv.",
"AnimationDisposal":"wx.adv.",
"AnimationType":"wx.adv.",
"AntialiasMode":"wx.",
"AnyButton":"wx.",
@@ -1306,6 +1313,7 @@
"GBSpan":"wx.",
"GCDC":"wx.",
"GDIObject":"wx.",
"GIFDecoder":"wx.adv.",
"GIFHandler":"wx.",
"GLAttribsBase":"wx.glcanvas.",
"GLAttributes":"wx.glcanvas.",

View File

@@ -19,6 +19,9 @@ DOCSTRING = ""
# this script.
ITEMS = [ "wxAnimation",
"wxAnimationCtrl",
"wxAnimationDecoder",
"wxANIDecoder",
"wxGIFDecoder",
]
#---------------------------------------------------------------------------
@@ -45,8 +48,18 @@ def run():
module.insertItemBefore(c, item)
# TODO: It would be nice to be able to use the generic verison on all
# platforms since the native GTK version has some limitations...
#-----------------------------------------------------------------
c = module.find('wxAnimationDecoder')
c.find('DoCanRead').ignore(False)
c = module.find('wxANIDecoder')
c.find('DoCanRead').ignore(False)
c = module.find('wxGIFDecoder')
c.find('DoCanRead').ignore(False)
module.addItem(tools.wxListWrapperTemplate('wxAnimationDecoderList', 'wxAnimationDecoder', module,
header_extra='#include <wx/animate.h>'))
#-----------------------------------------------------------------
tools.doCommonTweaks(module)