18OF_ASSUME_NONNULL_BEGIN
29@property (readonly, nonatomic)
const char *
objCType;
95+ (instancetype)valueWithBytes: (const
void *)bytes
96 objCType: (const
char *)objCType;
106+ (instancetype)valueWithPointer: (const
void *)pointer;
118+ (instancetype)valueWithNonretainedObject: (
id)object;
126+ (instancetype)valueWithRange: (
OFRange)range;
134+ (instancetype)valueWithPoint: (
OFPoint)point;
142+ (instancetype)valueWithSize: (
OFSize)size;
151+ (instancetype)valueWithRect: (
OFRect)rect;
160+ (instancetype)valueWithVector3D: (
OFVector3D)vector3D;
169+ (instancetype)valueWithVector4D: (
OFVector4D)vector4D;
179- (instancetype)initWithBytes: (const
void *)bytes
180 objCType: (const
char *)objCType OF_DESIGNATED_INITIALIZER;
182- (instancetype)
init OF_UNAVAILABLE;
191- (void)getValue: (
void *)value size: (
size_t)size;
196#if !defined(NSINTEGER_DEFINED) && !__has_feature(modules)
198@compatibility_alias NSValue
OFValue;
The root class for all other classes inside ObjFW.
Definition OFObject.h:688
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:586
A class for storing arbitrary values in an object.
Definition OFValue.h:25
OFRect rectValue
The value as an OFRect.
Definition OFValue.h:71
OFVector3D vector3DValue
The value as an OFVector3D.
Definition OFValue.h:78
OFRange rangeValue
The value as an OFRange.
Definition OFValue.h:50
const char * objCType
The ObjC type encoding of the value.
Definition OFValue.h:29
void * pointerValue
The value as a pointer to void.
Definition OFValue.h:36
OFVector4D vector4DValue
The value as an OFVector4D.
Definition OFValue.h:85
id nonretainedObjectValue
The value as a non-retained object.
Definition OFValue.h:43
OFSize sizeValue
The value as an OFSize.
Definition OFValue.h:64
OFPoint pointValue
The value as an OFPoint.
Definition OFValue.h:57
A protocol for the creation of copies.
Definition OFObject.h:1346
A point in 2D space.
Definition OFObject.h:157
A range.
Definition OFObject.h:106
A rectangle.
Definition OFObject.h:249
A size.
Definition OFObject.h:203
A vector in 3D space.
Definition OFObject.h:300
A vector in 4D space.
Definition OFObject.h:352