Lines Matching full:frame
184 static void constrainFrameToRatioOfFrame(NSRect *frameToConstrain, const NSRect *frame)
187 double originalRatio = frame->size.width / frame->size.height;
202 static NSWindow *createBackgroundFullscreenWindow(NSRect frame, int level)
204 NSWindow *window = [[NSWindow alloc] initWithContentRect:frame styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
229 NSRect frame = [self mediaElementRect];
230 NSRect endFrame = [screen frame];
231 constrainFrameToRatioOfFrame(&endFrame, &frame);
235 _backgroundFullscreenWindow = createBackgroundFullscreenWindow([screen frame], [[self window] level]-1);
237 [_backgroundFullscreenWindow setFrame:[screen frame] display:NO];
242 frame = NSZeroRect;
244 [[self fullscreenWindow] animateFromRect:frame toRect:endFrame withSubAnimation:_fadeAnimation controllerAction:@selector(windowDidEnterFullscreen)];
269 [[self fullscreenWindow] animateFromRect:[[self window] frame] toRect:endFrame withSubAnimation:_fadeAnimation controllerAction:@selector(windowDidExitFullscreen)];
365 // This function will animate a change of frame rectangle