1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGEditingScrollView.h
2014-07-10 18:11:09 +04:00

39 lines
983 B
Objective-C

/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import <UIKit/UIKit.h>
@class TGEditingScrollView;
@protocol TGEditingScrollViewDelegate <NSObject>
@required
- (void)editingScrollViewOptionsOffsetChanged:(TGEditingScrollView *)editingScrollView;
@optional
- (void)editingScrollViewWillRevealOptions:(TGEditingScrollView *)editingScrollView;
- (void)editingScrollViewDidHideOptions:(TGEditingScrollView *)editingScrollView;
@end
@interface TGEditingScrollView : UIScrollView
@property (nonatomic, weak) id<TGEditingScrollViewDelegate> editingDelegate;
@property (nonatomic) bool optionsAreRevealed;
@property (nonatomic) bool lockScroll;
@property (nonatomic) bool disableScroll;
- (void)setOptionsAreRevealed:(bool)optionsAreRevealed animated:(bool)animated;
- (CGFloat)optionsWidth;
@end