From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/DWBubbleMenuButton/Source/DWBubbleMenuButton.h | 68 ++++++++++++++++++++++++++++++++++ 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/DWBubbleMenuButton/Source/DWBubbleMenuButton.h b/screendisplay/Pods/DWBubbleMenuButton/Source/DWBubbleMenuButton.h new file mode 100755 index 0000000..2c232df --- /dev/null +++ b/screendisplay/Pods/DWBubbleMenuButton/Source/DWBubbleMenuButton.h @@ -0,0 +1,68 @@ +// +// DWBubbleMenuButton.h +// DWBubbleMenuButtonExample +// +// Created by Derrick Walker on 10/8/14. +// Copyright (c) 2014 Derrick Walker. All rights reserved. +// + +#import <UIKit/UIKit.h> + +typedef NS_ENUM(NSUInteger, ExpansionDirection) { + DirectionLeft = 0, + DirectionRight, + DirectionUp, + DirectionDown +}; + + +@class DWBubbleMenuButton; + +@protocol DWBubbleMenuViewDelegate <NSObject> + +@optional +- (void)bubbleMenuButtonWillExpand:(DWBubbleMenuButton *)expandableView; +- (void)bubbleMenuButtonDidExpand:(DWBubbleMenuButton *)expandableView; +- (void)bubbleMenuButtonWillCollapse:(DWBubbleMenuButton *)expandableView; +- (void)bubbleMenuButtonDidCollapse:(DWBubbleMenuButton *)expandableView; + +@end + +@interface DWBubbleMenuButton : UIView <UIGestureRecognizerDelegate> + +@property (nonatomic, weak, readonly) NSArray *buttons; +@property (nonatomic, strong) UIView *homeButtonView; +@property (nonatomic, readonly) BOOL isCollapsed; +@property (nonatomic, weak) id <DWBubbleMenuViewDelegate> delegate; + +// The direction in which the menu expands +@property (nonatomic) enum ExpansionDirection direction; + +// Indicates whether the home button will animate it's touch highlighting, this is enabled by default +@property (nonatomic) BOOL animatedHighlighting; + +// Indicates whether menu should collapse after a button selection, this is enabled by default +@property (nonatomic) BOOL collapseAfterSelection; + +// The duration of the expand/collapse animation +@property (nonatomic) float animationDuration; + +// The default alpha of the homeButtonView when not tapped +@property (nonatomic) float standbyAlpha; + +// The highlighted alpha of the homeButtonView when tapped +@property (nonatomic) float highlightAlpha; + +// The spacing between menu buttons when expanded +@property (nonatomic) float buttonSpacing; + +// Initializers +- (id)initWithFrame:(CGRect)frame expansionDirection:(ExpansionDirection)direction; + +// Public Methods +- (void)addButtons:(NSArray *)buttons; +- (void)addButton:(UIButton *)button; +- (void)showButtons; +- (void)dismissButtons; + +@end -- Gitblit v1.8.0