Using attribute bundles

The properties that determine how a 2D graphic is drawn, such as fill color, frame color, and pen width, are called attributes. There are a number of classes for creating attribute bundles. Attribute bundles are instantiated and passed to a graphic to define the attributes for a particular graphic. If a graphic does not have an attribute bundle, the default graphic state of the drawing port defines the graphic's attributes. The graphic state is described in Chapter 19.

MGraphic has functions to adopt, get, and orphan bundles, which are described below. See Chapter 2 for a summary of Adopt, Orphan, and Get semantics. How to set the 2D attributes for an attribute bundle is described in Chapter 7.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker