1/*
2   NSAnimationContext.h
3
4   Created by Gregory John Casamento on Wed Jun 10 2015.
5   Copyright (c) 2015 Free Software Foundation, Inc.
6
7   Author: Gregory Casamento <greg.casamento@gmail.com>
8
9   This file is part of the GNUstep GUI Library.
10
11   This library is free software; you can redistribute it and/or
12   modify it under the terms of the GNU Lesser General Public
13   License as published by the Free Software Foundation; either
14   version 2 of the License, or (at your option) any later version.
15
16   This library is distributed in the hope that it will be useful,
17   but WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
19   Lesser General Public License for more details.
20
21   You should have received a copy of the GNU Lesser General Public
22   License along with this library; see the file COPYING.LIB.
23   If not, see <http://www.gnu.org/licenses/> or write to the
24   Free Software Foundation, 51 Franklin Street, Fifth Floor,
25   Boston, MA 02110-1301, USA.
26 */
27
28#import <AppKit/NSAnimationContext.h>
29
30static NSAnimationContext *_currentContext = nil;
31
32@implementation NSAnimationContext : NSObject
33
34// Begin and end grouping
35+ (void) beginGrouping
36{
37}
38
39+ (void) endGrouping
40{
41}
42
43// Retrieve current context
44+ (NSAnimationContext *)currentContext
45{
46  return _currentContext;
47}
48
49// run
50+ (void)runAnimationGroup: (GSAnimationContextChanges)changes
51        completionHandler: (GSAnimationContextCompletionHandler)completionHandler
52{
53}
54
55// Properties...
56- (void) setDuration: (NSTimeInterval)duration
57{
58  _duration = duration;
59}
60
61- (NSTimeInterval) duration
62{
63  return _duration;
64}
65
66- (GSAnimationContextCompletionHandler) completionHandler
67{
68  return _completionHandler;
69}
70
71- (void) setCompletionHandler: (GSAnimationContextCompletionHandler) completionHandler
72{
73  _completionHandler = completionHandler;
74}
75
76- (void *) timingFunction
77{
78  return NULL;
79}
80
81- (void) setTimingFunction: (void *)timingFunction
82{
83}
84
85@end
86
87