mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
7 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class ConversationViewItem;
|
||
|
|
||
|
typedef NS_ENUM(NSUInteger, OWSMessageGestureLocation) {
|
||
|
// Message text, etc.
|
||
|
OWSMessageGestureLocation_Default,
|
||
|
OWSMessageGestureLocation_OversizeText,
|
||
|
OWSMessageGestureLocation_Media,
|
||
|
OWSMessageGestureLocation_QuotedReply,
|
||
|
};
|
||
|
|
||
|
@interface OWSMessageBubbleView : UIView
|
||
|
|
||
|
@property (nonatomic, nullable) ConversationViewItem *viewItem;
|
||
|
|
||
|
@property (nonatomic) int contentWidth;
|
||
|
|
||
|
@property (nonatomic) NSCache *cellMediaCache;
|
||
|
|
||
|
@property (nonatomic, nullable, readonly) UIView *lastBodyMediaView;
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
|
||
|
|
||
|
- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
||
|
|
||
|
- (void)configureViews;
|
||
|
|
||
|
- (void)loadContent;
|
||
|
- (void)unloadContent;
|
||
|
|
||
|
- (CGSize)sizeForViewWidth:(int)viewWidth contentWidth:(int)contentWidth;
|
||
|
|
||
|
- (void)prepareForReuse;
|
||
|
|
||
|
- (OWSMessageGestureLocation)gestureLocationForLocation:(CGPoint)locationInMessageBubble;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|