Home | History | Annotate | Download | only in mac

Lines Matching refs:rect

66 - (void)drawSingleRect:(NSRect)rect;
300 NSImage* Frame::imageFromRect(NSRect rect) const
315 // Round image rect size in window coordinate space to avoid pixel cracks at HiDPI (4622794)
316 rect = [view convertRect:rect toView:nil];
317 rect.size.height = roundf(rect.size.height);
318 rect.size.width = roundf(rect.size.width);
319 rect = [view convertRect:rect fromView:nil];
321 NSImage* resultImage = [[[NSImage alloc] initWithSize:rect.size] autorelease];
323 if (rect.size.width != 0 && rect.size.height != 0) {
328 CGContextTranslateCTM(context, bounds.origin.x - rect.origin.x, bounds.origin.y - rect.origin.y);
333 [view drawSingleRect:rect];