[Kde-bindings] smoke function docs
Petr Vanek
petr at scribus.info
Fri Aug 7 10:05:18 UTC 2009
hi again,
Can anybody supply missing info and/or correct me if I'm wrong with
this exmplanation, please?
/*! Function to call given object's method with arguments.
\param method a method index. E.g. from findMethod etc.
\param obj an object (e.g. Qt object for Qt smoke) to call its
method.
\param args Smoke::Stack with method's arguments.
Special case: method index 0 is used to setup binding object
inherited "SmokeBinding" instance.
*/
typedef void (*ClassFn)(Index method, void* obj, Stack args);
/*! Function to preform type cast.
\param obj ???
\param from ??? which index?
\param to ??? which index?
*/
typedef void* (*CastFn)(void* obj, Index from, Index to);
/*! Handling enum "methods".
\param EnumOperation EnumNew=?, EnumDelete=?,
EnumFromLong=smoked enum to long type,
EnumToLong=long type to smoked enum
\param Index ??? ondex of what? Enum "method"?
\param void* & ??? reference to what?
\param long& long variable to handle with
*/
typedef void (*EnumFn)(EnumOperation, Index, void*&, long&);
thanks and cheers,
Petr
More information about the Kde-bindings
mailing list