forked from core-plot/core-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCPTConstraints.h
More file actions
34 lines (27 loc) · 967 Bytes
/
CPTConstraints.h
File metadata and controls
34 lines (27 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@interface CPTConstraints : NSObject<NSCopying, NSCoding, NSSecureCoding>
/// @name Factory Methods
/// @{
+(nonnull instancetype)constraintWithLowerOffset:(CGFloat)newOffset;
+(nonnull instancetype)constraintWithUpperOffset:(CGFloat)newOffset;
+(nonnull instancetype)constraintWithRelativeOffset:(CGFloat)newOffset;
/// @}
/// @name Initialization
/// @{
-(nonnull instancetype)initWithLowerOffset:(CGFloat)newOffset;
-(nonnull instancetype)initWithUpperOffset:(CGFloat)newOffset;
-(nonnull instancetype)initWithRelativeOffset:(CGFloat)newOffset;
/// @}
@end
/** @category CPTConstraints(AbstractMethods)
* @brief CPTConstraints abstract methods—must be overridden by subclasses
**/
@interface CPTConstraints(AbstractMethods)
/// @name Comparison
/// @{
-(BOOL)isEqualToConstraint:(nullable CPTConstraints *)otherConstraint;
/// @}
/// @name Position
/// @{
-(CGFloat)positionForLowerBound:(CGFloat)lowerBound upperBound:(CGFloat)upperBound;
/// @}
@end