#include #include #include #include "c_fl_image_surface.h" IMAGE_SURFACE new_fl_image_surface(int w, int h, int r) { Fl_Image_Surface *s = new Fl_Image_Surface(w,h,r); return s; } void free_fl_image_surface(IMAGE_SURFACE s) { delete reinterpret_cast(s); } void fl_image_surface_draw(IMAGE_SURFACE s, void * w, int dx, int dy) { reinterpret_cast(s)->draw(reinterpret_cast(w),dx,dy); } void fl_image_surface_draw_decorated_window(IMAGE_SURFACE s, void * w, int dx, int dy) { reinterpret_cast(s)->draw_decorated_window(reinterpret_cast(w),dx,dy); } void * fl_image_surface_image(IMAGE_SURFACE s) { return reinterpret_cast(s)->image(); } void fl_image_surface_set_current(IMAGE_SURFACE s) { reinterpret_cast(s)->set_current(); }