PtFlush()

Immediately repair widget damage

Synopsis:

int PtFlush( void );

Library:

ph

Description:

This function ensures that any widget damage is repaired, and then calls PgFlush() to flush buffered draw commands from your application to the graphics driver.

You'll need to call this function explicitly if you're drawing somewhere “outside” the standard Photon event loop (for example, in an input procedure) or if you want changes to the widgets to be made immediately.


Note: PtFlush() ignores and doesn't affect the application's hold count. For more information, see Delaying and forcing updates to the display in the Working with Code chapter of the Photon Programmer's Guide.

Returns:

The new value of the global hold count.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgFlush(), PtHold(), PtRelease()

Delaying and forcing updates to the display in the Working with Code chapter of the Photon Programmer's Guide