mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-20 01:13:29 +00:00
CGContextIsPathEmpty for non-canvas based platforms.
Unfortunately there doesn't seem to be a way to get the current path from a canvas context so this function only works in VML mode for now.
This commit is contained in:
@@ -321,6 +321,16 @@ function CGContextClosePath(aContext)
|
||||
CGPathCloseSubpath(aContext.path);
|
||||
}
|
||||
|
||||
/*!
|
||||
Return YES if the current path in the given context is empty.
|
||||
@param aContext the CGContext to examine
|
||||
@return BOOL
|
||||
*/
|
||||
function CGContextIsPathEmpty(aContext)
|
||||
{
|
||||
return (!aContext.path || CGPathIsEmpty(aContext.path));
|
||||
}
|
||||
|
||||
/*!
|
||||
Moves the current location of aContext to the given x and y coordinates
|
||||
@param aContext the CGContext to move
|
||||
|
||||
Reference in New Issue
Block a user