Primitives usually do not have children. Specialized Motif primitives include labels , separators , buttons , scroll bars , lists , and text widgets . Some primitive classes have equivalent objects called gadgets . These are just like primitives except that, to enhance performance, they have no associated windows. Managers are composite widgets that contain primitives, gadgets, or other managers.
Managers are responsible for the geometrical arrangement of their children.
They also process and dispatch input to their gadget children. Specialized Motif managers include frames , scrolled and paned windows , menus , constraint-based geometry managers, and several kinds of dialogs. Shells are widgets whose main purpose is to communicate with the window manager. Most shells have only one child, and they maintain the same size and position as the child. Specialized Motif shells exist to envelop applications , dialogs , and menus .