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

necessary header file for all ZFUIKit member More...

#include "ZFUIKitDef.h"

Go to the source code of this file.

Classes

class  ZFUIPoint
 2D point More...
 
class  v_ZFUIPoint
 type wrapper for ZFTypeId::Value More...
 
class  ZFUIMargin
 margin More...
 
class  v_ZFUIMargin
 type wrapper for ZFTypeId::Value More...
 
class  ZFUISize
 2D size More...
 
class  v_ZFUISize
 type wrapper for ZFTypeId::Value More...
 
class  ZFUIRect
 2D rectangle More...
 
class  v_ZFUIRect
 type wrapper for ZFTypeId::Value More...
 
class  v_ZFUIAlign
 align types for UI in ZFFramework More...
 
class  ZFUIAlignFlags
 see v_ZFUIAlign, ZFUIAlignFlagsToString, ZFUIAlignFlagsFromString More...
 
class  v_ZFUIOrientation
 orientation types for UI in ZFFramework More...
 
class  ZFUIOrientationFlags
 see v_ZFUIOrientation, ZFUIOrientationFlagsToString, ZFUIOrientationFlagsFromString More...
 
class  v_ZFUIColor
 type wrapper for ZFTypeId::Value More...
 
class  v_ZFUITextAppearance
 text appearance type, normal, bold or italic More...
 
class  v_ZFUITextTruncateMode
 text truncate mode More...
 
class  v_ZFUIScaleType
 scale type when stretch items More...
 

Macros

#define ZFUIColorBlack()
 0x000000
 
#define ZFUIColorGrayDark()
 0x555555
 
#define ZFUIColorGray()
 0x808080
 
#define ZFUIColorGrayLight()
 0xAAAAAA
 
#define ZFUIColorWhite()
 0xFFFFFF
 
#define ZFUIColorRed()
 0xFF0000
 
#define ZFUIColorGreen()
 0x00FF00
 
#define ZFUIColorBlue()
 0x0000FF
 
#define ZFUIColorYellow()
 0xFFFF00
 
#define ZFUIColorMagenta()
 0xFF00FF
 
#define ZFUIColorCyan()
 0x00FFFF
 

Typedefs

typedef v_ZFUIAlign::ZFEnumType ZFUIAlign
 see v_ZFUIAlign
 
typedef v_ZFUIAlign v_ZFUIAlignFlags
 type wrapper for ZFTypeId::Value
 
typedef v_ZFUIOrientation::ZFEnumType ZFUIOrientation
 see v_ZFUIOrientation
 
typedef v_ZFUIOrientation v_ZFUIOrientationFlags
 type wrapper for ZFTypeId::Value
 
typedef _zft_ZFUIColor ZFUIColor
 color with AARRGGBB format
 
typedef zft_zfuint32 zft_ZFUIColor
 primitive number type, use only if necessary, for app, use ZFUIColor instead
 
typedef v_ZFUITextAppearance::ZFEnumType ZFUITextAppearance
 see v_ZFUITextAppearance
 
typedef v_ZFUITextTruncateMode::ZFEnumType ZFUITextTruncateMode
 see v_ZFUITextTruncateMode
 
typedef v_ZFUIScaleType::ZFEnumType ZFUIScaleType
 see v_ZFUIScaleType
 

Functions

void ZFUISizeApplyScaleT (zffloat &ret, zffloat const &v, zffloat scale)
 return a scaled int
 
zffloat ZFUISizeApplyScale (zffloat const &v, zffloat scale)
 return a scaled int
 
void ZFUISizeApplyScaleReverselyT (zffloat &ret, zffloat const &v, zffloat scale)
 return a scaled int reversely
 
zffloat ZFUISizeApplyScaleReversely (zffloat const &v, zffloat scale)
 return a scaled int reversely
 
const zfstringZFTypeId_ZFUIPoint (void)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIPointFromDataT (_ZFP_PropTypeW_ZFUIPoint &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIPoint ZFUIPointFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIPointToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIPoint const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIPointToData (_ZFP_PropTypeW_ZFUIPoint const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIPointFromStringT (_ZFP_PropTypeW_ZFUIPoint &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIPoint from string
 
_ZFP_PropTypeW_ZFUIPoint ZFUIPointFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIPoint from string
 
zfbool ZFUIPointToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIPoint const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIPoint to string
 
zfstring ZFUIPointToString (_ZFP_PropTypeW_ZFUIPoint const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIPoint to string
 
ZFUIPoint const & ZFUIPointZero (void)
 (0, 0)
 
ZFUIPoint ZFUIPointCreate (zffloat const &x, zffloat const &y)
 make a ZFUIPoint
 
void ZFUIPointApplyScaleT (ZFUIPoint &ret, const ZFUIPoint &point, zffloat scale)
 return a scaled point
 
ZFUIPoint ZFUIPointApplyScale (const ZFUIPoint &point, zffloat scale)
 return a scaled point
 
void ZFUIPointApplyScaleReverselyT (ZFUIPoint &ret, const ZFUIPoint &point, zffloat scale)
 return a scaled point reversely
 
ZFUIPoint ZFUIPointApplyScaleReversely (const ZFUIPoint &point, zffloat scale)
 return a scaled point reversely
 
const zfstringZFTypeId_ZFUIMargin (void)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIMarginFromDataT (_ZFP_PropTypeW_ZFUIMargin &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIMargin ZFUIMarginFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIMarginToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIMargin const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIMarginToData (_ZFP_PropTypeW_ZFUIMargin const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIMarginFromStringT (_ZFP_PropTypeW_ZFUIMargin &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIMargin from string
 
_ZFP_PropTypeW_ZFUIMargin ZFUIMarginFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIMargin from string
 
zfbool ZFUIMarginToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIMargin const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIMargin to string
 
zfstring ZFUIMarginToString (_ZFP_PropTypeW_ZFUIMargin const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIMargin to string
 
ZFUIMargin const & ZFUIMarginZero (void)
 (0, 0, 0, 0)
 
ZFUIMargin ZFUIMarginCreate (zffloat const &left, zffloat const &top, zffloat const &right, zffloat const &bottom)
 make a margin
 
ZFUIMargin ZFUIMarginCreate (zffloat const &margin)
 make a margin with all sides set to margin
 
ZFUIMargin ZFUIMarginCreate (zffloat const &x, zffloat const &y)
 make a margin with left/right to x and top/bottom to y
 
void ZFUIMarginApplyScaleT (ZFUIMargin &ret, const ZFUIMargin &margin, zffloat scale)
 return a scaled margin
 
ZFUIMargin ZFUIMarginApplyScale (const ZFUIMargin &margin, zffloat scale)
 return a scaled margin
 
void ZFUIMarginApplyScaleReverselyT (ZFUIMargin &ret, const ZFUIMargin &margin, zffloat scale)
 return a scaled margin reversely
 
ZFUIMargin ZFUIMarginApplyScaleReversely (const ZFUIMargin &margin, zffloat scale)
 return a scaled margin reversely
 
zffloat ZFUIMarginGetWidth (const ZFUIMargin &margin)
 left + right margin
 
zffloat ZFUIMarginGetHeight (const ZFUIMargin &margin)
 top + bottom margin
 
void ZFUIMarginInc (ZFUIMargin &ret, const ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 + v1
 
ZFUIMargin ZFUIMarginInc (const ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 + v1
 
ZFUIMargin operator+ (const ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 + v1
 
ZFUIMarginoperator+= (ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 += v1
 
void ZFUIMarginDec (ZFUIMargin &ret, const ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 - v1
 
ZFUIMargin ZFUIMarginDec (const ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 - v1
 
ZFUIMargin operator- (const ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 - v1
 
ZFUIMarginoperator-= (ZFUIMargin &v0, const ZFUIMargin &v1)
 v0 -= v1
 
const zfstringZFTypeId_ZFUISize (void)
 see ZFTYPEID_DECLARE
 
zfbool ZFUISizeFromDataT (_ZFP_PropTypeW_ZFUISize &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUISize ZFUISizeFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUISizeToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUISize const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUISizeToData (_ZFP_PropTypeW_ZFUISize const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUISizeFromStringT (_ZFP_PropTypeW_ZFUISize &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUISize from string
 
_ZFP_PropTypeW_ZFUISize ZFUISizeFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUISize from string
 
zfbool ZFUISizeToStringT (zfstring &s, _ZFP_PropTypeW_ZFUISize const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUISize to string
 
zfstring ZFUISizeToString (_ZFP_PropTypeW_ZFUISize const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUISize to string
 
ZFUISize const & ZFUISizeZero (void)
 (0, 0)
 
ZFUISize const & ZFUISizeInvalid (void)
 (-1, -1)
 
ZFUISize ZFUISizeCreate (zffloat const &width, zffloat const &height)
 make a ZFUISize
 
ZFUISize ZFUISizeCreate (zffloat const &v)
 make a ZFUISize
 
void ZFUISizeApplyRangeT (ZFUISize &ret, const ZFUISize &orgSize, const ZFUISize &minSize, const ZFUISize &maxSize)
 check and apply size range
 
ZFUISize ZFUISizeApplyRange (const ZFUISize &orgSize, const ZFUISize &minSize, const ZFUISize &maxSize)
 check and apply size range
 
void ZFUISizeApplyRangeT (zffloat &ret, const zffloat &orgSize, const zffloat &minSize, const zffloat &maxSize)
 check and apply size range
 
zffloat ZFUISizeApplyRange (const zffloat &orgSize, const zffloat &minSize, const zffloat &maxSize)
 check and apply size range
 
void ZFUISizeApplyScaleT (ZFUISize &ret, const ZFUISize &size, zffloat scale)
 return a scaled size
 
ZFUISize ZFUISizeApplyScale (const ZFUISize &size, zffloat scale)
 return a scaled size
 
void ZFUISizeApplyScaleReverselyT (ZFUISize &ret, const ZFUISize &size, zffloat scale)
 return a scaled size reversely
 
ZFUISize ZFUISizeApplyScaleReversely (const ZFUISize &size, zffloat scale)
 return a scaled size reversely
 
void ZFUISizeApplyAspectRatioT (ZFUISize &ret, const ZFUISize &size, const ZFUISize &refSize)
 scale size to fit refSize and keep aspect ratio
 
ZFUISize ZFUISizeApplyAspectRatio (const ZFUISize &size, const ZFUISize &refSize)
 scale size to fit refSize and keep aspect ratio
 
void ZFUISizeApplyMarginT (ZFUISize &ret, const ZFUISize &size, const ZFUIMargin &margin)
 return a size excluding the margin
 
ZFUISize ZFUISizeApplyMargin (const ZFUISize &size, const ZFUIMargin &margin)
 return a size excluding the margin
 
void ZFUISizeApplyMarginReverselyT (ZFUISize &ret, const ZFUISize &size, const ZFUIMargin &margin)
 revert excluding the margin
 
ZFUISize ZFUISizeApplyMarginReversely (const ZFUISize &size, const ZFUIMargin &margin)
 revert excluding the margin
 
const zfstringZFTypeId_ZFUIRect (void)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIRectFromDataT (_ZFP_PropTypeW_ZFUIRect &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIRect ZFUIRectFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIRectToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIRect const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIRectToData (_ZFP_PropTypeW_ZFUIRect const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIRectFromStringT (_ZFP_PropTypeW_ZFUIRect &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIRect from string
 
_ZFP_PropTypeW_ZFUIRect ZFUIRectFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIRect from string
 
zfbool ZFUIRectToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIRect const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIRect to string
 
zfstring ZFUIRectToString (_ZFP_PropTypeW_ZFUIRect const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIRect to string
 
ZFUIRect const & ZFUIRectZero (void)
 (0, 0, 0, 0)
 
ZFUIRect ZFUIRectCreate (zffloat const &x, zffloat const &y, zffloat const &w, zffloat const &h)
 make a ZFUIRect
 
ZFUIRect ZFUIRectCreate (const ZFUIPoint &point, const ZFUISize &size)
 make a ZFUIRect
 
zfbool ZFUIRectIsEmpty (const ZFUIRect &rect)
 is rect empty
 
ZFUIRect ZFUIRectUnion (const ZFUIRect &rect1, const ZFUIRect &rect2)
 union two rect, return a rect that contains both rect1 and rect2
 
ZFUIRect ZFUIRectIntersection (const ZFUIRect &rect1, const ZFUIRect &rect2)
 intersect two rect, return ZFUIRectZero if not intersected
 
zfbool ZFUIRectIsIntersectToRect (const ZFUIRect &rect1, const ZFUIRect &rect2)
 is two rect intersected, two tangented rect is not intersected
 
zfbool ZFUIRectIsContainPoint (const ZFUIRect &rect, const ZFUIPoint &point)
 is rect contains point
 
zfbool ZFUIRectIsContainPoint (const ZFUIRect &rect, const ZFUIPoint &point, const ZFUIMargin &margin)
 see ZFUIRectIsContainPoint
 
zfbool ZFUIRectIsContainRect (const ZFUIRect &rect1, const ZFUIRect &rect2)
 return true if rect2 is completely contained by rect1, two equal rect is regarded as contain each other
 
zfbool ZFUIRectIsContainRect (const ZFUIRect &rect1, const ZFUIRect &rect2, const ZFUIMargin &margin)
 see ZFUIRectIsContainRect
 
void ZFUIRectApplyScaleT (ZFUIRect &ret, const ZFUIRect &rect, zffloat scale)
 return a scaled rect
 
ZFUIRect ZFUIRectApplyScale (const ZFUIRect &rect, zffloat scale)
 return a scaled rect
 
void ZFUIRectApplyScaleReverselyT (ZFUIRect &ret, const ZFUIRect &rect, zffloat scale)
 return a scaled rect reversely
 
ZFUIRect ZFUIRectApplyScaleReversely (const ZFUIRect &rect, zffloat scale)
 return a scaled rect reversely
 
ZFUIRect ZFUIRectGetBounds (const ZFUIRect &rect)
 get bounds for rect, i.e. (0, 0, width, height)
 
ZFUISize ZFUIRectGetSize (const ZFUIRect &rect)
 get size of the rect
 
ZFUIPoint ZFUIRectGetCenter (const ZFUIRect &rect)
 get center point of the rect
 
zffloat ZFUIRectGetCenterX (const ZFUIRect &rect)
 get center point of the rect
 
zffloat ZFUIRectGetCenterY (const ZFUIRect &rect)
 get center point of the rect
 
zffloat ZFUIRectGetLeft (const ZFUIRect &rect)
 get left edge of the rect
 
zffloat ZFUIRectGetTop (const ZFUIRect &rect)
 get top edge of the rect
 
zffloat ZFUIRectGetRight (const ZFUIRect &rect)
 get right edge of the rect
 
zffloat ZFUIRectGetBottom (const ZFUIRect &rect)
 get bottom edge of the rect
 
void ZFUIRectApplyMarginT (ZFUIRect &ret, const ZFUIRect &rect, const ZFUIMargin &margin)
 return a rect excluding the margin
 
ZFUIRect ZFUIRectApplyMargin (const ZFUIRect &rect, const ZFUIMargin &margin)
 return a rect excluding the margin
 
void ZFUIRectApplyMarginReverselyT (ZFUIRect &ret, const ZFUIRect &rect, const ZFUIMargin &margin)
 revert excluding the margin
 
ZFUIRect ZFUIRectApplyMarginReversely (const ZFUIRect &rect, const ZFUIMargin &margin)
 revert excluding the margin
 
template<typename T_Size>
void ZFUIRectRound (T_Size &x, T_Size &y, T_Size &w, T_Size &h, const ZFUIRect &rect)
 util method for impl to safe convert float rect to int values
 
zfint ZFUIRectRoundX (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundY (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundWidth (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundHeight (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundLeft (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundTop (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundRight (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfint ZFUIRectRoundBottom (const ZFUIRect &rect)
 see ZFUIRectRound
 
zfbool ZFUIAlignFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFUIAlign, return enum object if success
 
zfbool ZFUIAlignToStringT (zfstring &ret, v_ZFUIAlign *const &value, zfstring *errorHint=zft_zfnull)
 see ZFUIAlign, return empty string if error
 
zfstring ZFUIAlignToString (v_ZFUIAlign *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFUIAlign, return empty string if error
 
const zfstringZFTypeId_ZFUIAlign (void)
 
zfbool ZFUIAlignFromDataT (_ZFP_PropTypeW_ZFUIAlign &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIAlign ZFUIAlignFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIAlignToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIAlign const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIAlignToData (_ZFP_PropTypeW_ZFUIAlign const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIAlignFromStringT (_ZFP_PropTypeW_ZFUIAlign &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlign from string
 
_ZFP_PropTypeW_ZFUIAlign ZFUIAlignFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlign from string
 
zfbool ZFUIAlignToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIAlign const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlign to string
 
zfstring ZFUIAlignToString (_ZFP_PropTypeW_ZFUIAlign const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlign to string
 
const zfstringZFTypeId_ZFUIAlignFlags (void)
 
zfbool ZFUIAlignFlagsFromDataT (_ZFP_PropTypeW_ZFUIAlignFlags &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIAlignFlags ZFUIAlignFlagsFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIAlignFlagsToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIAlignFlags const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIAlignFlagsToData (_ZFP_PropTypeW_ZFUIAlignFlags const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIAlignFlagsFromStringT (_ZFP_PropTypeW_ZFUIAlignFlags &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlignFlags from string
 
_ZFP_PropTypeW_ZFUIAlignFlags ZFUIAlignFlagsFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlignFlags from string
 
zfbool ZFUIAlignFlagsToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIAlignFlags const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlignFlags to string
 
zfstring ZFUIAlignFlagsToString (_ZFP_PropTypeW_ZFUIAlignFlags const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIAlignFlags to string
 
zfbool ZFUIAlignValid (const ZFUIAlignFlags &align)
 true if align is valid
 
void ZFUIAlignApplyT (ZFUIRect &ret, const ZFUIAlignFlags &align, const ZFUIRect &refRect, const ZFUISize &itemSize)
 apply align and calculate result, or ZFUIRectZero if error
 
ZFUIRect ZFUIAlignApply (const ZFUIAlignFlags &align, const ZFUIRect &refRect, const ZFUISize &itemSize)
 apply align and calculate result, or ZFUIRectZero if error
 
ZFUIAlign ZFUIAlignGetX (const ZFUIAlignFlags &align)
 get horizontal align or v_ZFUIAlign::e_Center if invalid
 
ZFUIAlign ZFUIAlignGetY (const ZFUIAlignFlags &align)
 get vertical align or v_ZFUIAlign::e_Center if invalid
 
zfbool ZFUIOrientationFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFUIOrientation, return enum object if success
 
zfbool ZFUIOrientationToStringT (zfstring &ret, v_ZFUIOrientation *const &value, zfstring *errorHint=zft_zfnull)
 see ZFUIOrientation, return empty string if error
 
zfstring ZFUIOrientationToString (v_ZFUIOrientation *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFUIOrientation, return empty string if error
 
const zfstringZFTypeId_ZFUIOrientation (void)
 
zfbool ZFUIOrientationFromDataT (_ZFP_PropTypeW_ZFUIOrientation &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIOrientation ZFUIOrientationFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIOrientationToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIOrientation const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIOrientationToData (_ZFP_PropTypeW_ZFUIOrientation const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIOrientationFromStringT (_ZFP_PropTypeW_ZFUIOrientation &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientation from string
 
_ZFP_PropTypeW_ZFUIOrientation ZFUIOrientationFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientation from string
 
zfbool ZFUIOrientationToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIOrientation const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientation to string
 
zfstring ZFUIOrientationToString (_ZFP_PropTypeW_ZFUIOrientation const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientation to string
 
const zfstringZFTypeId_ZFUIOrientationFlags (void)
 
zfbool ZFUIOrientationFlagsFromDataT (_ZFP_PropTypeW_ZFUIOrientationFlags &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIOrientationFlags ZFUIOrientationFlagsFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIOrientationFlagsToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIOrientationFlags const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIOrientationFlagsToData (_ZFP_PropTypeW_ZFUIOrientationFlags const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIOrientationFlagsFromStringT (_ZFP_PropTypeW_ZFUIOrientationFlags &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientationFlags from string
 
_ZFP_PropTypeW_ZFUIOrientationFlags ZFUIOrientationFlagsFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientationFlags from string
 
zfbool ZFUIOrientationFlagsToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIOrientationFlags const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientationFlags to string
 
zfstring ZFUIOrientationFlagsToString (_ZFP_PropTypeW_ZFUIOrientationFlags const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIOrientationFlags to string
 
ZFUIOrientationFlags const & ZFUIOrientationFlagsAll (void)
 (v_ZFUIOrientation::e_Left | v_ZFUIOrientation::e_Top | v_ZFUIOrientation::e_Right | v_ZFUIOrientation::e_Bottom)
 
ZFUIOrientationFlags const & ZFUIOrientationFlagsHorizontal (void)
 (v_ZFUIOrientation::e_Left | v_ZFUIOrientation::e_Right)
 
ZFUIOrientationFlags const & ZFUIOrientationFlagsVertical (void)
 (v_ZFUIOrientation::e_Top | v_ZFUIOrientation::e_Bottom)
 
zfbool ZFUIOrientationIsVertical (ZFUIOrientation orientation)
 true if vertical orientation
 
zfbool ZFUIOrientationIsHorizontal (ZFUIOrientation orientation)
 true if vertical orientation
 
ZFUIColor const & ZFUIColorZero (void)
 zero color
 
const zfstringZFTypeId_ZFUIColor (void)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIColorFromDataT (_ZFP_PropTypeW_ZFUIColor &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIColor ZFUIColorFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIColorToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIColor const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIColorToData (_ZFP_PropTypeW_ZFUIColor const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIColorFromStringT (_ZFP_PropTypeW_ZFUIColor &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIColor from string
 
_ZFP_PropTypeW_ZFUIColor ZFUIColorFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIColor from string
 
zfbool ZFUIColorToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIColor const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIColor to string
 
zfstring ZFUIColorToString (_ZFP_PropTypeW_ZFUIColor const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIColor to string
 
ZFUIColor ZFUIColorCreate (zffloat r, zffloat g, zffloat b, zffloat a=(1.0f))
 make a color
 
ZFUIColor ZFUIColorMakeARGB (zfuint argb)
 make a color for hex int
 
ZFUIColor ZFUIColorMakeRGB (zfuint rgb)
 make a color for hex int
 
ZFUIColor ZFUIColorWithA (ZFUIColor const &c, zffloat a)
 return a copy of color with changed alpha
 
ZFUIColor ZFUIColorWithR (ZFUIColor const &c, zffloat r)
 return a copy of color with changed red
 
ZFUIColor ZFUIColorWithG (ZFUIColor const &c, zffloat g)
 return a copy of color with changed green
 
ZFUIColor ZFUIColorWithB (ZFUIColor const &c, zffloat b)
 return a copy of color with changed blue
 
zffloat ZFUIColorGetA (ZFUIColor const &c)
 get alpha from a ZFUIColor as zffloat
 
zffloat ZFUIColorGetR (ZFUIColor const &c)
 get red from a ZFUIColor as zffloat
 
zffloat ZFUIColorGetG (ZFUIColor const &c)
 get green from a ZFUIColor as zffloat
 
zffloat ZFUIColorGetB (ZFUIColor const &c)
 get blue from a ZFUIColor as zffloat
 
ZFUIColorZFUIColorSetA (ZFUIColor &c, zffloat a)
 set alpha to a ZFUIColor
 
ZFUIColorZFUIColorSetR (ZFUIColor &c, zffloat r)
 set red from a ZFUIColor
 
ZFUIColorZFUIColorSetG (ZFUIColor &c, zffloat g)
 set green from a ZFUIColor
 
ZFUIColorZFUIColorSetB (ZFUIColor &c, zffloat b)
 set blue from a ZFUIColor
 
ZFUIColor ZFUIColorRandom (zffloat alpha=(1.0f))
 create a random color with specified alpha
 
zfbool ZFUITextAppearanceFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFUITextAppearance, return enum object if success
 
zfbool ZFUITextAppearanceToStringT (zfstring &ret, v_ZFUITextAppearance *const &value, zfstring *errorHint=zft_zfnull)
 see ZFUITextAppearance, return empty string if error
 
zfstring ZFUITextAppearanceToString (v_ZFUITextAppearance *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFUITextAppearance, return empty string if error
 
const zfstringZFTypeId_ZFUITextAppearance (void)
 
zfbool ZFUITextAppearanceFromDataT (_ZFP_PropTypeW_ZFUITextAppearance &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUITextAppearance ZFUITextAppearanceFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUITextAppearanceToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUITextAppearance const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUITextAppearanceToData (_ZFP_PropTypeW_ZFUITextAppearance const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUITextAppearanceFromStringT (_ZFP_PropTypeW_ZFUITextAppearance &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextAppearance from string
 
_ZFP_PropTypeW_ZFUITextAppearance ZFUITextAppearanceFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextAppearance from string
 
zfbool ZFUITextAppearanceToStringT (zfstring &s, _ZFP_PropTypeW_ZFUITextAppearance const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextAppearance to string
 
zfstring ZFUITextAppearanceToString (_ZFP_PropTypeW_ZFUITextAppearance const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextAppearance to string
 
zfbool ZFUITextTruncateModeFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFUITextTruncateMode, return enum object if success
 
zfbool ZFUITextTruncateModeToStringT (zfstring &ret, v_ZFUITextTruncateMode *const &value, zfstring *errorHint=zft_zfnull)
 see ZFUITextTruncateMode, return empty string if error
 
zfstring ZFUITextTruncateModeToString (v_ZFUITextTruncateMode *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFUITextTruncateMode, return empty string if error
 
const zfstringZFTypeId_ZFUITextTruncateMode (void)
 
zfbool ZFUITextTruncateModeFromDataT (_ZFP_PropTypeW_ZFUITextTruncateMode &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUITextTruncateMode ZFUITextTruncateModeFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUITextTruncateModeToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUITextTruncateMode const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUITextTruncateModeToData (_ZFP_PropTypeW_ZFUITextTruncateMode const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUITextTruncateModeFromStringT (_ZFP_PropTypeW_ZFUITextTruncateMode &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextTruncateMode from string
 
_ZFP_PropTypeW_ZFUITextTruncateMode ZFUITextTruncateModeFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextTruncateMode from string
 
zfbool ZFUITextTruncateModeToStringT (zfstring &s, _ZFP_PropTypeW_ZFUITextTruncateMode const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextTruncateMode to string
 
zfstring ZFUITextTruncateModeToString (_ZFP_PropTypeW_ZFUITextTruncateMode const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUITextTruncateMode to string
 
zfbool ZFUIScaleTypeFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFUIScaleType, return enum object if success
 
zfbool ZFUIScaleTypeToStringT (zfstring &ret, v_ZFUIScaleType *const &value, zfstring *errorHint=zft_zfnull)
 see ZFUIScaleType, return empty string if error
 
zfstring ZFUIScaleTypeToString (v_ZFUIScaleType *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFUIScaleType, return empty string if error
 
const zfstringZFTypeId_ZFUIScaleType (void)
 
zfbool ZFUIScaleTypeFromDataT (_ZFP_PropTypeW_ZFUIScaleType &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFUIScaleType ZFUIScaleTypeFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIScaleTypeToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFUIScaleType const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFUIScaleTypeToData (_ZFP_PropTypeW_ZFUIScaleType const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFUIScaleTypeFromStringT (_ZFP_PropTypeW_ZFUIScaleType &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIScaleType from string
 
_ZFP_PropTypeW_ZFUIScaleType ZFUIScaleTypeFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIScaleType from string
 
zfbool ZFUIScaleTypeToStringT (zfstring &s, _ZFP_PropTypeW_ZFUIScaleType const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIScaleType to string
 
zfstring ZFUIScaleTypeToString (_ZFP_PropTypeW_ZFUIScaleType const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFUIScaleType to string
 
void ZFUIScaleTypeApplyT (ZFUIRect &ret, ZFUIScaleType scaleType, const ZFUIRect &bounds, const ZFUISize &contentSize, const ZFUIAlignFlags &alignFlags=(v_ZFUIAlign::e_Center))
 apply scale for ZFUIScaleType
 
ZFUIRect ZFUIScaleTypeApply (ZFUIScaleType scaleType, const ZFUIRect &bounds, const ZFUISize &contentSize, const ZFUIAlignFlags &alignFlags=(v_ZFUIAlign::e_Center))
 apply scale for ZFUIScaleType
 

Detailed Description

necessary header file for all ZFUIKit member

Typedef Documentation

◆ ZFUIColor

typedef _zft_ZFUIColor ZFUIColor

color with AARRGGBB format

note, color is ensured as POD type, but the actual color type is not ensured, use float to make and store a/r/g/b element, and use string converter (ZFUIColorToString) if necessary
for now, the color is 32bit integer with AARRGGBB format, but may extend to 64bit for future update

Function Documentation

◆ ZFTypeId_ZFUIPoint()

const zfstring & ZFTypeId_ZFUIPoint ( void )
inline

see ZFTYPEID_DECLARE

serializable data:

value="(0, 0)" // optional, 0 by default
/>
2D point
Definition ZFUITypeDef.h:62


◆ ZFTypeId_ZFUIMargin()

const zfstring & ZFTypeId_ZFUIMargin ( void )
inline

see ZFTYPEID_DECLARE

serializable data:

value="(0, 0, 0, 0)" // optional, 0 by default
/>
margin
Definition ZFUITypeDef.h:147


◆ ZFTypeId_ZFUISize()

const zfstring & ZFTypeId_ZFUISize ( void )
inline

see ZFTYPEID_DECLARE

serializable data:

value="(0, 0)" // optional, 0 by default
/>
2D size
Definition ZFUITypeDef.h:397


◆ ZFUISizeInvalid()

ZFUISize const & ZFUISizeInvalid ( void )
inline

(-1, -1)

since zero size is valid on some cases, we supply -1 as special size to indicate an invalid size

◆ ZFUISizeApplyRangeT() [1/2]

void ZFUISizeApplyRangeT ( ZFUISize & ret,
const ZFUISize & orgSize,
const ZFUISize & minSize,
const ZFUISize & maxSize )
inline

check and apply size range

return value in range [minSize, maxSize] if minSize < maxSize, or return value in range [minSize, infinite) minSize > maxSize

◆ ZFUISizeApplyRange() [1/2]

ZFUISize ZFUISizeApplyRange ( const ZFUISize & orgSize,
const ZFUISize & minSize,
const ZFUISize & maxSize )
inline

check and apply size range

return value in range [minSize, maxSize] if minSize < maxSize, or return value in range [minSize, infinite) minSize > maxSize

◆ ZFUISizeApplyRangeT() [2/2]

void ZFUISizeApplyRangeT ( zffloat & ret,
const zffloat & orgSize,
const zffloat & minSize,
const zffloat & maxSize )
inline

check and apply size range

return value in range [minSize, maxSize] if minSize < maxSize, or return value in range [minSize, infinite) minSize > maxSize

◆ ZFUISizeApplyRange() [2/2]

zffloat ZFUISizeApplyRange ( const zffloat & orgSize,
const zffloat & minSize,
const zffloat & maxSize )
inline

check and apply size range

return value in range [minSize, maxSize] if minSize < maxSize, or return value in range [minSize, infinite) minSize > maxSize

◆ ZFUISizeApplyAspectRatioT()

void ZFUISizeApplyAspectRatioT ( ZFUISize & ret,
const ZFUISize & size,
const ZFUISize & refSize )
extern

scale size to fit refSize and keep aspect ratio

input size must be valid, while negative refSize means no limit

◆ ZFUISizeApplyAspectRatio()

ZFUISize ZFUISizeApplyAspectRatio ( const ZFUISize & size,
const ZFUISize & refSize )
inline

scale size to fit refSize and keep aspect ratio

input size must be valid, while negative refSize means no limit

◆ ZFTypeId_ZFUIRect()

const zfstring & ZFTypeId_ZFUIRect ( void )
inline

see ZFTYPEID_DECLARE

serializable data:

value="(0, 0, 0, 0)" // optional, 0 by default
/>
2D rectangle
Definition ZFUITypeDef.h:636


◆ ZFUIRectIsEmpty()

zfbool ZFUIRectIsEmpty ( const ZFUIRect & rect)
inline

is rect empty

rect is empty if width or height <= 0

◆ ZFUIRectIsContainPoint()

zfbool ZFUIRectIsContainPoint ( const ZFUIRect & rect,
const ZFUIPoint & point,
const ZFUIMargin & margin )
inline

see ZFUIRectIsContainPoint

if margin is positive, rect's area is reduced by margin, if margin is negative, rect's area is increased by margin

◆ ZFUIRectIsContainRect()

zfbool ZFUIRectIsContainRect ( const ZFUIRect & rect1,
const ZFUIRect & rect2,
const ZFUIMargin & margin )
inline

see ZFUIRectIsContainRect

if margin is positive, rect's area is reduced by margin, if margin is negative, rect's area is increased by margin

◆ ZFTypeId_ZFUIAlign()

const zfstring & ZFTypeId_ZFUIAlign ( void )
inline


◆ ZFTypeId_ZFUIAlignFlags()

const zfstring & ZFTypeId_ZFUIAlignFlags ( void )
inline


◆ ZFUIAlignValid()

zfbool ZFUIAlignValid ( const ZFUIAlignFlags & align)
extern

true if align is valid

a align is valid only if:

  • only bits in ZFUIAlign are set
  • x or y align type must not conflict, i.e. "Left, LeftEdge, Right, RightEdge" could only exist at most one, "Top, TopEdge, Bottom, BottomEdge" could only exist at most one

◆ ZFTypeId_ZFUIOrientation()

const zfstring & ZFTypeId_ZFUIOrientation ( void )
inline


◆ ZFTypeId_ZFUIOrientationFlags()

const zfstring & ZFTypeId_ZFUIOrientationFlags ( void )
inline


◆ ZFTypeId_ZFUIColor()

const zfstring & ZFTypeId_ZFUIColor ( void )
inline

see ZFTYPEID_DECLARE

serializable data:

value="value" // optional, 0 by default
/>
_zft_ZFUIColor ZFUIColor
color with AARRGGBB format
Definition ZFUITypeDef.h:1184

valid value format:

  • "AARRGGBB"
  • "RRGGBB"
  • "ARGB"
  • "RGB"

valid prefix:

  • empty ("AARRGGBB")
  • "#" ("#AARRGGBB")
  • "0x" ("0xAARRGGBB")

when serialize back to string, it's ensured to use "#" as prefix, and will try to use the shortest form if available (e.g. "RGB" instead of "AARRGGBB")

◆ ZFTypeId_ZFUITextAppearance()

const zfstring & ZFTypeId_ZFUITextAppearance ( void )
inline


◆ ZFTypeId_ZFUITextTruncateMode()

const zfstring & ZFTypeId_ZFUITextTruncateMode ( void )
inline


◆ ZFTypeId_ZFUIScaleType()

const zfstring & ZFTypeId_ZFUIScaleType ( void )
inline