summaryrefslogtreecommitdiff
path: root/c_fl_widget.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-05-25 01:10:29 +1000
committerJed Barber <jjbarber@y7mail.com>2016-05-25 01:10:29 +1000
commita3a475cc6a88e7fbd5d55cbca3dd517c0d34b260 (patch)
tree5274efd53486c3061741eb549e31aebf045e1129 /c_fl_widget.cpp
parentac5c51b6ee492b504e165408b742d2505e308e94 (diff)
Buttons and accessors
Diffstat (limited to 'c_fl_widget.cpp')
-rw-r--r--c_fl_widget.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/c_fl_widget.cpp b/c_fl_widget.cpp
index cf99c41..8a9e897 100644
--- a/c_fl_widget.cpp
+++ b/c_fl_widget.cpp
@@ -23,3 +23,23 @@ void fl_widget_set_label_font(my_fl_widget w, int f) {
reinterpret_cast<Fl_Widget*>(w)->labelfont(static_cast<Fl_Font>(f));
}
+
+int fl_widget_get_label_size(my_fl_widget w) {
+ return reinterpret_cast<Fl_Widget*>(w)->labelsize();
+}
+
+
+void fl_widget_set_label_size(my_fl_widget w, int s) {
+ reinterpret_cast<Fl_Widget*>(w)->labelsize(static_cast<Fl_Fontsize>(s));
+}
+
+
+int fl_widget_get_label_type(my_fl_widget w) {
+ return reinterpret_cast<Fl_Widget*>(w)->labeltype();
+}
+
+
+void fl_widget_set_label_type(my_fl_widget w, int l) {
+ reinterpret_cast<Fl_Widget*>(w)->labeltype(static_cast<Fl_Labeltype>(l));
+}
+