From 329d2b5b2df376904c2468738630b9d052d283e5 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 31 May 2017 17:22:20 +1000 Subject: More methods added to Window widget --- src/c_fl_window.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'src/c_fl_window.cpp') diff --git a/src/c_fl_window.cpp b/src/c_fl_window.cpp index fcaf6b0..00f4fff 100644 --- a/src/c_fl_window.cpp +++ b/src/c_fl_window.cpp @@ -96,6 +96,11 @@ void fl_window_hide(WINDOW n) { } +void fl_window_make_current(WINDOW n) { + reinterpret_cast(n)->make_current(); +} + + unsigned int fl_window_get_border(WINDOW n) { return reinterpret_cast(n)->border(); } @@ -130,3 +135,35 @@ void fl_window_set_non_modal(WINDOW n) { reinterpret_cast(n)->set_non_modal(); } + +void fl_window_set_cursor(WINDOW n, int c) { + reinterpret_cast(n)->cursor(static_cast(c)); +} + + +void fl_window_set_default_cursor(WINDOW n, int c) { + reinterpret_cast(n)->default_cursor(static_cast(c)); +} + + + + +int fl_window_get_x_root(WINDOW n) { + return reinterpret_cast(n)->x_root(); +} + + +int fl_window_get_y_root(WINDOW n) { + return reinterpret_cast(n)->y_root(); +} + + +int fl_window_get_decorated_w(WINDOW n) { + return reinterpret_cast(n)->decorated_w(); +} + + +int fl_window_get_decorated_h(WINDOW n) { + return reinterpret_cast(n)->decorated_h(); +} + -- cgit