DescribePropsFunc ( vs. r1.1)

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

 <<O>>  Difference Topic DescribePropsFunc (r1.1 - 05 Sep 2002 - LarsClausen)
Line: 1 to 1
Added:
>
>
META TOPICPARENT StdProps

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

The easiest way to implement this function is to call prop_desc_list_calculate_quarks(), if the quarks aren't already defined:

static PropDescription *
myobject_describe_props(MyObject *obj)
{
  if (myobject_props[0].quark == 0)
    prop_desc_list_calculate_quarks(myobject_props);
  return myobject_props;
}

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

-- LarsClausen - 04 Sep 2002


View -:- Diffs | r1.1 -:- More

Revision -
Revision r1.1 - 05 Sep 2002 - 03:06 - LarsClausen
Copyright © 2002 by the Author of the article. All material on this collaboration tool is the property of the contributing authors.