The heart of every Intrinsics-based widget is its class record. The widget class record defines fields required by both the Intrinsics and Motif. The purpose of this chapter is to explain how to write a class record for subclasses of the XmPrimitive widget. Therefore, the widget class records described by this chapter will have the class hierarchy shown in the following figure.
Figure 2. Class Hierarchy of Primitive Widgets.
View figure. |
Therefore, the class record of your primitive widget consists of
This chapter details all these fields from a Motif widget writer's perspective. In addition, this chapter describes the instance data members of XmPrimitive that are accessible to your widget.