From a3a475cc6a88e7fbd5d55cbca3dd517c0d34b260 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 25 May 2016 01:10:29 +1000 Subject: Buttons and accessors --- c_fl_widget.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'c_fl_widget.cpp') 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(w)->labelfont(static_cast(f)); } + +int fl_widget_get_label_size(my_fl_widget w) { + return reinterpret_cast(w)->labelsize(); +} + + +void fl_widget_set_label_size(my_fl_widget w, int s) { + reinterpret_cast(w)->labelsize(static_cast(s)); +} + + +int fl_widget_get_label_type(my_fl_widget w) { + return reinterpret_cast(w)->labeltype(); +} + + +void fl_widget_set_label_type(my_fl_widget w, int l) { + reinterpret_cast(w)->labeltype(static_cast(l)); +} + -- cgit