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

protocol for ZFUIImage More...

#include <ZFProtocolZFUIImage.h>

Inheritance diagram for ZFPInterface_ZFUIImage:
ZFProtocol

Public Member Functions

virtual const zfcharprotocolName (void) const
 get the name of the protocol module, e.g. "ZFObject"
 
virtual void * nativeImageFromInput (const ZFInput &inputCallback)=0
 load image from input as binary data, created image would be released by nativeImageRelease
 
virtual zfbool nativeImageToOutput (void *nativeImage, const ZFOutput &outputCallback)=0
 save image to output as binary data
 
virtual void * nativeImageCopy (void *nativeImage)=0
 copy the nativeImage and return the copied one, copied image would be released by nativeImageRelease
 
virtual void * nativeImageRetain (void *nativeImage)=0
 retain the image, you may return a different one
 
virtual void nativeImageRelease (void *nativeImage)=0
 release the image
 
virtual ZFUISize nativeImageSize (void *nativeImage)=0
 get size of the image (in pixel)
 
- 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_ZFUIImage zfself
 class ref to self
 

Detailed Description

protocol for ZFUIImage

Member Function Documentation

◆ protocolName()

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

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

Reimplemented from ZFProtocol.

◆ nativeImageRelease()

virtual void ZFPInterface_ZFUIImage::nativeImageRelease ( void * nativeImage)
pure virtual

release the image

you should implement retain count logic internally


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