PtCheckSurfaces()

Match an event with the control surfaces belonging to a widget

Synopsis:

int PtCheckSurfaces( PtWidget_t *widget,
                     PhPoint_t *point,
                     PhEvent_t *event );

Library:

ph

Description:

This function matches the given event with the control surfaces belonging to widget. If the event corresponds to a control surface, the surface's action is invoked.

PtCheckSurfaces() is usually called only from PtEventHandler(), although you can call it with a fake event if you need to.

Returns:

Pt_CONTINUE
The event wasn't processed by a control surface.
Pt_END
The event was processed by a control surface.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhEvent_t, PtEventHandler(), PhPoint_t

Control Surfaces chapter of the Photon Programmer's Guide