PgGetGC(), PgGetGCCx()

Get current graphics context

Synopsis:

PhGC_t *PgGetGC( void );

PhGC_t *PgGetGCCx(void *dc);

Arguments:

dc
PgGetGCCx() only. A pointer to a draw context.

Library:

ph

Description:

These functions get the current graphics context. PgGetGC() works on the current draw context, while you can specify the draw context for PgGetGCCx().

Returns:

A pointer to the current graphics context.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgCreateGC(), PgDestroyGC(), PgSetGC*()