reflectable type define More...
#include "ZFStyleable.h"
#include "ZFProgressable.h"
#include "ZFMethodUserRegister.h"
#include "ZFMethodFuncUserRegister.h"
#include "ZFMethodFuncDeclare.h"
#include "ZFObjectUtil.h"
#include "ZFSerializableUtil.h"
#include "ZFSerializableDataSerializableConverter.h"
#include "ZFObjectRetain.h"
#include "ZFTypeIdDeclare.h"
#include "ZFTypeIdDeclare_inner.h"
Go to the source code of this file.
Classes | |
class | ZFTypeIdWrapper |
dummy base for all wrapper types, see ZFTypeId::Value More... | |
Macros | |
#define | ZFTYPEID_PROGRESS_DEFINE(TypeName, Type, progressUpdateAction) |
register Type's progress update logic | |
#define | ZFTYPEID_PROGRESS_DEFINE_BY_VALUE(TypeName, Type) |
util macro to declare ZFTYPEID_PROGRESS_DEFINE by raw value calculating | |
reflectable type define
#define ZFTYPEID_PROGRESS_DEFINE | ( | TypeName, | |
Type, | |||
progressUpdateAction ) |
register Type's progress update logic
a progress update means, the type can be changed by timer by supply a "from/to" value range
for example, an float type with range "[0.5, 3.0]" and progress "0.3", would result "0.5 + (3.0 - 0.5) * 0.3", which is 1.25
this is useful to make a property change with animation
to use this, register your type by this macro, with this proto type:
then use them by ZFProgressable::progressUpdate
to register:
or use ZFTYPEID_PROGRESS_DEFINE_BY_VALUE for short