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/ptclipadd.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/ptclipadd.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/ptclipadd.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/ptclipadd.html on line 8
Add a clipping rectangle to the stack
int PtClipAdd( PtWidget_t *widget,
PhRect_t *rect );
This function adds a clipping rectangle to the clipping stack. The
rectangle added to the clipping stack is the intersection of the last
rectangle on the stack and the rectangle defined in the
PhRect_t
pointed to by rect.
Prior to entering a widget's Draw method, the canvas rectangle
derived from the PtBasic-class level is pushed onto the
clipping stack. This prevents any children from drawing beyond the
canvas of the parent container.
A widget can, however, draw beyond its own canvas or extent unless
additional clipping is performed.
PtAttemptResize()
and
PtResizeCanvas()
set the Pt_UCLIP bit of a widget's resize
flags if the widget requires additional clipping (to prevent it from
drawing beyond its own canvas).
The current level of stack clipping.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PhRect_t,
PtCalcCanvas(),
PtClipRemove()
PtAttemptResize(),
PtResizeCanvas()
in Building Custom Widgets
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/ptclipadd.html on line 106
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/ptclipadd.html on line 106