summaryrefslogtreecommitdiff
path: root/c_fl_widget.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-09-21 17:20:32 +1000
committerJed Barber <jjbarber@y7mail.com>2016-09-21 17:20:32 +1000
commitf372ad18e2ba1fe0660cfd93e64c17162a52a5f7 (patch)
tree54a03b6379727bbf009cc4071d7eb0fa1fd9afcd /c_fl_widget.cpp
parentd12fdd75d1c131bbe4bd49413c3da51131cd1e73 (diff)
Started constructing Find/Replace/About windows
Diffstat (limited to 'c_fl_widget.cpp')
-rw-r--r--c_fl_widget.cpp32
1 files changed, 32 insertions, 0 deletions
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<Fl_Widget*>(w)->callback(reinterpret_cast<Fl_Callback_p>(cb));
}
+
+
+
+int fl_widget_get_x(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->x();
+}
+
+
+int fl_widget_get_y(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->y();
+}
+
+
+int fl_widget_get_w(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->w();
+}
+
+
+int fl_widget_get_h(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->h();
+}
+
+
+void fl_widget_size(WIDGET w, int d, int h) {
+ reinterpret_cast<Fl_Widget*>(w)->size(d, h);
+}
+
+
+void fl_widget_position(WIDGET w, int x, int y) {
+ reinterpret_cast<Fl_Widget*>(w)->position(x, y);
+}
+