Each segment has a number of characteristics, called attributes that you can set in accordance with your application's requirements. The attributes of a segment are quite different from those of a graphics primitive, in that segment attributes have ON and OFF settings. There are seven segment attributes, each described in the following table.
Graphic Segment Attributes and Initial Settings
┌──────────────────┬────────────────────┬──────────────┬────────┐ │Attribute │Value │If set... │Default │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Chained │ATTR_CHAINED │the operating │ON │ │ │ │system adds │ │ │ │ │each new │ │ │ │ │segment in │ │ │ │ │your │ │ │ │ │application's │ │ │ │ │presentation │ │ │ │ │space to the │ │ │ │ │segment chain.│ │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Fast chain │ATTR_FASTCHAIN │the operating │ON │ │ │ │system │ │ │ │ │prevents the │ │ │ │ │resetting of │ │ │ │ │primitive │ │ │ │ │attributes to │ │ │ │ │their default │ │ │ │ │values before │ │ │ │ │drawing the │ │ │ │ │segment chain.│ │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Dynamic │ATTR_DYNAMIC │the operating │OFF │ │ │ │system draws │ │ │ │ │segment output│ │ │ │ │by using the │ │ │ │ │XOR raster │ │ │ │ │operation. │ │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Detectable │ATTR_DETECTABLE │your │OFF │ │ │ │application │ │ │ │ │can perform │ │ │ │ │correlation │ │ │ │ │operations on │ │ │ │ │segments │ │ │ │ │created in │ │ │ │ │this │ │ │ │ │presentation │ │ │ │ │space. │ │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Propagate │ATTR_PROP_DETECTABLE│the detectable│ON │ │detectable │ │attribute will│ │ │ │ │be set in each│ │ │ │ │segment called│ │ │ │ │by a chained │ │ │ │ │segment. │ │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Visible │ATTR_VISIBLE │GpiDrawChain, │ON │ │ │ │GpiDrawFrom, │ │ │ │ │and │ │ │ │ │GpiDrawSegment│ │ │ │ │will generate │ │ │ │ │output on a │ │ │ │ │device. │ │ ├──────────────────┼────────────────────┼──────────────┼────────┤ │Propagate visible │ATTR_PROP_VISIBLE │The visible │ON │ │ │ │attribute will│ │ │ │ │be set in each│ │ │ │ │segment called│ │ │ │ │by a chained │ │ │ │ │segment. │ │ └──────────────────┴────────────────────┴──────────────┴────────┘
When an application creates a segment in a presentation space, the operating system assigns initial attributes to it. By default, five of the attributes will be set ON and two will be set OFF. Your application can override the defaults for all subsequently created segments within the presentation space using GpiSetInitialSegmentAttrs.
Use GpiQueryInitialSegmentAttrs, to retrieve the values of the current initial attributes.