Add properties

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-09-26 00:26:35 +00:00
parent 4627af27d4
commit e70b4d2db9
50 changed files with 1799 additions and 249 deletions

View File

@@ -149,6 +149,17 @@ public:
wxBitmap& GetBackingStore();
%property(Animation, GetAnimation, SetAnimation, doc="See `GetAnimation` and `SetAnimation`");
%property(BackingStore, GetBackingStore, doc="See `GetBackingStore`");
%property(CurrentFrame, GetCurrentFrame, SetCurrentFrame, doc="See `GetCurrentFrame` and `SetCurrentFrame`");
%property(CustomBackgroundColour, GetCustomBackgroundColour, SetCustomBackgroundColour, doc="See `GetCustomBackgroundColour` and `SetCustomBackgroundColour`");
%property(DestroyAnimation, GetDestroyAnimation, SetDestroyAnimation, doc="See `GetDestroyAnimation` and `SetDestroyAnimation`");
%property(DisposalMethod, GetDisposalMethod, doc="See `GetDisposalMethod`");
%property(FrameCount, GetFrameCount, doc="See `GetFrameCount`");
%property(LogicalScreenSize, GetLogicalScreenSize, doc="See `GetLogicalScreenSize`");
%property(Looped, GetLooped, SetLooped, doc="See `GetLooped` and `SetLooped`");
%property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
%property(Window, GetWindow, SetWindow, doc="See `GetWindow` and `SetWindow`");
};
@@ -187,6 +198,10 @@ public:
virtual bool IsValid() const;
virtual bool LoadFile(const wxString& filename);
%property(DisposalMethod, GetDisposalMethod, doc="See `GetDisposalMethod`");
%property(FrameCount, GetFrameCount, doc="See `GetFrameCount`");
%property(LogicalScreenSize, GetLogicalScreenSize, doc="See `GetLogicalScreenSize`");
};
@@ -317,6 +332,9 @@ public:
const wxString& GetFilename() const;
void SetFilename(const wxString& filename);
%property(Animation, GetAnimation, doc="See `GetAnimation`");
%property(Filename, GetFilename, SetFilename, doc="See `GetFilename` and `SetFilename`");
%property(Player, GetPlayer, doc="See `GetPlayer`");
};
//---------------------------------------------------------------------------

View File

@@ -233,6 +233,17 @@ class AnimationPlayer(_core.Object):
"""GetBackingStore(self) -> Bitmap"""
return _animate.AnimationPlayer_GetBackingStore(*args, **kwargs)
Animation = property(GetAnimation,SetAnimation,doc="See `GetAnimation` and `SetAnimation`")
BackingStore = property(GetBackingStore,doc="See `GetBackingStore`")
CurrentFrame = property(GetCurrentFrame,SetCurrentFrame,doc="See `GetCurrentFrame` and `SetCurrentFrame`")
CustomBackgroundColour = property(GetCustomBackgroundColour,SetCustomBackgroundColour,doc="See `GetCustomBackgroundColour` and `SetCustomBackgroundColour`")
DestroyAnimation = property(GetDestroyAnimation,SetDestroyAnimation,doc="See `GetDestroyAnimation` and `SetDestroyAnimation`")
DisposalMethod = property(GetDisposalMethod,doc="See `GetDisposalMethod`")
FrameCount = property(GetFrameCount,doc="See `GetFrameCount`")
LogicalScreenSize = property(GetLogicalScreenSize,doc="See `GetLogicalScreenSize`")
Looped = property(GetLooped,SetLooped,doc="See `GetLooped` and `SetLooped`")
Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`")
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
_animate.AnimationPlayer_swigregister(AnimationPlayer)
cvar = _animate.cvar
AnimationControlNameStr = cvar.AnimationControlNameStr
@@ -284,6 +295,9 @@ class AnimationBase(_core.Object):
"""LoadFile(self, String filename) -> bool"""
return _animate.AnimationBase_LoadFile(*args, **kwargs)
DisposalMethod = property(GetDisposalMethod,doc="See `GetDisposalMethod`")
FrameCount = property(GetFrameCount,doc="See `GetFrameCount`")
LogicalScreenSize = property(GetLogicalScreenSize,doc="See `GetLogicalScreenSize`")
_animate.AnimationBase_swigregister(AnimationBase)
class GIFAnimation(AnimationBase):
@@ -357,6 +371,9 @@ class GIFAnimationCtrl(_core.Control):
"""SetFilename(self, String filename)"""
return _animate.GIFAnimationCtrl_SetFilename(*args, **kwargs)
Animation = property(GetAnimation,doc="See `GetAnimation`")
Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`")
Player = property(GetPlayer,doc="See `GetPlayer`")
_animate.GIFAnimationCtrl_swigregister(GIFAnimationCtrl)
def PreGIFAnimationCtrl(*args, **kwargs):

View File

@@ -233,6 +233,17 @@ class AnimationPlayer(_core.Object):
"""GetBackingStore(self) -> Bitmap"""
return _animate.AnimationPlayer_GetBackingStore(*args, **kwargs)
Animation = property(GetAnimation,SetAnimation,doc="See `GetAnimation` and `SetAnimation`")
BackingStore = property(GetBackingStore,doc="See `GetBackingStore`")
CurrentFrame = property(GetCurrentFrame,SetCurrentFrame,doc="See `GetCurrentFrame` and `SetCurrentFrame`")
CustomBackgroundColour = property(GetCustomBackgroundColour,SetCustomBackgroundColour,doc="See `GetCustomBackgroundColour` and `SetCustomBackgroundColour`")
DestroyAnimation = property(GetDestroyAnimation,SetDestroyAnimation,doc="See `GetDestroyAnimation` and `SetDestroyAnimation`")
DisposalMethod = property(GetDisposalMethod,doc="See `GetDisposalMethod`")
FrameCount = property(GetFrameCount,doc="See `GetFrameCount`")
LogicalScreenSize = property(GetLogicalScreenSize,doc="See `GetLogicalScreenSize`")
Looped = property(GetLooped,SetLooped,doc="See `GetLooped` and `SetLooped`")
Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`")
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
_animate.AnimationPlayer_swigregister(AnimationPlayer)
cvar = _animate.cvar
AnimationControlNameStr = cvar.AnimationControlNameStr
@@ -284,6 +295,9 @@ class AnimationBase(_core.Object):
"""LoadFile(self, String filename) -> bool"""
return _animate.AnimationBase_LoadFile(*args, **kwargs)
DisposalMethod = property(GetDisposalMethod,doc="See `GetDisposalMethod`")
FrameCount = property(GetFrameCount,doc="See `GetFrameCount`")
LogicalScreenSize = property(GetLogicalScreenSize,doc="See `GetLogicalScreenSize`")
_animate.AnimationBase_swigregister(AnimationBase)
class GIFAnimation(AnimationBase):
@@ -357,6 +371,9 @@ class GIFAnimationCtrl(_core.Control):
"""SetFilename(self, String filename)"""
return _animate.GIFAnimationCtrl_SetFilename(*args, **kwargs)
Animation = property(GetAnimation,doc="See `GetAnimation`")
Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`")
Player = property(GetPlayer,doc="See `GetPlayer`")
_animate.GIFAnimationCtrl_swigregister(GIFAnimationCtrl)
def PreGIFAnimationCtrl(*args, **kwargs):

View File

@@ -233,6 +233,17 @@ class AnimationPlayer(_core.Object):
"""GetBackingStore(self) -> Bitmap"""
return _animate.AnimationPlayer_GetBackingStore(*args, **kwargs)
Animation = property(GetAnimation,SetAnimation,doc="See `GetAnimation` and `SetAnimation`")
BackingStore = property(GetBackingStore,doc="See `GetBackingStore`")
CurrentFrame = property(GetCurrentFrame,SetCurrentFrame,doc="See `GetCurrentFrame` and `SetCurrentFrame`")
CustomBackgroundColour = property(GetCustomBackgroundColour,SetCustomBackgroundColour,doc="See `GetCustomBackgroundColour` and `SetCustomBackgroundColour`")
DestroyAnimation = property(GetDestroyAnimation,SetDestroyAnimation,doc="See `GetDestroyAnimation` and `SetDestroyAnimation`")
DisposalMethod = property(GetDisposalMethod,doc="See `GetDisposalMethod`")
FrameCount = property(GetFrameCount,doc="See `GetFrameCount`")
LogicalScreenSize = property(GetLogicalScreenSize,doc="See `GetLogicalScreenSize`")
Looped = property(GetLooped,SetLooped,doc="See `GetLooped` and `SetLooped`")
Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`")
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
_animate.AnimationPlayer_swigregister(AnimationPlayer)
cvar = _animate.cvar
AnimationControlNameStr = cvar.AnimationControlNameStr
@@ -284,6 +295,9 @@ class AnimationBase(_core.Object):
"""LoadFile(self, String filename) -> bool"""
return _animate.AnimationBase_LoadFile(*args, **kwargs)
DisposalMethod = property(GetDisposalMethod,doc="See `GetDisposalMethod`")
FrameCount = property(GetFrameCount,doc="See `GetFrameCount`")
LogicalScreenSize = property(GetLogicalScreenSize,doc="See `GetLogicalScreenSize`")
_animate.AnimationBase_swigregister(AnimationBase)
class GIFAnimation(AnimationBase):
@@ -357,6 +371,9 @@ class GIFAnimationCtrl(_core.Control):
"""SetFilename(self, String filename)"""
return _animate.GIFAnimationCtrl_SetFilename(*args, **kwargs)
Animation = property(GetAnimation,doc="See `GetAnimation`")
Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`")
Player = property(GetPlayer,doc="See `GetPlayer`")
_animate.GIFAnimationCtrl_swigregister(GIFAnimationCtrl)
def PreGIFAnimationCtrl(*args, **kwargs):