OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE.md file. | |
4 | |
5 #import <UIKit/UIKit.h> | |
6 | |
7 #import "Immi.h" | |
8 | |
9 #import "ViewPresenter.h" | |
10 | |
11 @interface DrawerPresenter : NSObject <DrawerPresenter> | |
12 | |
13 typedef id<ViewPresenter, NodePresenter> DynamicPresenter; | |
14 | |
15 @property DynamicPresenter centerPresenter; | |
16 @property DynamicPresenter leftPresenter; | |
17 @property DynamicPresenter rightPresenter; | |
18 | |
19 @property bool leftVisible; | |
20 @property bool rightVisible; | |
21 | |
22 - (id)initWithCenterPresenter:(DynamicPresenter)centerPresenter | |
23 leftPresenter:(DynamicPresenter)leftPresenter | |
24 rightPresenter:(DynamicPresenter)rightPresenter | |
25 NS_DESIGNATED_INITIALIZER; | |
26 | |
27 - (id)initWithCenterPresenter:(DynamicPresenter)centerPresenter; | |
28 | |
29 - (id)initWithCenterPresenter:(DynamicPresenter)centerPresenter | |
30 leftPresenter:(DynamicPresenter)leftPresenter; | |
31 | |
32 - (id)initWithCenterPresenter:(DynamicPresenter)centerPresenter | |
33 rightPresenter:(DynamicPresenter)rightPresenter; | |
34 | |
35 - (void)toggleLeft; | |
36 - (void)toggleRight; | |
37 | |
38 - (void)addDrawerButtons:(UIViewController*)controller; | |
39 - (void)addDrawerButtons:(UIViewController*)controller | |
40 leftTitle:(NSString*)leftTitle; | |
41 - (void)addDrawerButtons:(UIViewController*)controller | |
42 rightTitle:(NSString*)rightTitle; | |
43 - (void)addDrawerButtons:(UIViewController*)controller | |
44 leftTitle:(NSString*)leftTitle | |
45 rightTitle:(NSString*)rightTitle; | |
46 | |
47 @end | |
OLD | NEW |