Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PgSetGC, PgSetGCCx

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PgSetGC, PgSetGCCx

[Previous] [Contents] [Index] [Next]

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:
  • a PhDrawContext_t returned by PhDCCreate()
  • a PmMemoryContext_t returned by PmMemCreateMC()
  • a PpPrintContext_t returned by PpCreatePC()
  • a PdOffscreenContext_t returned by PdCreateOffscreenContext()
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*()


[Previous] [Contents] [Index] [Next]

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026