summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_image.cpp
blob: 822239274dd6d9b2b3617dc0f492e945cd8522c3 (plain)
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
33


#include <FL/Fl_Image.H>
#include "c_fl_image.h"


IMAGE new_fl_image(int w, int h, int d) {
    Fl_Image *i = new Fl_Image(w, h, d);
    return i;
}


void free_fl_image(IMAGE i) {
    delete reinterpret_cast<Fl_Image*>(i);
}




int fl_image_w(IMAGE i) {
    return reinterpret_cast<Fl_Image*>(i)->w();
}


int fl_image_h(IMAGE i) {
    return reinterpret_cast<Fl_Image*>(i)->h();
}


int fl_image_d(IMAGE i) {
    return reinterpret_cast<Fl_Image*>(i)->d();
}