mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-21 05:44:54 +00:00
68 lines
2.3 KiB
C
68 lines
2.3 KiB
C
![]() |
//
|
||
|
// WEPopoverController.h
|
||
|
// WEPopover
|
||
|
//
|
||
|
// Created by Werner Altewischer on 02/09/10.
|
||
|
// Copyright 2010 Werner IT Consultancy. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.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;
|
||
|
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, 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;
|
||
|
|
||
|
@end
|