ZFFramework
 
Loading...
Searching...
No Matches
ZFPInterface_ZFAniForNative Class Referenceabstract

protocol for ZFAniForNative More...

#include <ZFProtocolZFAniForNative.h>

Inheritance diagram for ZFPInterface_ZFAniForNative:
ZFProtocol

Public Member Functions

virtual const zfcharprotocolName (void) const
 get the name of the protocol module, e.g. "ZFObject"
 
virtual void * nativeAniCreate (ZFAniForNative *ani)=0
 create native animation
 
virtual void nativeAniDestroy (ZFAniForNative *ani, void *nativeAni)=0
 destroy native animation
 
virtual void nativeAniStart (ZFAniForNative *ani, zffloat nativeAniScale)=0
 start native animation
 
virtual void nativeAniStop (ZFAniForNative *ani)=0
 stop native animation
 
void notifyAniStop (ZFAniForNative *ani)
 implementation must call this to notify animation stopped
 
- Public Member Functions inherited from ZFProtocol
virtual void protocolOnInit (void)
 called to init the protocol
 
virtual void protocolOnInitFinish (void)
 see protocolOnInit
 
virtual void protocolOnDeallocPrepare (void)
 see protocolOnInit
 
virtual void protocolOnDealloc (void)
 see protocolOnInit
 
virtual ZFProtocolInstanceState protocolInstanceState (void)
 protocol instance's state
 
virtual const zfcharprotocolImplName (void) const
 get the name of the protocol implementation, e.g. "ZFObject_default"
 
virtual ZFProtocolLevel protocolImplLevel (void) const
 get the level of the protocol implementation
 
virtual const zfcharprotocolImplPlatformHint (void) const
 get type hint of the implementation or empty string if not defined, e.g. "iOS:NSString" for iOS's string impl, use ZFPROTOCOL_IMPLEMENTATION_PLATFORM_HINT to register
 
virtual void objectInfoT (zfstring &ret) const
 see objectInfo
 
virtual zfstring objectInfo (void) const
 get a short info about this object
 

Protected Types

typedef ZFProtocol zfsuper
 class ref to super
 
typedef ZFPInterface_ZFAniForNative zfself
 class ref to self
 

Detailed Description

protocol for ZFAniForNative

Member Function Documentation

◆ protocolName()

virtual const zfchar * ZFPInterface_ZFAniForNative::protocolName ( void ) const
inlinevirtual

get the name of the protocol module, e.g. "ZFObject"

Reimplemented from ZFProtocol.

◆ nativeAniStart()

virtual void ZFPInterface_ZFAniForNative::nativeAniStart ( ZFAniForNative * ani,
zffloat nativeAniScale )
pure virtual

start native animation

Note
you should copy all settings from the ani
this method have no auto scale logic, size unit are scaled size under ZFFramework, you should apply scale manually by nativeAniScale

here's a list of things you need to implement:

  • nativeCurve (ZFAniForNativeCurve)
  • aniAlpha (zffloat)
  • scaleX/Y/Z (zffloat)
  • translateX/Y/Z (zffloat)
  • rotateX/Y/Z (zffloat)
Note
more than one ani may added to same view, you must also implement this logic

◆ nativeAniStop()

virtual void ZFPInterface_ZFAniForNative::nativeAniStop ( ZFAniForNative * ani)
pure virtual

stop native animation

animation must be stopped immediately


The documentation for this class was generated from the following file: