Attributes of Area Primitives

The attributes of the area primitive are contained in a data structure called AREABUNDLE. These attributes are:

When an application creates a presentation space, the area attributes are set to the default values shown in the following table.

Area Attribute Default Values

┌──────────────────┬────────────┬──────────────────────────────┐│Attribute         │Default     │Function that Redefines       │
│                  │Value       │Attribute                     │
├──────────────────┼────────────┼──────────────────────────────┤
│Pattern symbol    │solid       │GpiSetPattern                 │
├──────────────────┼────────────┼──────────────────────────────┤
│Pattern reference │(0,0)       │GpiSetPatternRefPoint         │
│point             │            │                              │
├──────────────────┼────────────┼──────────────────────────────┤
│Pattern set       │LCID_DEFAULT│GpiSetPatternSet              │
├──────────────────┼────────────┼──────────────────────────────┤
│Foreground color  │Black       │GpiSetAttrs (ABB_COLOR)       │
├──────────────────┼────────────┼──────────────────────────────┤
│Background color  │Clear       │GpiSetAttrs (ABB_BACK_COLOR)  │
├──────────────────┼────────────┼──────────────────────────────┤
│Foreground mix    │Overpaint   │GpiSetAttrs (ABB_MIX_MODE)    │
├──────────────────┼────────────┼──────────────────────────────┤
│Background mix    │Leave alone │GpiSetAttrs                   │
│                  │            │(ABB_BACK_MIX_MODE)           │
└──────────────────┴────────────┴──────────────────────────────┘

Note: If the default (LCID_DEFAULT) for pattern set is changed, the base pattern set cannot be reselected with GpiSetPatternSet.


[Back: About Area Primitives]
[Next: Pattern Symbol Attribute]