1.CEGUI中的property
每一种类型的property在程序中只有唯一一个静态对象,它并不保存所谓的属性值,它只是一个代理者。以Property::set为例,
Property::set(PropertyReceiver* receiver, const String& value)
该方法将receive转换为某种对象指针,然后以value为参数调用该种对象的某个方法,一种Property就对应一种特定的对象和它的一个特定的方法。以UnifiedAreaRect为例,它对应Window类和它的setArea方法。
2.typedef函数类型
typedef bool(FuncType)(int):FuncType是返回值为bool参数为int的函数类型。
typedef bool(*FuncPointType)(int):FuncPointType是FuncType函数的指针类型。
typedef boo(T::MemFuncType)(int):MemFuncType是返回值为bool参数为int属于类T的成员函数类型。
typedef boo(T::*MemFuncPointType)(int):MemFuncPointType是MemFuncType函数的指针类型。