ObjFW  Diff

Differences From Artifact [2be6441b1c]:

To Artifact [2987cd37b8]:


43
44
45
46
47
48
49
50

51
52

53
54
55
56
57

58
59

60
61
62
63
64

65
66

67
68

69
70
71
72
73
74
75
43
44
45
46
47
48
49

50
51

52
53
54
55
56

57
58

59
60
61
62
63

64
65

66
67

68
69
70
71
72
73
74
75







-
+

-
+




-
+

-
+




-
+

-
+

-
+







 * @brief The value as a non-retained object.
 *
 * If the value is not pointer-sized, @ref OFOutOfRangeException is thrown.
 */
@property (readonly, nonatomic) id nonretainedObjectValue;

/**
 * @brief The value as a range.
 * @brief The value as an OFRange.
 *
 * If the value is not range-sized, @ref OFOutOfRangeException is thrown.
 * If the value is not OFRange-sized, @ref OFOutOfRangeException is thrown.
 */
@property (readonly, nonatomic) OFRange rangeValue;

/**
 * @brief The value as a point.
 * @brief The value as an OFPoint.
 *
 * If the value is not point-sized, @ref OFOutOfRangeException is thrown.
 * If the value is not OFPoint-sized, @ref OFOutOfRangeException is thrown.
 */
@property (readonly, nonatomic) OFPoint pointValue;

/**
 * @brief The value as a dimension.
 * @brief The value as an OFSize.
 *
 * If the value is not dimension-sized, @ref OFOutOfRangeException is thrown.
 * If the value is not OFSize-sized, @ref OFOutOfRangeException is thrown.
 */
@property (readonly, nonatomic) of_dimension_t dimensionValue;
@property (readonly, nonatomic) OFSize sizeValue;

/**
 * @brief The value as a rectangle.
 *
 * If the value is not rectangle-sized, @ref OFOutOfRangeException is thrown.
 */
@property (readonly, nonatomic) of_rectangle_t rectangleValue;
120
121
122
123
124
125
126
127

128
129
130

131
132
133

134
135
136
137
138
139
140
120
121
122
123
124
125
126

127

128

129
130
131

132
133
134
135
136
137
138
139







-
+
-

-
+


-
+







 *
 * @param point The point the OFValue should contain
 * @return A new, autoreleased OFValue
 */
+ (instancetype)valueWithPoint: (OFPoint)point;

/**
 * @brief Creates a new, autoreleased OFValue containing the specified
 * @brief Creates a new, autoreleased OFValue containing the specified size.
 *	  dimension.
 *
 * @param dimension The dimension the OFValue should contain
 * @param size The size the OFValue should contain
 * @return A new, autoreleased OFValue
 */
+ (instancetype)valueWithDimension: (of_dimension_t)dimension;
+ (instancetype)valueWithSize: (OFSize)size;

/**
 * @brief Creates a new, autoreleased OFValue containing the specified
 *	  rectangle.
 *
 * @param rectangle The rectangle the OFValue should contain
 * @return A new, autoreleased OFValue