summaryrefslogtreecommitdiff
path: root/src/c_fl_help_dialog.cpp
blob: 9888df9d76a9be90c68fcd4f24c24562d5a62e0b (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101


//  Programmed by Jedidiah Barber
//  Released into the public domain


#include <FL/Fl_Help_Dialog.H>
#include "c_fl_help_dialog.h"




HELPDIALOG new_fl_help_dialog() {
    Fl_Help_Dialog *d = new Fl_Help_Dialog();
    return d;
}

void free_fl_help_dialog(HELPDIALOG d) {
    delete reinterpret_cast<Fl_Help_Dialog*>(d);
}




void fl_help_dialog_show(HELPDIALOG d) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->show();
}

void fl_help_dialog_hide(HELPDIALOG d) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->hide();
}

int fl_help_dialog_visible(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->visible();
}




void fl_help_dialog_set_topline_number(HELPDIALOG d, int n) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->topline(n);
}

void fl_help_dialog_set_topline_target(HELPDIALOG d, const char * t) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->topline(t);
}




void fl_help_dialog_load(HELPDIALOG d, const char * n) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->load(n);
}

const char * fl_help_dialog_get_value(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->value();
}

void fl_help_dialog_set_value(HELPDIALOG d, const char * v) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->value(v);
}




int fl_help_dialog_get_textsize(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->textsize();
}

void fl_help_dialog_set_textsize(HELPDIALOG d, int s) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->textsize(s);
}




int fl_help_dialog_get_x(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->x();
}

int fl_help_dialog_get_y(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->y();
}

int fl_help_dialog_get_w(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->w();
}

int fl_help_dialog_get_h(HELPDIALOG d) {
    return reinterpret_cast<Fl_Help_Dialog*>(d)->h();
}

void fl_help_dialog_resize(HELPDIALOG d, int xx, int yy, int ww, int hh) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->resize(xx, yy, ww, hh);
}

void fl_help_dialog_position(HELPDIALOG d, int xx, int yy) {
    reinterpret_cast<Fl_Help_Dialog*>(d)->position(xx, yy);
}