Skip to content
Newer
Older
100644 51 lines (41 sloc) 1.85 KB
906f412 @uliwitness Added ULIZoomEffect code that implements a crude version of the "zoom…
authored
1 //
2 // NSWindow+ULIZoomEffect.h
3 // Stacksmith
4 //
5 // Created by Uli Kusterer on 05.03.11.
6 // Copyright 2011 Uli Kusterer. All rights reserved.
7 //
31810b6 @uliwitness Added license, removed ifdefed-out code.
authored
8 // This software is provided 'as-is', without any express or implied
9 // warranty. In no event will the authors be held liable for any damages
10 // arising from the use of this software.
11 //
12 // Permission is granted to anyone to use this software for any purpose,
13 // including commercial applications, and to alter it and redistribute it
14 // freely, subject to the following restrictions:
15 //
16 // 1. The origin of this software must not be misrepresented; you must not
17 // claim that you wrote the original software. If you use this software
18 // in a product, an acknowledgment in the product documentation would be
19 // appreciated but is not required.
20 //
21 // 2. Altered source versions must be plainly marked as such, and must not be
22 // misrepresented as being the original software.
23 //
24 // 3. This notice may not be removed or altered from any source
25 // distribution.
26 //
27
28 /*
29 This category implements a transition effect where a small thumbnail of the
30 window flies from the given rectangle to where the window is then shown,
9e020b0 @uliwitness More comments, better 10.6- compatibility code.
authored
31 like when opening a folder window in Finder, plus a reverse variant for
32 ordering out a window.
33
34 It also implements another effect where the window just "pops", i.e. seems to
35 grow larger for a moment, like the highlight when you use the "Find" command.
31810b6 @uliwitness Added license, removed ifdefed-out code.
authored
36 */
906f412 @uliwitness Added ULIZoomEffect code that implements a crude version of the "zoom…
authored
37
38 #import <AppKit/AppKit.h>
39
40
41 @interface NSWindow (ULIZoomEffect)
42
9e020b0 @uliwitness More comments, better 10.6- compatibility code.
authored
43 -(void) makeKeyAndOrderFrontWithPopEffect; // Grab user's attention.
9d1dcba @uliwitness Added a "pop" effect to e.g. animate when a window is brought to fron…
authored
44
9e020b0 @uliwitness More comments, better 10.6- compatibility code.
authored
45 -(void) makeKeyAndOrderFrontWithZoomEffectFromRect: (NSRect)globalStartPoint; // Open window related to that rectangle.
906f412 @uliwitness Added ULIZoomEffect code that implements a crude version of the "zoom…
authored
46 -(void) orderFrontWithZoomEffectFromRect: (NSRect)globalStartPoint;
9d1dcba @uliwitness Added a "pop" effect to e.g. animate when a window is brought to fron…
authored
47
9e020b0 @uliwitness More comments, better 10.6- compatibility code.
authored
48 -(void) orderOutWithZoomEffectToRect: (NSRect)globalEndPoint; // Reverse of -orderFrontWithZoomEffectFromRect:
906f412 @uliwitness Added ULIZoomEffect code that implements a crude version of the "zoom…
authored
49
50 @end
Something went wrong with that request. Please try again.