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.
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
7 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "OWSBubbleView.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class OWSBubbleView;
|
||
|
|
||
7 years ago
|
// While rendering message bubbles, we often need to render
|
||
|
// into a subregion of the bubble that reflects the intersection
|
||
|
// of some subview (e.g. a media view) and the bubble shape
|
||
|
// (including its rounding).
|
||
|
//
|
||
|
// This view serves three different roles:
|
||
|
//
|
||
|
// * Drawing: Filling and/or stroking a subregion of the bubble shape.
|
||
|
// * Shadows: Casting a shadow over a subregion of the bubble shape.
|
||
|
// * Clipping: Clipping subviews to subregion of the bubble shape.
|
||
7 years ago
|
@interface OWSBubbleShapeView : UIView <OWSBubbleViewPartner>
|
||
|
|
||
|
@property (nonatomic, nullable) UIColor *fillColor;
|
||
|
@property (nonatomic, nullable) UIColor *strokeColor;
|
||
|
@property (nonatomic) CGFloat strokeThickness;
|
||
|
|
||
7 years ago
|
@property (nonatomic, nullable) UIColor *innerShadowColor;
|
||
|
@property (nonatomic) CGFloat innerShadowRadius;
|
||
|
@property (nonatomic) float innerShadowOpacity;
|
||
|
|
||
7 years ago
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
7 years ago
|
- (instancetype)initDraw NS_DESIGNATED_INITIALIZER;
|
||
|
- (instancetype)initShadow NS_DESIGNATED_INITIALIZER;
|
||
|
- (instancetype)initClip NS_DESIGNATED_INITIALIZER;
|
||
|
- (instancetype)initInnerShadowWithColor:(UIColor *)color
|
||
|
radius:(CGFloat)radius
|
||
|
opacity:(float)opacity NS_DESIGNATED_INITIALIZER;
|
||
7 years ago
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|