protocol for ZFUIImage, the nativeImage described here should be same as the one in ZFUIImage's protocol More...
#include <ZFProtocolZFUIImageIO.h>
Public Member Functions | |
virtual const zfchar * | protocolName (void) const |
get the name of the protocol module, e.g. "ZFObject" | |
virtual void * | imageApplyScale (zffloat imageScale, void *nativeImage, const ZFUISize &newSize, const ZFUIMargin &ninePatch)=0 |
see ZFUIImageScale | |
virtual void * | imageLoadInFrame (zffloat imageScale, void *nativeImage, const ZFUIRect &frameInImage)=0 |
see ZFUIImageInFrame | |
virtual void * | imageLoadFromColor (zffloat imageScale, const ZFUIColor &color, const ZFUISize &size)=0 |
see ZFUIImageFromColor, size ensured valid | |
![]() | |
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 zfchar * | protocolImplName (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 zfchar * | protocolImplPlatformHint (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_ZFUIImageIO | zfself |
class ref to self | |
protocol for ZFUIImage, the nativeImage described here should be same as the one in ZFUIImage's protocol
|
inlinevirtual |
get the name of the protocol module, e.g. "ZFObject"
Reimplemented from ZFProtocol.
|
pure virtual |
see ZFUIImageScale
returned image would be released by nativeImageRelease of ZFUIImage protocol
|
pure virtual |
see ZFUIImageInFrame
returned image would be released by nativeImageRelease of ZFUIImage protocol
|
pure virtual |
see ZFUIImageFromColor, size ensured valid
returned image would be released by nativeImageRelease of ZFUIImage protocol