mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-21 05:44:54 +00:00
75 lines
2.5 KiB
Objective-C
Executable file
75 lines
2.5 KiB
Objective-C
Executable file
//
|
|
// WEPopoverController.h
|
|
// WEPopover
|
|
//
|
|
// Created by Werner Altewischer on 02/09/10.
|
|
// Copyright 2010 Werner IT Consultancy. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import "WEPopoverContainerView.h"
|
|
#import "WETouchableView.h"
|
|
|
|
@class WEPopoverController;
|
|
|
|
@protocol WEPopoverControllerDelegate<NSObject>
|
|
|
|
- (void)popoverControllerDidDismissPopover:(WEPopoverController *)popoverController;
|
|
- (BOOL)popoverControllerShouldDismissPopover:(WEPopoverController *)popoverController;
|
|
|
|
@end
|
|
|
|
/**
|
|
* @brief Popover controller for the iPhone, mimicing the iPad UIPopoverController interface. See that class for more details.
|
|
*/
|
|
@interface WEPopoverController : NSObject<WETouchableViewDelegate> {
|
|
UIViewController *contentViewController;
|
|
UIView *view;
|
|
UIView *parentView;
|
|
WETouchableView *backgroundView;
|
|
|
|
BOOL popoverVisible;
|
|
UIPopoverArrowDirection popoverArrowDirection;
|
|
id <WEPopoverControllerDelegate> delegate;
|
|
CGSize popoverContentSize;
|
|
WEPopoverContainerViewProperties *containerViewProperties;
|
|
id <NSObject> context;
|
|
NSArray *passthroughViews;
|
|
}
|
|
|
|
@property(nonatomic, retain) UIViewController *contentViewController;
|
|
|
|
@property (nonatomic, readonly) UIView *view;
|
|
@property (nonatomic, readonly, getter=isPopoverVisible) BOOL popoverVisible;
|
|
@property (nonatomic, readonly) UIPopoverArrowDirection popoverArrowDirection;
|
|
@property (nonatomic, assign) id <WEPopoverControllerDelegate> delegate;
|
|
@property (nonatomic, assign) CGSize popoverContentSize;
|
|
@property (nonatomic, retain) WEPopoverContainerViewProperties *containerViewProperties;
|
|
@property (nonatomic, retain) id <NSObject> context;
|
|
@property (nonatomic, assign) UIView *parentView;
|
|
@property (nonatomic, copy) NSArray *passthroughViews;
|
|
|
|
- (id)initWithContentViewController:(UIViewController *)theContentViewController;
|
|
|
|
- (void)dismissPopoverAnimated:(BOOL)animated;
|
|
|
|
- (void)presentPopoverFromBarButtonItem:(UIBarButtonItem *)item
|
|
permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections
|
|
animated:(BOOL)animated;
|
|
|
|
- (void)presentPopoverFromRect:(CGRect)rect
|
|
inView:(UIView *)view
|
|
permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections
|
|
animated:(BOOL)animated;
|
|
|
|
- (void)repositionPopoverFromRect:(CGRect)rect
|
|
inView:(UIView *)view
|
|
permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections;
|
|
|
|
- (void)repositionPopoverFromRect:(CGRect)rect
|
|
inView:(UIView *)view
|
|
permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections
|
|
animated:(BOOL)animated;
|
|
|
|
@end
|