23 OF_ASSUME_NONNULL_BEGIN
47 - (void)clearRect: (
OFRect)rect;
62 - (void)drawImage: (
OFImage *)image
63 sourceRect: (
OFRect)sourceRect
64 destinationRect: (
OFRect)destinationRect;
73 OF_SUBCLASSING_RESTRICTED
80 OFPixelFormat _pixelFormat;
90 + (instancetype)canvasWithDestinationImage: (
OFMutableImage *)image;
92 - (instancetype)init OF_UNAVAILABLE;
101 - (instancetype)initWithDestinationImage: (
OFMutableImage *)image;
104 OF_ASSUME_NONNULL_END
A protocol for a canvas that can be drawn to.
An implementation of <OFCanvas> that draws to an OFImage.
Definition: OFCanvas.h:74
A class for storing a color.
Definition: OFColor.h:30
The root class for all other classes inside ObjFW.
Definition: OFObject.h:954
instancetype retain()
Increases the retain count.
A class representing a mutable image.
Definition: OFMutableImage.h:29
A rectangle.
Definition: OFObject.h:343
A class representing an image.
Definition: OFImage.h:115