Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PgGetRegion, PgGetRegionCx

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PgGetRegion, PgGetRegionCx

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

PgGetRegion(), PgGetRegionCx()

Get the ID of the region that emits draw events

Synopsis:

PhRid_t PgGetRegion( void );

PhRid_t PgGetRegionCx( void *dc );

Arguments:

dc
PgGetRegionCx() 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()

Library:

ph

Description:

These functions get the ID of the region that currently emits draw events.

PgGetRegion() works on the current draw context, while you can specify the draw context for PgGetRegionCx().

Returns:

The ID of the region.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgSetRegion*()


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

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