The DObject class is subclassed from XmGadget. The DPoly class defines the resources and functions for objects that are defined by an arbitrary number of points, such as polygon, arc, spline. It has resources to specify arrows that can be placed on the ends of the objects. The class defines no new resources so that a DRectangle instance has only the resources inherited from its super-classes. An ellipse is defined by its enclosing rectangle.
Additional resources specify the start and end angle , to draw only part of an ellipse.
An image is defined by its enclosing rectangle or, alternatively, by the size of the image loaded. DImage has resources to specify the image displayed, the mask applied to the image, and how geometric transformations defined for the gadget are applied to the image. A label is defined by its enclosing rectangle or, alternatively, by the size of the text displayed. A text is defined by its enclosing rectangle. DText can load , edit and display texts with multiple fonts and multiple colors .