22#include <Objectively/Resource.h>
32typedef struct ImageInterface ImageInterface;
65struct ImageInterface {
70 ObjectInterface objectInterface;
81 Image *(*imageWithBytes)(
const uint8_t *bytes,
size_t length);
91 Image *(*imageWithData)(
const Data *data);
101 Image *(*imageWithResource)(
const Resource *resource);
111 Image *(*imageWithResourceName)(
const char *name);
121 Image *(*imageWithSurface)(SDL_Surface *surface);
132 Image *(*initWithBytes)(
Image *self,
const uint8_t *bytes,
size_t length);
142 Image *(*initWithData)(
Image *self,
const Data *data);
152 Image *(*initWithResource)(
Image *self,
const Resource *resource);
162 Image *(*initWithResourceName)(
Image *self,
const char *name);
176 Image *(*initWithSurface)(
Image *self, SDL_Surface *surface);
static SDL_Size size(const Image *self)
ObjectivelyMVC base types.
#define OBJECTIVELYMVC_EXPORT
ImageInterface * interface
The interface.
const char * type
The image type, inferred if instantiated with a Resource.
Class * _Image(void)
The Image archetype.
SDL_Surface * surface
The backing surface.
Object object
The superclass.