summaryrefslogtreecommitdiff
path: root/body/c_fl_ask.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
commitb4438b2fbe895694be98e6e8426103deefc51448 (patch)
tree760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_ask.cpp
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_ask.cpp')
-rw-r--r--body/c_fl_ask.cpp140
1 files changed, 140 insertions, 0 deletions
diff --git a/body/c_fl_ask.cpp b/body/c_fl_ask.cpp
new file mode 100644
index 0000000..20af2e3
--- /dev/null
+++ b/body/c_fl_ask.cpp
@@ -0,0 +1,140 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#include <FL/fl_ask.H>
+#include <FL/Fl_File_Chooser.H>
+#include <FL/Fl_Color_Chooser.H>
+#include "c_fl_ask.h"
+
+
+
+
+const char * fl_ask_get_cancel() {
+ return fl_cancel;
+}
+
+void fl_ask_set_cancel(const char * v) {
+ fl_cancel = v;
+}
+
+const char * fl_ask_get_close() {
+ return fl_close;
+}
+
+void fl_ask_set_close(const char * v) {
+ fl_close = v;
+}
+
+const char * fl_ask_get_no() {
+ return fl_no;
+}
+
+void fl_ask_set_no(const char * v) {
+ fl_no = v;
+}
+
+const char * fl_ask_get_ok() {
+ return fl_ok;
+}
+
+void fl_ask_set_ok(const char * v) {
+ fl_ok = v;
+}
+
+const char * fl_ask_get_yes() {
+ return fl_yes;
+}
+
+void fl_ask_set_yes(const char * v) {
+ fl_yes = v;
+}
+
+
+
+
+void fl_ask_alert(const char * m) {
+ fl_alert(m);
+}
+
+void fl_ask_beep(int b) {
+ fl_beep(b);
+}
+
+int fl_ask_choice(const char * m, const char * a, const char * b, const char * c) {
+ return fl_choice(m, a, b, c);
+}
+
+int fl_ask_choice_n(const char * m, const char * a, const char * b, const char * c) {
+ return fl_choice_n(m, a, b, c);
+}
+
+const char * fl_ask_input(const char * m, const char * d) {
+ return fl_input(m, d);
+}
+
+void fl_ask_message(const char * m) {
+ fl_message(m);
+}
+
+const char * fl_ask_password(const char * m, const char * d) {
+ return fl_password(m, d);
+}
+
+
+
+
+int fl_ask_color_chooser(const char * n, double & r, double & g, double & b, int m) {
+ return fl_color_chooser(n, r, g, b, m);
+}
+
+int fl_ask_color_chooser2(const char * n, uchar & r, uchar & g, uchar & b, int m) {
+ return fl_color_chooser(n, r, g, b, m);
+}
+
+char * fl_ask_dir_chooser(const char * m, const char * d, int r) {
+ return fl_dir_chooser(m, d, r);
+}
+
+char * fl_ask_file_chooser(const char * m, const char * p, const char * d, int r) {
+ return fl_file_chooser(m, p, d, r);
+}
+
+void fl_ask_file_chooser_callback(void(*cb)(const char *)) {
+ fl_file_chooser_callback(cb);
+}
+
+void fl_ask_file_chooser_ok_label(const char *l) {
+ fl_file_chooser_ok_label(l);
+}
+
+
+
+
+int fl_ask_get_message_hotspot(void) {
+ return fl_message_hotspot();
+}
+
+void fl_ask_set_message_hotspot(int v) {
+ fl_message_hotspot(v);
+}
+
+void fl_ask_message_font(int f, int s) {
+ fl_message_font(f, s);
+}
+
+void * fl_ask_message_icon(void) {
+ return fl_message_icon();
+}
+
+void fl_ask_message_title(const char * t) {
+ fl_message_title(t);
+}
+
+void fl_ask_message_title_default(const char * t) {
+ fl_message_title_default(t);
+}
+
+