diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-07-18 15:58:30 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-07-18 15:58:30 +1000 |
commit | 6aa9475d598065081866913bb86a049a6d2d0c1a (patch) | |
tree | fd2074432185ed1d9f9dd8b3e9ae8e2344cbe7c5 /c_fl_widget.cpp | |
parent | f419b275ee91792e08f211a588d891c4aa6bedac (diff) |
Decided on widget init problem, started on rudimentary editor appearance
Diffstat (limited to 'c_fl_widget.cpp')
-rw-r--r-- | c_fl_widget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c_fl_widget.cpp b/c_fl_widget.cpp index 53c14c8..9acc52f 100644 --- a/c_fl_widget.cpp +++ b/c_fl_widget.cpp @@ -14,6 +14,16 @@ void fl_widget_set_box(WIDGET w, int b) { } +const char* fl_widget_get_label(WIDGET w) { + return reinterpret_cast<Fl_Widget*>(w)->label(); +} + + +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) { return reinterpret_cast<Fl_Widget*>(w)->labelfont(); } |