A widget also has attributes, called resources , which can often be set by the user or the application. An application organizes widgets into one or more hierarchies or trees of parent widgets and their children. Motif and Xt define a set of widget types or classes . 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.