mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Additional stubs for NSAnimationContext.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39051 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8e8a1af817
commit
20997976b9
3 changed files with 44 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-10-10 Gregory Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSAnimationContext.h
|
||||
* Source/NSAnimationContext.m: Additional stub methods for
|
||||
NSAnimationContext.
|
||||
|
||||
2015-10-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/nsimage-tiff.h: Correct field types.
|
||||
|
|
|
@ -32,9 +32,15 @@
|
|||
#import <Foundation/NSObject.h>
|
||||
#import <Foundation/NSDate.h>
|
||||
|
||||
@class NSAnimationContext;
|
||||
|
||||
DEFINE_BLOCK_TYPE_NO_ARGS(GSAnimationContextCompletionHandler, void);
|
||||
DEFINE_BLOCK_TYPE(GSAnimationContextChanges, void, NSAnimationContext*);
|
||||
|
||||
@interface NSAnimationContext : NSObject
|
||||
{
|
||||
NSTimeInterval _duration;
|
||||
GSAnimationContextCompletionHandler _completionHandler;
|
||||
}
|
||||
|
||||
// Begin and end grouping
|
||||
|
@ -44,9 +50,16 @@
|
|||
// Retrieve current context
|
||||
+ (NSAnimationContext *)currentContext;
|
||||
|
||||
// run
|
||||
+ (void)runAnimationGroup: (GSAnimationContextChanges)changes
|
||||
completionHandler: (GSAnimationContextCompletionHandler)completionHandler;
|
||||
|
||||
// Properties...
|
||||
- (void) setDuration: (NSTimeInterval)duration;
|
||||
- (NSTimeInterval) duration;
|
||||
|
||||
- (GSAnimationContextCompletionHandler) completionHandler;
|
||||
- (void) setCompletiionHandler: (GSAnimationContextCompletionHandler) completionHandler;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -46,6 +46,12 @@ static NSAnimationContext *_currentContext = nil;
|
|||
return _currentContext;
|
||||
}
|
||||
|
||||
// run
|
||||
+ (void)runAnimationGroup: (GSAnimationContextChanges)changes
|
||||
completionHandler: (GSAnimationContextCompletionHandler)completionHandler
|
||||
{
|
||||
}
|
||||
|
||||
// Properties...
|
||||
- (void) setDuration: (NSTimeInterval)duration
|
||||
{
|
||||
|
@ -57,5 +63,24 @@ static NSAnimationContext *_currentContext = nil;
|
|||
return _duration;
|
||||
}
|
||||
|
||||
- (GSAnimationContextCompletionHandler) completionHandler
|
||||
{
|
||||
return _completionHandler;
|
||||
}
|
||||
|
||||
- (void) setCompletiionHandler: (GSAnimationContextCompletionHandler) completionHandler
|
||||
{
|
||||
_completionHandler = completionHandler;
|
||||
}
|
||||
|
||||
- (void *) timingFunction
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- (void) setTimingFunction: (void *)timingFunction
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue