struct TwStructMember |
---|
TwStructMember
stores the description of a structure member. It is used by TwDefineStruct to create a type that represents a C/C++ structure.
struct TwStructMember { const char * Name; // name of the member TwType Type; // type of the member size_t Offset; // offset of the member from the beginning of its parent structure (in bytes). // it can be easily obtained by using offsetof C-function (stddef.h) const char * DefString; // a definition string that will be used to modify the behavior of this member. // same syntax as definition string of TwAddVar* functions };