summaryrefslogtreecommitdiff
path: root/src/c_fl_widget.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-05-22 13:19:42 +1000
committerJed Barber <jjbarber@y7mail.com>2017-05-22 13:19:42 +1000
commita466cb205885576087f40df28dd0680d66aebbc9 (patch)
tree50ba70b8318d8fb0025f4d73e535b93cced9a5e3 /src/c_fl_widget.cpp
parenta504cffaf55d090fea44b4d16e538f77974f842a (diff)
Functions and procedures to Activate/Deactivate Widgets added
Diffstat (limited to 'src/c_fl_widget.cpp')
-rw-r--r--src/c_fl_widget.cpp36
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));
}