Class DrawContext : clipPushRect Method
void clipPushRect( Rect rc ) |
Summary
Set a clipping rectangle
Remarks
You must "pop" a clipping rectangle you "pushed" otherwise DigiGuide drawing will not work correctly.
Parameters
Parameter | Description |
Rect rc |
The rectangle you wish to clip to |
|
|
|
Examples
Constrain the text drawn to the rectangle for the column;c.onDraw = function ( dc, rc, textColour, programme ) { dc.clipPushRect( rc ); dc.drawText( rc.left, rc.top, "really really long text", textColour ); dc.clipPop(); }
|
Requirements
build 1065
|