-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathFl_Image_SurfaceC.h
32 lines (32 loc) · 1.44 KB
/
Fl_Image_SurfaceC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __FL_IMAGE_SURFACE_C__
#define __FL_IMAGE_SURFACE_C__
#include "Fl_Types.h"
#include "Fl_EnumerationsC.h"
#if FL_API_VERSION >= 10400
#include "FL/platform_types.h"
#endif
#ifdef __cplusplus
// always include the FL/*.H headers before local headers
// Fl_Widget is included transitively and needed for
// the callback mechanism included below to work.
#include "FL/Fl.H"
#include "Fl_ExportMacros.h"
#include "FL/Fl_Image_Surface.H"
EXPORT {
#endif
FL_EXPORT_C_HEADER(fl_Image_Surface,Fl_Image_Surface_New,(int w, int h));
FL_EXPORT_C_HEADER(void,Fl_Image_Surface_Destroy,(fl_Image_Surface image_surface));
FL_EXPORT_C_HEADER(void ,Fl_Image_Surface_set_current,(fl_Image_Surface image_surface));
FL_EXPORT_C_HEADER(void ,Fl_Image_Surface_draw,(fl_Image_Surface image_surface, fl_Widget widget, int x, int y));
FL_EXPORT_C_HEADER(fl_RGB_Image,Fl_Image_Surface_image,(fl_Image_Surface image_surface));
#if FL_API_VERSION >= 10400
FL_EXPORT_C_HEADER(void ,Fl_Image_Surface_get_origin,(fl_Image_Surface i, int* x, int* y));
FL_EXPORT_C_HEADER(void ,Fl_Image_Surface_set_origin,(fl_Image_Surface i, int x, int y));
FL_EXPORT_C_HEADER(int,Fl_Image_Surface_printable_rect,(fl_Image_Surface i, int* w, int* h));
FL_EXPORT_C_HEADER(Fl_Offscreen,Fl_Image_Surface_offscreen,(fl_Image_Surface i));
FL_EXPORT_C_HEADER(void, Fl_Image_Surface_rescale,(fl_Image_Surface i));
#endif
#ifdef __cplusplus
}
#endif
#endif /* __FL_IMAGE_SURFACE_C__ */