summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_single_window.cpp
blob: ec9a31522d5208c8d7c8a6d646aa9e4f21f63376 (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


#include <FL/Fl_Single_Window.H>
#include "c_fl_single_window.h"


SINGLEWINDOW new_fl_single_window(int x, int y, int w, int h, char* label) {
    Fl_Single_Window *sw = new Fl_Single_Window(x, y, w, h, label);
    return sw;
}


SINGLEWINDOW new_fl_single_window2(int x, int y) {
    Fl_Single_Window *sw = new Fl_Single_Window(x, y);
    return sw;
}


void free_fl_single_window(SINGLEWINDOW w) {
    delete reinterpret_cast<Fl_Single_Window*>(w);
}


void fl_single_window_show(SINGLEWINDOW w) {
    reinterpret_cast<Fl_Single_Window*>(w)->show();
}


void fl_single_window_flush(SINGLEWINDOW w) {
    reinterpret_cast<Fl_Single_Window*>(w)->flush();
}