summaryrefslogtreecommitdiff
path: root/src/c_fl_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_widget.cpp')
-rw-r--r--src/c_fl_widget.cpp164
1 files changed, 158 insertions, 6 deletions
diff --git a/src/c_fl_widget.cpp b/src/c_fl_widget.cpp
index 923b509..5f0c904 100644
--- a/src/c_fl_widget.cpp
+++ b/src/c_fl_widget.cpp
@@ -79,6 +79,10 @@ int fl_widget_active_r(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->active_r();
}
+void fl_widget_set_active(WIDGET w) {
+ reinterpret_cast<Fl_Widget*>(w)->set_active();
+}
+
void fl_widget_clear_active(WIDGET w) {
reinterpret_cast<Fl_Widget*>(w)->clear_active();
}
@@ -90,10 +94,80 @@ unsigned int fl_widget_changed(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->changed();
}
+void fl_widget_set_changed(WIDGET w) {
+ reinterpret_cast<Fl_Widget*>(w)->set_changed();
+}
+
void fl_widget_clear_changed(WIDGET w) {
reinterpret_cast<Fl_Widget*>(w)->clear_changed();
}
+int fl_widget_output(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->output();
+}
+
+void fl_widget_set_output(WIDGET w) {
+ reinterpret_cast<Fl_Widget*>(w)->set_output();
+}
+
+void fl_widget_clear_output(WIDGET w) {
+ reinterpret_cast<Fl_Widget*>(w)->clear_output();
+}
+
+int fl_widget_visible(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->visible();
+}
+
+int fl_widget_visible_r(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->visible_r();
+}
+
+void fl_widget_set_visible(WIDGET w) {
+ reinterpret_cast<Fl_Widget*>(w)->set_visible();
+}
+
+void fl_widget_clear_visible(WIDGET w) {
+ reinterpret_cast<Fl_Widget*>(w)->clear_visible();
+}
+
+
+
+
+int fl_widget_get_visible_focus(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->visible_focus();
+}
+
+void fl_widget_set_visible_focus(WIDGET w, int f) {
+ reinterpret_cast<Fl_Widget*>(w)->visible_focus(f);
+}
+
+int fl_widget_take_focus(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->take_focus();
+}
+
+int fl_widget_takesevents(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->takesevents();
+}
+
+
+
+
+unsigned int fl_widget_get_color(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->color();
+}
+
+void fl_widget_set_color(WIDGET w, unsigned int b) {
+ reinterpret_cast<Fl_Widget*>(w)->color(b);
+}
+
+unsigned int fl_widget_get_selection_color(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->selection_color();
+}
+
+void fl_widget_set_selection_color(WIDGET w, unsigned int c) {
+ reinterpret_cast<Fl_Widget*>(w)->selection_color(c);
+}
+
@@ -105,6 +179,22 @@ int fl_widget_contains(WIDGET w, WIDGET i) {
return reinterpret_cast<Fl_Widget*>(w)->contains(reinterpret_cast<Fl_Widget*>(i));
}
+int fl_widget_inside(WIDGET w, WIDGET p) {
+ return reinterpret_cast<Fl_Widget*>(w)->inside(reinterpret_cast<Fl_Widget*>(p));
+}
+
+void * fl_widget_window(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->window();
+}
+
+void * fl_widget_top_window(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->top_window();
+}
+
+void * fl_widget_top_window_offset(WIDGET w, int &x, int &y) {
+ return reinterpret_cast<Fl_Widget*>(w)->top_window_offset(x,y);
+}
+
@@ -124,6 +214,17 @@ void fl_widget_set_box(WIDGET w, int b) {
reinterpret_cast<Fl_Widget*>(w)->box(static_cast<Fl_Boxtype>(b));
}
+const char * fl_widget_tooltip(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->tooltip();
+}
+
+void fl_widget_copy_tooltip(WIDGET w, const char * t) {
+ reinterpret_cast<Fl_Widget*>(w)->copy_tooltip(t);
+}
+
+
+
+
const char* fl_widget_get_label(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->label();
}
@@ -132,34 +233,57 @@ void fl_widget_set_label(WIDGET w, const char* t) {
reinterpret_cast<Fl_Widget*>(w)->copy_label(t);
}
-int fl_widget_get_label_font(WIDGET w) {
+unsigned int fl_widget_get_labelcolor(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->labelcolor();
+}
+
+void fl_widget_set_labelcolor(WIDGET w, unsigned int v) {
+ reinterpret_cast<Fl_Widget*>(w)->labelcolor(v);
+}
+
+int fl_widget_get_labelfont(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->labelfont();
}
-void fl_widget_set_label_font(WIDGET w, int f) {
+void fl_widget_set_labelfont(WIDGET w, int f) {
reinterpret_cast<Fl_Widget*>(w)->labelfont(static_cast<Fl_Font>(f));
}
-int fl_widget_get_label_size(WIDGET w) {
+int fl_widget_get_labelsize(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->labelsize();
}
-void fl_widget_set_label_size(WIDGET w, int s) {
+void fl_widget_set_labelsize(WIDGET w, int s) {
reinterpret_cast<Fl_Widget*>(w)->labelsize(static_cast<Fl_Fontsize>(s));
}
-int fl_widget_get_label_type(WIDGET w) {
+int fl_widget_get_labeltype(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->labeltype();
}
-void fl_widget_set_label_type(WIDGET w, int l) {
+void fl_widget_set_labeltype(WIDGET w, int l) {
reinterpret_cast<Fl_Widget*>(w)->labeltype(static_cast<Fl_Labeltype>(l));
}
+void fl_widget_measure_label(WIDGET w, int &d, int &h) {
+ reinterpret_cast<Fl_Widget*>(w)->measure_label(d,h);
+}
+
+
+
+
void fl_widget_set_callback(WIDGET w, void * cb) {
reinterpret_cast<Fl_Widget*>(w)->callback(reinterpret_cast<Fl_Callback_p>(cb));
}
+unsigned int fl_widget_get_when(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->when();
+}
+
+void fl_widget_set_when(WIDGET w, unsigned int c) {
+ reinterpret_cast<Fl_Widget*>(w)->when(c);
+}
+
@@ -194,9 +318,37 @@ void fl_widget_set_image(WIDGET w, void * img) {
reinterpret_cast<Fl_Widget*>(w)->image(reinterpret_cast<Fl_Image*>(img));
}
+void fl_widget_set_deimage(WIDGET w, void * img) {
+ reinterpret_cast<Fl_Widget*>(w)->deimage(reinterpret_cast<Fl_Image*>(img));
+}
+
+int fl_widget_damage(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->damage();
+}
+
+void fl_widget_set_damage(WIDGET w, int t) {
+ if (t != 0) {
+ reinterpret_cast<Fl_Widget*>(w)->damage(0xff);
+ } else {
+ reinterpret_cast<Fl_Widget*>(w)->damage(0x00);
+ }
+}
+
+void fl_widget_set_damage2(WIDGET w, int t, int x, int y, int d, int h) {
+ if (t != 0) {
+ reinterpret_cast<Fl_Widget*>(w)->damage(0xff,x,y,d,h);
+ } else {
+ reinterpret_cast<Fl_Widget*>(w)->damage(0x00,x,y,d,h);
+ }
+}
+
+void fl_widget_draw_label(WIDGET w, int x, int y, int d, int h, unsigned int a) {
+ reinterpret_cast<Fl_Widget*>(w)->draw_label(x,y,d,h,a);
+}
+
void fl_widget_redraw(WIDGET w) {
reinterpret_cast<Fl_Widget*>(w)->redraw();
}