22 OF_ASSUME_NONNULL_BEGIN
33 @property (readonly, nonatomic)
const char *
objCType;
99 + (instancetype)valueWithBytes: (const
void *)bytes
100 objCType: (const
char *)objCType;
110 + (instancetype)valueWithPointer: (const
void *)pointer;
122 + (instancetype)valueWithNonretainedObject: (
id)object;
130 + (instancetype)valueWithRange: (
OFRange)range;
138 + (instancetype)valueWithPoint: (
OFPoint)point;
146 + (instancetype)valueWithSize: (
OFSize)size;
155 + (instancetype)valueWithRect: (
OFRect)rect;
164 + (instancetype)valueWithVector3D: (
OFVector3D)vector3D;
173 + (instancetype)valueWithVector4D: (
OFVector4D)vector4D;
183 - (instancetype)initWithBytes: (const
void *)bytes
184 objCType: (const
char *)objCType OF_DESIGNATED_INITIALIZER;
186 - (instancetype)
init OF_UNAVAILABLE;
195 - (void)getValue: (
void *)value size: (
size_t)size;
198 OF_ASSUME_NONNULL_END
200 #if !defined(NSINTEGER_DEFINED) && !__has_feature(modules) 202 @compatibility_alias NSValue
OFValue;
OFRect rectValue
The value as an OFRect.
Definition: OFValue.h:75
OFSize sizeValue
The value as an OFSize.
Definition: OFValue.h:68
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
OFRange rangeValue
The value as an OFRange.
Definition: OFValue.h:54
OFVector4D vector4DValue
The value as an OFVector4D.
Definition: OFValue.h:89
void * pointerValue
The value as a pointer to void.
Definition: OFValue.h:40
A rectangle.
Definition: OFObject.h:253
const char * objCType
The ObjC type encoding of the value.
Definition: OFValue.h:33
id nonretainedObjectValue
The value as a non-retained object.
Definition: OFValue.h:47
instancetype init()
Initializes an already allocated object.
Definition: OFObject.m:696
OFVector3D vector3DValue
The value as an OFVector3D.
Definition: OFValue.h:82
A size.
Definition: OFObject.h:207
A protocol for the creation of copies.
Definition: OFObject.h:1350
A class for storing arbitrary values in an object.
Definition: OFValue.h:29
A vector in 3D space.
Definition: OFObject.h:304
A range.
Definition: OFObject.h:110
A vector in 4D space.
Definition: OFObject.h:356
OFPoint pointValue
The value as an OFPoint.
Definition: OFValue.h:61
A point in 2D space.
Definition: OFObject.h:161