PgSetGC(), PgSetGCCx()

Set current graphics context

Synopsis:

PhGC_t *PgSetGC( PhGC_t *GC );

PhGC_t *PgSetGCCx( void *dc,
                   PhGC_t *GC );

Arguments:

dc
PgSetGCCx() only. A void pointer to any type of draw context. Examples of draw contexts are:
GC
A pointer to a graphics context, as returned by PgCreateGC().

Library:

ph

Description:

These functions set the current graphics context to GC.

PgSetGC() works on the current draw context, while you can specify the draw context for PgSetGCCx().

Returns:

A pointer to the previous graphics context.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgCreateGC(), PgDestroyGC(), PgGetGC*()