diff options
Diffstat (limited to 'src/c_fl_widget.cpp')
-rw-r--r-- | src/c_fl_widget.cpp | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/src/c_fl_widget.cpp b/src/c_fl_widget.cpp index 1e3e3a4..7b0d6b2 100644 --- a/src/c_fl_widget.cpp +++ b/src/c_fl_widget.cpp @@ -69,6 +69,35 @@ void fl_widget_set_user_data(WIDGET w, void * d) { +void fl_widget_activate(WIDGET w) { + reinterpret_cast<Fl_Widget*>(w)->activate(); +} + + +void fl_widget_deactivate(WIDGET w) { + reinterpret_cast<Fl_Widget*>(w)->deactivate(); +} + + +int fl_widget_active(WIDGET w) { + return reinterpret_cast<Fl_Widget*>(w)->active(); +} + + +int fl_widget_active_r(WIDGET w) { + return reinterpret_cast<Fl_Widget*>(w)->active_r(); +} + + + + +void * fl_widget_get_parent(WIDGET w) { + return reinterpret_cast<Fl_Widget*>(w)->parent(); +} + + + + int fl_widget_get_box(WIDGET w) { return reinterpret_cast<Fl_Widget*>(w)->box(); } @@ -119,11 +148,6 @@ void fl_widget_set_label_type(WIDGET w, int l) { } -void * fl_widget_get_parent(WIDGET w) { - return reinterpret_cast<Fl_Widget*>(w)->parent(); -} - - void fl_widget_set_callback(WIDGET w, void * cb) { @@ -163,6 +187,8 @@ void fl_widget_position(WIDGET w, int x, int y) { } + + void fl_widget_set_image(WIDGET w, void * img) { reinterpret_cast<Fl_Widget*>(w)->image(reinterpret_cast<Fl_Image*>(img)); } |