mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:50:38 +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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue