SetPropsFunc

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

This function is called to set the value of a number of properties of the object.

For StdProps objects, this should just be a wrapper around object_set_props_from_offset, adding the PropOffsets pointer:

static void
myobject_set_props(MyObject *myobject, GPtrArray *props)
{
  object_set_props_from_offsets((Object*)myobject, 
                                myobject_offsets, props);
  myobject_update_data(myobject);
}

typedef void (* SetPropsFunc) (Object *obj, GPtrArray *props);

-- LarsClausen - 05 Sep 2002


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