summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_window.cpp
blob: 9c8dbc692fb00cfb4829a6f7246393ed476efe2e (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


#include <FL/Fl_Window.H>
#include "c_fl_window.h"


WINDOW new_fl_window(int x, int y, int w, int h, char* label) {
    Fl_Window *n = new Fl_Window(x, y, w, h, label);
    return n;
}


WINDOW new_fl_window2(int w, int h) {
    Fl_Window *n = new Fl_Window(w, h);
    return n;
}


void free_fl_window(WINDOW n) {
    delete reinterpret_cast<Fl_Window*>(n);
}


void fl_window_show(WINDOW n) {
    reinterpret_cast<Fl_Window*>(n)->show();
}


void fl_window_hide(WINDOW n) {
    reinterpret_cast<Fl_Window*>(n)->hide();
}


void fl_window_set_label(WINDOW n, char* text) {
    reinterpret_cast<Fl_Window*>(n)->copy_label(text);
}


void fl_window_size_range(WINDOW n, int lw, int lh, int hw, int hh, int dw, int dh, int a) {
    reinterpret_cast<Fl_Window*>(n)->size_range(lw, lh, hw, hh, dw, dh, a);
}