[ Previous | Next | Contents | Glossary | Home | Search ]
Motif 2.1 Widget Writer's Guide



Chapter 3. The Widget Class Record of Primitive Widgets

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

  1. All 32 fields from the Core widget

  2. All 7 fields from the XmPrimitive widget

  3. The extension record of the XmPrimitive widget

  4. All the fields unique to your own widget

    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.


  5. [ Previous | Next | Contents | Glossary | Home | Search ]