Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PpSetCanvas

PpSetCanvas

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PpSetCanvas()

Set the size of the drawing area for a print context

Synopsis:

PhDim_t PpSetCanvas( PpPrintContext_t *pc,
                     PhDim_t size );

Arguments:

pc
The pointer to a PpPrintContext_t structure that was returned by PpCreatePC().
size
A PhDim_t structure that specifies the size of the drawing area.

Library:

ph

Description:

This function sets the size of the current drawing area associated with the given print context.

Returns:

The dimensions of the rectangle, or (0, 0) if pc is invalid.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhDim_t, PpCreatePC(), PpGetCanvas(), PpGetPC(), PpPrintContext_t, PpReleasePC(), PpSetPC()

Printing chapter of the Programmer's Guide