| Jabber Guest iOS SDK

- Main Page
- Modules
- Classes

All Classes Functions Variables Enumerations Enumerator Properties Groups
FPPopoverView.h
1 //
2 // FPPopoverView.h
3 //
4 // Created by Alvise Susmel on 1/4/12.
5 // Copyright (c) 2012 Fifty Pixels Ltd. All rights reserved.
6 //
7 // https://github.com/50pixels/FPPopover
8
9
10 #import <UIKit/UIKit.h>
11 #import <QuartzCore/QuartzCore.h>
12
13 typedef enum FPPopoverArrowDirection: NSUInteger {
14 FPPopoverArrowDirectionUp = 1UL << 0,
15 FPPopoverArrowDirectionDown = 1UL << 1,
16 FPPopoverArrowDirectionLeft = 1UL << 2,
17 FPPopoverArrowDirectionRight = 1UL << 3,
18 FPPopoverNoArrow = 1UL << 4,
19
20 FPPopoverArrowDirectionVertical = FPPopoverArrowDirectionUp | FPPopoverArrowDirectionDown | FPPopoverNoArrow,
21 FPPopoverArrowDirectionHorizontal = FPPopoverArrowDirectionLeft | FPPopoverArrowDirectionRight,
22
23 FPPopoverArrowDirectionAny = FPPopoverArrowDirectionUp | FPPopoverArrowDirectionDown |
24 FPPopoverArrowDirectionLeft | FPPopoverArrowDirectionRight
25
26 } FPPopoverArrowDirection;
27
28 #ifndef FPPopoverArrowDirectionIsVertical
29 #define FPPopoverArrowDirectionIsVertical(direction) ((direction) == FPPopoverArrowDirectionVertical || (direction) == FPPopoverArrowDirectionUp || (direction) == FPPopoverArrowDirectionDown || (direction) == FPPopoverNoArrow)
30 #endif
31
32 #ifndef FPPopoverArrowDirectionIsHorizontal
33 #define FPPopoverArrowDirectionIsHorizontal(direction) ((direction) == FPPopoverArrowDirectionHorizontal || (direction) == FPPopoverArrowDirectionLeft || (direction) == FPPopoverArrowDirectionRight)
34 #endif
35
36 typedef enum {
37 FPPopoverWhiteTint,
38 FPPopoverBlackTint,
39 FPPopoverLightGrayTint,
40 FPPopoverGreenTint,
41 FPPopoverRedTint,
42 FPPopoverDefaultTint = FPPopoverBlackTint
43 } FPPopoverTint;
44
45 @interface FPPopoverView : UIView
46
47 @property(nonatomic,strong) NSString *title;
48 @property(nonatomic,assign) CGPoint relativeOrigin;
49 @property(nonatomic,assign) FPPopoverTint tint;
50 @property(nonatomic,assign) BOOL draw3dBorder;
51 @property(nonatomic,assign) BOOL border; //default YES
52
53 -(void)setArrowDirection:(FPPopoverArrowDirection)arrowDirection;
54 -(FPPopoverArrowDirection)arrowDirection;
55
56 // cisco/pauldunn 2014 08 23
57 - (void)setAxOffset:(CGFloat)axOffset;
58 - (void)setAyOffset:(CGFloat)ayOffset;
59
60 -(void)addContentView:(UIView*)contentView;
61
62 @end