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 );
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. |
QNX Graphics Framework
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |