These are the current operations in the Dia object vtable.Many objects have an myobject_update_data function which updates the bounding box, handle positions and connection point positions after a change to the object. The various operations call this function to update the object state. -- LarsClausen - 05 Sep 2002
- DestroyFunc
- Called when the object is being destroyed.
- DrawFunc
- Called to draw the object.
- DistanceFunc
- Must return the distance from a point to the object.
- SelectFunc?
- Called when the objects is selected.
- CopyFunc?
- Called to copy an object.
- MoveFunc?
- Called when the entire object is moved.
- MoveHandleFunc
- Called when one handle of the object is moved.
- GetPropertiesFunc
- Called to get a properties dialog for the object. Handled by StdProps.
- ApplyPropertiesFunc
- Called to set properties on the object from a properties dialog. Handled by StdProps.
- ObjectMenuFunc?
- Must return the ObjectMenu? for this object.
- DescribePropsFunc
- Must return a list of the properties the object has. Wrapper for StdProps.
- GetPropsFunc
- Called to get object values into a properties array. Wrapper for StdProps.
- SetPropsFunc
- Called to store values from a properties array into the object. Mostly wrapper for StdProps.
| Edit -:- Attach -:- Ref-By -:- Printable -:- More |