bool clipToRectangleList (const RectangleList& clipRegion)
 {
     currentState->clipToRectList (rectListToPathGeometry (clipRegion));
     return ! isClipEmpty();
 }
bool Direct2DLowLevelGraphicsContext::clipToRectangleList (const RectangleList& clipRegion)
{
    renderingTarget->SetTransform (D2D1::IdentityMatrix());
    currentState->clipToRectList (rectListToPathGeometry (clipRegion));
    return ! isClipEmpty();
}
 bool clipToRectangle (const Rectangle<int>& r)
 {
     currentState->clipToRectangle (r);
     return ! isClipEmpty();
 }
bool Direct2DLowLevelGraphicsContext::clipToRectangle (const Rectangle<int>& r)
{
    renderingTarget->SetTransform (D2D1::IdentityMatrix());
    currentState->clipToRectangle (r);
    return ! isClipEmpty();
}