GetPropsFunc

Webs: Faemalia -:- Greatprawn -:- Playground -:- Technical -:- Tweak
Technical Web Sections: Register -:- Users -:- Changes -:- Index -:- Search -:- Statistics

This function is called to return a list of property descriptions the object supports. The list should be NULL terminated.

For StdProps objects, this function should just be a wrapper around object_get_props_from_offsets(), adding the PropOffsets pointer:

static void
myobject_get_props(MyObject *myobject, GPtrArray *props)
{
  object_get_props_from_offsets((Object *)myobject,
                                myobject_offsets, props);
}

typedef const PropDescription *(* DescribePropsFunc) (Object *obj);

-- LarsClausen - 04 Sep 2002


Edit -:- Attach -:- Ref-By -:- Printable -:- More