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.
session-ios/Signal/src/ViewControllers/ConversationView/Cells/OWSBubbleView.h

51 lines
989 B
C

7 years ago
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import "OWSBubbleView.h"
7 years ago
NS_ASSUME_NONNULL_BEGIN
extern const CGFloat kOWSMessageCellCornerRadius;
extern const CGFloat kBubbleVRounding;
extern const CGFloat kBubbleHRounding;
extern const CGFloat kBubbleThornSideInset;
extern const CGFloat kBubbleThornVInset;
extern const CGFloat kBubbleTextHInset;
extern const CGFloat kBubbleTextVInset;
@class OWSBubbleView;
7 years ago
@protocol OWSBubbleViewPartner <NSObject>
- (void)updateLayers;
- (void)setBubbleView:(OWSBubbleView *)bubbleView;
@end
7 years ago
#pragma mark -
@interface OWSBubbleView : UIView
7 years ago
7 years ago
@property (nonatomic) BOOL isOutgoing;
@property (nonatomic) BOOL hideTail;
7 years ago
@property (nonatomic) BOOL isTruncated;
7 years ago
@property (nonatomic, nullable) UIColor *bubbleColor;
7 years ago
- (UIBezierPath *)maskPath;
#pragma mark - Coordination
- (void)addPartnerView:(id<OWSBubbleViewPartner>)view;
- (void)clearPartnerViews;
- (void)updatePartnerViews;
7 years ago
@end
NS_ASSUME_NONNULL_END