![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Create a region that's owned by the graphics driver
PhRid_t PgCreateDriverRegion(
PdOffscreenContext_t *osc,
PhPoint_t *origin,
PhRect_t *rect,
PhRid_t parent );
ph
PgCreateDriverRegion() creates a region that's owned by the graphics driver and is sensitive to draw events.
The region parent defaults to the driver's input group's parent region. PhRegionOpen() defines all of the other default settings for the region. All draw events collected by the driver region are targeted at the specified offscreen context.
The driver region persists until you explicitly close it (which we don't recommend) or until the corresponding offscreen context is destroyed.
![]() |
You must target this function at a device by calling PdSetTargetDevice(). |
A few notes:
A nonnegative region id, or -1 if an error occurred.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PdOffscreenContext_t, PdSetOffscreenTranslation(), PdSetTargetDevice(), PhPoint_t, PhRect_t, PhRegionOpen()
![]() |
![]() |
![]() |
![]() |