GrNewGC()

Name

GrNewGC() -- Create a new graphics context

Synopsis

GR_GC_ID GrNewGC (void);

Description

This function creates a new graphics context. The newly created structure is initialized with the default values shown in the following table.

GC ParameterDefault Value
modeGR_MODE_SET
regionNo region selected
fontThe default system font
foregroundWHITE
backgroundBLACK
usebackgroundGR_TRUE

Returns

The ID of the newly created graphics context structure, or 0 if unsuccessful.

See Also

GR_GC_ID, GR_GC_INFO, GrCopyGC(), GrDestroyGC(), GrSetGCForeground(), GrSetGCBackground(), GrSetGCUseBackground(), GrSetGCMode(), GrSetGCFont(), GrSetGCRegion(), GC Functions.