summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_double_window.cpp
blob: 7f29af8192d1a43d86d55b16e560378619947bae (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_Double_Window.H>
#include "c_fl_double_window.h"


DOUBLEWINDOW new_fl_double_window(int x, int y, int w, int h, char* label) {
    Fl_Double_Window *d = new Fl_Double_Window(x, y, w, h, label);
    return d;
}


DOUBLEWINDOW new_fl_double_window2(int w, int h) {
    Fl_Double_Window *d = new Fl_Double_Window(w, h);
    return d;
}


void free_fl_double_window(DOUBLEWINDOW d) {
    delete reinterpret_cast<Fl_Double_Window*>(d);
}


void fl_double_window_show(DOUBLEWINDOW d) {
    reinterpret_cast<Fl_Double_Window*>(d)->show();
}


void fl_double_window_hide(DOUBLEWINDOW d) {
    reinterpret_cast<Fl_Double_Window*>(d)->hide();
}