From f372ad18e2ba1fe0660cfd93e64c17162a52a5f7 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 21 Sep 2016 17:20:32 +1000 Subject: Started constructing Find/Replace/About windows --- c_fl_widget.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'c_fl_widget.cpp') diff --git a/c_fl_widget.cpp b/c_fl_widget.cpp index f700c54..9dea7ee 100644 --- a/c_fl_widget.cpp +++ b/c_fl_widget.cpp @@ -79,3 +79,35 @@ void fl_widget_set_callback(WIDGET w, void * cb) { reinterpret_cast(w)->callback(reinterpret_cast(cb)); } + + + +int fl_widget_get_x(WIDGET w) { + return reinterpret_cast(w)->x(); +} + + +int fl_widget_get_y(WIDGET w) { + return reinterpret_cast(w)->y(); +} + + +int fl_widget_get_w(WIDGET w) { + return reinterpret_cast(w)->w(); +} + + +int fl_widget_get_h(WIDGET w) { + return reinterpret_cast(w)->h(); +} + + +void fl_widget_size(WIDGET w, int d, int h) { + reinterpret_cast(w)->size(d, h); +} + + +void fl_widget_position(WIDGET w, int x, int y) { + reinterpret_cast(w)->position(x, y); +} + -- cgit