22OF_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;
200#if !defined(NSINTEGER_DEFINED) && !__has_feature(modules)
202@compatibility_alias NSValue
OFValue;
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
A class for storing arbitrary values in an object.
Definition OFValue.h:29
OFRect rectValue
The value as an OFRect.
Definition OFValue.h:75
OFVector3D vector3DValue
The value as an OFVector3D.
Definition OFValue.h:82
OFRange rangeValue
The value as an OFRange.
Definition OFValue.h:54
const char * objCType
The ObjC type encoding of the value.
Definition OFValue.h:33
void * pointerValue
The value as a pointer to void.
Definition OFValue.h:40
OFVector4D vector4DValue
The value as an OFVector4D.
Definition OFValue.h:89
id nonretainedObjectValue
The value as a non-retained object.
Definition OFValue.h:47
OFSize sizeValue
The value as an OFSize.
Definition OFValue.h:68
OFPoint pointValue
The value as an OFPoint.
Definition OFValue.h:61
A protocol for the creation of copies.
Definition OFObject.h:1350
A point in 2D space.
Definition OFObject.h:161
A range.
Definition OFObject.h:110
A rectangle.
Definition OFObject.h:253
A size.
Definition OFObject.h:207
A vector in 3D space.
Definition OFObject.h:304
A vector in 4D space.
Definition OFObject.h:356