From 1e97ffcd6ec01eaa4b79d4903b721019e12657da Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 5 Nov 2024 06:28:09 +1300 Subject: Fl_Help_Dialog bound --- src/c_fl_help_dialog.cpp | 101 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 src/c_fl_help_dialog.cpp (limited to 'src/c_fl_help_dialog.cpp') diff --git a/src/c_fl_help_dialog.cpp b/src/c_fl_help_dialog.cpp new file mode 100644 index 0000000..9888df9 --- /dev/null +++ b/src/c_fl_help_dialog.cpp @@ -0,0 +1,101 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#include +#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(d); +} + + + + +void fl_help_dialog_show(HELPDIALOG d) { + reinterpret_cast(d)->show(); +} + +void fl_help_dialog_hide(HELPDIALOG d) { + reinterpret_cast(d)->hide(); +} + +int fl_help_dialog_visible(HELPDIALOG d) { + return reinterpret_cast(d)->visible(); +} + + + + +void fl_help_dialog_set_topline_number(HELPDIALOG d, int n) { + reinterpret_cast(d)->topline(n); +} + +void fl_help_dialog_set_topline_target(HELPDIALOG d, const char * t) { + reinterpret_cast(d)->topline(t); +} + + + + +void fl_help_dialog_load(HELPDIALOG d, const char * n) { + reinterpret_cast(d)->load(n); +} + +const char * fl_help_dialog_get_value(HELPDIALOG d) { + return reinterpret_cast(d)->value(); +} + +void fl_help_dialog_set_value(HELPDIALOG d, const char * v) { + reinterpret_cast(d)->value(v); +} + + + + +int fl_help_dialog_get_textsize(HELPDIALOG d) { + return reinterpret_cast(d)->textsize(); +} + +void fl_help_dialog_set_textsize(HELPDIALOG d, int s) { + reinterpret_cast(d)->textsize(s); +} + + + + +int fl_help_dialog_get_x(HELPDIALOG d) { + return reinterpret_cast(d)->x(); +} + +int fl_help_dialog_get_y(HELPDIALOG d) { + return reinterpret_cast(d)->y(); +} + +int fl_help_dialog_get_w(HELPDIALOG d) { + return reinterpret_cast(d)->w(); +} + +int fl_help_dialog_get_h(HELPDIALOG d) { + return reinterpret_cast(d)->h(); +} + +void fl_help_dialog_resize(HELPDIALOG d, int xx, int yy, int ww, int hh) { + reinterpret_cast(d)->resize(xx, yy, ww, hh); +} + +void fl_help_dialog_position(HELPDIALOG d, int xx, int yy) { + reinterpret_cast(d)->position(xx, yy); +} + + -- cgit