-
Notifications
You must be signed in to change notification settings - Fork 1
/
SGCarouselViewController.h
44 lines (34 loc) · 1.27 KB
/
SGCarouselViewController.h
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
40
41
42
43
44
//
// SGCarouselViewController.h
// SongGong
//
// Created by Arshad Tayyeb on 7/16/11.
// Copyright 2011 doubleTwist Corporation. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SGGestureController.h"
#import "SGCarouselProtocols.h"
@class SGGestureController;
@protocol SGGestureControllerDelegate, SGCarouselItemViewController;
@class iCarousel;
@interface SGCarouselViewController : UIViewController <SGGestureControllerDelegate>
{
id <SGCarouselItem> currentCarouselSource;
NSArray *carouselSourceViewControllers; //SGCarouselItemViewController
iCarousel *carousel;
NSInteger currentCarouselItemIndex;
BOOL wrap;
}
@property (nonatomic, retain) SGGestureController *gestureController;
#pragma mark SGBlindGestureViewControllerDelegate
- (void)nextItem:(id)sender; //swipe right
- (void)prevItem:(id)sender; //swipe left
- (void)nextPlaylist:(id)sender; //2 finger swipe down
- (void)prevPlaylist:(id)sender; //2 finger swipe up
- (void)nextSource:(id)sender; //2 finger swipe right
- (void)prevSource:(id)sender; //2 finger swipe left
- (void)playPauseToggle:(id)sender; //single tap
- (void)showNavigator:(id)sender; //2 finger tap
- (void)showDetail:(id)sender; //TBD
- (void)showSpecialAction:(id)sender; //3 finger double tap
@end