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

PtFlush()

Immediately repair widget damage

Synopsis:

int PtFlush( void );

Description:

This function ensures that any widget damage is repaired (ignoring container holding), 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.

Returns:

The new value of the global hold count.

Examples:

See PtClearWidget().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtContainerHold(), PtContainerRelease(), PtHold(), PtRelease()


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