Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MWMActionBarButton.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b03175c775939d46b8f42d28e38b3767a9f079ab (plain)
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
enum class EButton  // Required button's order
{
  Api,
  Booking,
  Call,
  Bookmark,
  RouteFrom,
  RouteTo,
  Share,
  More,
  Spacer
};

NSString * titleForButton(EButton type, BOOL isSelected);

@class MWMActionBarButton;

@protocol MWMActionBarButtonDelegate <NSObject>

- (void)tapOnButtonWithType:(EButton)type;

@end

@interface MWMActionBarButton : UIView

- (void)configButtonWithDelegate:(id<MWMActionBarButtonDelegate>)delegate type:(EButton)type isSelected:(BOOL)isSelected;

+ (void)addButtonToSuperview:(UIView *)view
                    delegate:(id<MWMActionBarButtonDelegate>)delegate
                  buttonType:(EButton)type
                  isSelected:(BOOL)isSelected;

@end