-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCCScrollNode.h
More file actions
39 lines (29 loc) · 880 Bytes
/
CCScrollNode.h
File metadata and controls
39 lines (29 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// CCScrollNode.h
//
// Created by Carter Appleton on 3/12/13.
// Copyright 2013 Carter Appleton.
//
// Anyone may use the following code, just
// keep this header in the file and cite use
// if it ends up in a project.
//
#import "cocos2d.h"
@class CCScrollNode;
@protocol CCScrollNodeDelegate <NSObject>
//UIScrollView moved
- (void) ccScrollNode:(CCScrollNode *)scrollNode didScrollWithOffset:(CGPoint)offset;
@end
@interface CCScrollNode : CCLayer <UIScrollViewDelegate>
//Delegate for the CCScrollNode
//
@property (nonatomic, assign) NSObject<CCScrollNodeDelegate>* delegate;
//Convenience method to create ScrollNode
//
+ (CCScrollNode *) nodeWithFrame:(CGRect)frame andContentSize:(CGSize)contentSize;
//UIScrollView methods
//
- (void) setFrame:(CGRect)frame;
- (void) setContentSize:(CGSize)contentSize;
- (void) setPagingEnabled:(BOOL)paging;
@end