summaryrefslogtreecommitdiff
path: root/src/c_fl_graphics_driver.cpp
blob: 187ece967a37c50d41eb6def56eb57274101246b (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52


#include <FL/Fl_Device.H>
#include <FL/Fl_Image.H>
#include "c_fl_graphics_driver.h"




unsigned int fl_graphics_driver_color(GRAPHICS_DRIVER g) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->color();
}




int fl_graphics_driver_descent(GRAPHICS_DRIVER g) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->descent();
}

int fl_graphics_driver_height(GRAPHICS_DRIVER g) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->height();
}

double fl_graphics_driver_width(GRAPHICS_DRIVER g, unsigned int c) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->width(c);
}

double fl_graphics_driver_width2(GRAPHICS_DRIVER g, const char * s, int l) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->width(s,l);
}

int fl_graphics_driver_get_font(GRAPHICS_DRIVER g) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->font();
}

int fl_graphics_driver_size(GRAPHICS_DRIVER g) {
    return reinterpret_cast<Fl_Graphics_Driver*>(g)->size();
}

void fl_graphics_driver_set_font(GRAPHICS_DRIVER g, int f, int s) {
    reinterpret_cast<Fl_Graphics_Driver*>(g)->font(f,s);
}




void fl_graphics_driver_draw_scaled(GRAPHICS_DRIVER g, void * i, int x, int y, int w, int h) {
    reinterpret_cast<Fl_Graphics_Driver*>(g)->draw_scaled(reinterpret_cast<Fl_Image*>(i),x,y,w,h);
}