mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
58 lines
1.9 KiB
Objective-C
58 lines
1.9 KiB
Objective-C
#import <LegacyComponents/TGMenuSheetItemView.h>
|
|
|
|
#import <LegacyComponents/LegacyComponentsContext.h>
|
|
|
|
@interface TGMenuSheetScrollView : UIScrollView
|
|
|
|
@end
|
|
|
|
@class TGMenuSheetPallete;
|
|
|
|
@interface TGMenuSheetView : UIView
|
|
|
|
@property (nonatomic, readonly) NSArray *itemViews;
|
|
|
|
@property (nonatomic, readonly) UIEdgeInsets edgeInsets;
|
|
@property (nonatomic, readonly) CGFloat interSectionSpacing;
|
|
|
|
@property (nonatomic, assign) CGFloat menuWidth;
|
|
@property (nonatomic, readonly) CGFloat menuHeight;
|
|
@property (nonatomic, readonly) CGSize menuSize;
|
|
@property (nonatomic, assign) CGFloat maxHeight;
|
|
@property (nonatomic, assign) UIEdgeInsets safeAreaInset;
|
|
|
|
@property (nonatomic, assign) CGFloat keyboardOffset;
|
|
@property (nonatomic, assign) bool narrowInLandscape;
|
|
|
|
@property (nonatomic, readonly) NSValue *mainFrame;
|
|
@property (nonatomic, readonly) NSValue *headerFrame;
|
|
@property (nonatomic, readonly) NSValue *footerFrame;
|
|
|
|
@property (nonatomic, copy) bool (^tapDismissalAllowed)(void);
|
|
|
|
@property (nonatomic, copy) void (^menuRelayout)(void);
|
|
|
|
@property (nonatomic, copy) void (^handleInternalPan)(UIPanGestureRecognizer *);
|
|
|
|
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context pallete:(TGMenuSheetPallete *)pallete itemViews:(NSArray *)itemViews sizeClass:(UIUserInterfaceSizeClass)sizeClass dark:(bool)dark borderless:(bool)borderless;
|
|
|
|
- (void)setItemViews:(NSArray *)itemViews animated:(bool)animated;
|
|
|
|
- (void)menuWillAppearAnimated:(bool)animated;
|
|
- (void)menuDidAppearAnimated:(bool)animated;
|
|
- (void)menuWillDisappearAnimated:(bool)animated;
|
|
- (void)menuDidDisappearAnimated:(bool)animated;
|
|
|
|
- (void)updateTraitsWithSizeClass:(UIUserInterfaceSizeClass)sizeClass;
|
|
|
|
- (CGRect)activePanRect;
|
|
- (bool)passPanOffset:(CGFloat)offset;
|
|
|
|
- (void)didChangeAbsoluteFrame;
|
|
|
|
@end
|
|
|
|
extern const UIEdgeInsets TGMenuSheetPhoneEdgeInsets;
|
|
extern const CGFloat TGMenuSheetCornerRadius;
|
|
extern const bool TGMenuSheetUseEffectView;
|