ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFUIImage.h File Reference

protocol for ZFUIImage More...

Go to the source code of this file.

Classes

class  ZFPInterface_ZFUIImage
 protocol for ZFUIImage More...
 
class  v_ZFUIImageImplNinePatchPos
 see ZFUIImageImplNinePatchCalc More...
 
class  ZFUIImageImplNinePatchDrawData
 see ZFUIImageImplNinePatchCalc More...
 

Typedefs

typedef v_ZFUIImageImplNinePatchPos::ZFEnumType ZFUIImageImplNinePatchPos
 see v_ZFUIImageImplNinePatchPos
 

Functions

zfbool ZFUIImageImplNinePatchPosFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFUIImageImplNinePatchPos, return enum object if success
 
zfbool ZFUIImageImplNinePatchPosToStringT (zfstring &ret, v_ZFUIImageImplNinePatchPos *const &value, zfstring *errorHint=zft_zfnull)
 see ZFUIImageImplNinePatchPos, return empty string if error
 
zfstring ZFUIImageImplNinePatchPosToString (v_ZFUIImageImplNinePatchPos *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFUIImageImplNinePatchPos, return empty string if error
 
const zfstringZFTypeId_ZFUIImageImplNinePatchPos (void)
 
zfbool ZFUIImageImplNinePatchPosFromDataT (_ZFP_PropTypeW_ZFUIImageImplNinePatchPos &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIImageImplNinePatchPos ZFUIImageImplNinePatchPosFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIImageImplNinePatchPosToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIImageImplNinePatchPos const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIImageImplNinePatchPosToData (_ZFP_PropTypeW_ZFUIImageImplNinePatchPos const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIImageImplNinePatchPosFromStringT (_ZFP_PropTypeW_ZFUIImageImplNinePatchPos &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIImageImplNinePatchPos from string
 
_ZFP_PropTypeW_ZFUIImageImplNinePatchPos ZFUIImageImplNinePatchPosFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIImageImplNinePatchPos from string
 
zfbool ZFUIImageImplNinePatchPosToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIImageImplNinePatchPos const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIImageImplNinePatchPos to string
 
zfstring ZFUIImageImplNinePatchPosToString (_ZFP_PropTypeW_ZFUIImageImplNinePatchPos const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIImageImplNinePatchPos to string
 
zfindex ZFUIImageImplNinePatchCalc (ZFUIImageImplNinePatchDrawData *outBuf, const ZFUISize &srcSize, const ZFUIMargin &srcNinePatch, const ZFUISize &dstSize)
 util method for implementation to calculate nine patch areas
 

Detailed Description

protocol for ZFUIImage

Function Documentation

◆ ZFTypeId_ZFUIImageImplNinePatchPos()

const zfstring & ZFTypeId_ZFUIImageImplNinePatchPos ( void )
inline


◆ ZFUIImageImplNinePatchCalc()

zfindex ZFUIImageImplNinePatchCalc ( ZFUIImageImplNinePatchDrawData * outBuf,
const ZFUISize & srcSize,
const ZFUIMargin & srcNinePatch,
const ZFUISize & dstSize )
extern

util method for implementation to calculate nine patch areas

return draw areas containing src and dst rect info, only valid rects would be stored in result, outBuf should be at least (9 * sizeof(ZFUIImageImplNinePatchDrawData)), typically you may use "ZFUIImageImplNinePatchDrawData buf[9];" to supply the buf

Note
all size use raw pixel as size unit