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/gf/dev_guide/api/gf_context_set_clipping.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/gf/dev_guide/api/gf_context_set_clipping.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/gf/dev_guide/api/gf_context_set_clipping.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/gf/dev_guide/api/gf_context_set_clipping.html on line 8
Replace the clipping rectangle
#include <gf/gf.h>
int gf_context_set_clipping( gf_context_t context,
int x1,
int y1,
int x2,
int y2 );
- context
- The draw context to set the clipping for.
- x1, y1, x2, y2
- The coordinates of the upper-left corner (x1,y1) and lower-right corner (x2,y2) of the clipping rectangle.
gf
This function replaces the clipping region for the specified draw context. Subsequent draw commands are clipped to this region, meaning any part of the command that extends beyond the boundaries of the clipping rectangle doesn't appear on the display.
|
Clipping rectangles in the QNX Graphics Framework are inclusive. That is, draw operations are clipped to the area within the clipping rectangle, including the values that define the rectangle. |
- GF_ERR_OK
- Success.
- GF_ERR_PARM
- Invalid clip rectangle.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_context_disable_clipping()
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/gf/dev_guide/api/gf_context_set_clipping.html on line 129
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/gf/dev_guide/api/gf_context_set_clipping.html on line 129