Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsurfacehit.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsurfacehit.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsurfacehit.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsurfacehit.html on line 8

PtSurfaceHit()

Find the control surface hit by a given point

Synopsis:

PtSurface_t *PtSurfaceHit(
                PtWidget_t *widget,
                PhPoint_t const *point,
                unsigned long event_mask,
                PtSurface_t const *surface );

Library:

ph

Description:

PtSurfaceHit() finds the control surface, belonging to the given widget, at the coordinates pointed to by point.

The event_mask specifies the event types to which the control surface must be sensitive. A value of 0 means any event types.

The surface argument, if not NULL is the control surface to test first.

Returns:

A pointer to the control surface hit by the given point, or NULL if there isn't one or an error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhPoint_t, PtSurfaceCalcBoundingBox(), PtSurfaceRect(), PtSurfaceTestPoint()

Control Surfaces chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsurfacehit.html on line 105

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsurfacehit.html on line 105