diff options
author | Jed Barber <jjbarber@y7mail.com> | 2018-03-01 19:45:07 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2018-03-01 19:45:07 +1100 |
commit | 38e5d2200b48b86772d6921e1553bf76408e5809 (patch) | |
tree | 31108868789021d0fb7b5c3c9ea7db1a4c627d7b /src/c_fl_clock_output.h | |
parent | 77ac8c71bc7c3ab4b04e1c22df8b2e9ec7ddd28a (diff) |
Corrected C naming terminology for Fl_Clock_Output
Diffstat (limited to 'src/c_fl_clock_output.h')
-rw-r--r-- | src/c_fl_clock_output.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/c_fl_clock_output.h b/src/c_fl_clock_output.h new file mode 100644 index 0000000..6a606a5 --- /dev/null +++ b/src/c_fl_clock_output.h @@ -0,0 +1,39 @@ + + +#ifndef FL_CLOCK_OUTPUT_GUARD +#define FL_CLOCK_OUTPUT_GUARD + + + + +typedef void* CLOCK_OUTPUT; + + + + +extern "C" void clock_output_set_draw_hook(CLOCK_OUTPUT c, void * d); +extern "C" void fl_clock_output_draw(CLOCK_OUTPUT c); +extern "C" void clock_output_set_handle_hook(CLOCK_OUTPUT c, void * h); +extern "C" int fl_clock_output_handle(CLOCK_OUTPUT c, int e); + + + + +extern "C" CLOCK_OUTPUT new_fl_clock_output(int x, int y, int w, int h, char* label); +extern "C" void free_fl_clock_output(CLOCK_OUTPUT c); + + + + +extern "C" int fl_clock_output_get_hour(CLOCK_OUTPUT c); +extern "C" int fl_clock_output_get_minute(CLOCK_OUTPUT c); +extern "C" int fl_clock_output_get_second(CLOCK_OUTPUT c); + + +extern "C" ulong fl_clock_output_get_value(CLOCK_OUTPUT c); +extern "C" void fl_clock_output_set_value(CLOCK_OUTPUT c, ulong v); +extern "C" void fl_clock_output_set_value2(CLOCK_OUTPUT c, int h, int m, int s); + + +#endif + |