Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)