summaryrefslogtreecommitdiff
path: root/body/c_fl_event.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_event.cpp
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_event.cpp')
-rw-r--r--body/c_fl_event.cpp194
1 files changed, 194 insertions, 0 deletions
diff --git a/body/c_fl_event.cpp b/body/c_fl_event.cpp
new file mode 100644
index 0000000..59a22df
--- /dev/null
+++ b/body/c_fl_event.cpp
@@ -0,0 +1,194 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#include <FL/Fl.H>
+#include <FL/Fl_Widget.H>
+#include <FL/Fl_Window.H>
+#include "c_fl_event.h"
+
+
+
+
+void fl_event_add_handler(void * f) {
+ Fl::add_handler(reinterpret_cast<Fl_Event_Handler>(f));
+}
+
+void fl_event_set_event_dispatch(void * f) {
+ Fl::event_dispatch(reinterpret_cast<Fl_Event_Dispatch>(f));
+}
+
+int fl_event_handle(int e, void * w) {
+ return Fl::handle_(e, static_cast<Fl_Window*>(w));
+}
+
+
+
+
+void * fl_event_get_grab() {
+ return Fl::grab();
+}
+
+void fl_event_set_grab(void * w) {
+ Fl::grab(static_cast<Fl_Window*>(w));
+}
+
+void * fl_event_get_pushed() {
+ return Fl::pushed();
+}
+
+void fl_event_set_pushed(void * w) {
+ Fl::pushed(static_cast<Fl_Widget*>(w));
+}
+
+void * fl_event_get_belowmouse() {
+ return Fl::belowmouse();
+}
+
+void fl_event_set_belowmouse(void * w) {
+ Fl::belowmouse(static_cast<Fl_Widget*>(w));
+}
+
+void * fl_event_get_focus() {
+ return Fl::focus();
+}
+
+void fl_event_set_focus(void * w) {
+ Fl::focus(static_cast<Fl_Widget*>(w));
+}
+
+
+
+
+int fl_event_compose(int &d) {
+ return Fl::compose(d);
+}
+
+void fl_event_compose_reset() {
+ Fl::compose_reset();
+}
+
+const char * fl_event_text() {
+ return Fl::event_text();
+}
+
+int fl_event_length() {
+ return Fl::event_length();
+}
+
+
+
+
+int fl_event_get() {
+ return Fl::event();
+}
+
+int fl_event_state() {
+ return Fl::event_state();
+}
+
+int fl_event_check_state(int s) {
+ return Fl::event_state(s);
+}
+
+
+
+
+int fl_event_x() {
+ return Fl::event_x();
+}
+
+int fl_event_x_root() {
+ return Fl::event_x_root();
+}
+
+int fl_event_y() {
+ return Fl::event_y();
+}
+
+int fl_event_y_root() {
+ return Fl::event_y_root();
+}
+
+int fl_event_dx() {
+ return Fl::event_dx();
+}
+
+int fl_event_dy() {
+ return Fl::event_dy();
+}
+
+void fl_event_get_mouse(int &x, int &y) {
+ Fl::get_mouse(x, y);
+}
+
+int fl_event_is_click() {
+ return Fl::event_is_click();
+}
+
+int fl_event_is_clicks() {
+ return Fl::event_clicks();
+}
+
+void fl_event_set_clicks(int c) {
+ Fl::event_clicks(c);
+}
+
+int fl_event_button() {
+ return Fl::event_button();
+}
+
+int fl_event_button1() {
+ return Fl::event_button1();
+}
+
+int fl_event_button2() {
+ return Fl::event_button2();
+}
+
+int fl_event_button3() {
+ return Fl::event_button3();
+}
+
+int fl_event_inside(int x, int y, int w, int h) {
+ return Fl::event_inside(x, y, w, h);
+}
+
+
+
+
+int fl_event_key() {
+ return Fl::event_key();
+}
+
+int fl_event_original_key() {
+ return Fl::event_original_key();
+}
+
+int fl_event_key_during(int k) {
+ return Fl::event_key(k);
+}
+
+int fl_event_get_key(int k) {
+ return Fl::get_key(k);
+}
+
+int fl_event_ctrl() {
+ return Fl::event_ctrl();
+}
+
+int fl_event_alt() {
+ return Fl::event_alt();
+}
+
+int fl_event_command() {
+ return Fl::event_command();
+}
+
+int fl_event_shift() {
+ return Fl::event_shift();
+}
+
+