From 322208b8556790bea75efb5a468813c9a49af0d8 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 11 Sep 2017 18:54:10 +0000 Subject: Add missing Fl_Labeltype and Fl_Boxtype definitions. Some labeltypes and boxtypes were missing a #define for the enum without a leading underscore and the corresponding setup function to initialize the internal table of boxtypes and labeltypes, for instance _FL_MULTI_LABEL. This is now fixed so (hopefully) all boxtypes and labeltypes can and _should_ be used w/o leading underscore. Note: if there are still boxtypes or labeltypes that can't be used w/o leading underscore this should be considered a bug and is to be fixed ASAP. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Fl_Image.cxx') diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index efe980cb8..a43a596eb 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -113,6 +113,16 @@ void Fl_Image::color_average(Fl_Color, float) { void Fl_Image::desaturate() { } +// Doxygen documentation in FL/Enumerations.H +Fl_Labeltype fl_define_FL_IMAGE_LABEL() { + return Fl_Image::define_FL_IMAGE_LABEL(); +} + +Fl_Labeltype Fl_Image::define_FL_IMAGE_LABEL() { + Fl::set_labeltype(_FL_IMAGE_LABEL, Fl_Image::labeltype, Fl_Image::measure); + return _FL_IMAGE_LABEL; +} + /** The label() methods are an obsolete way to set the image attribute of a widget or menu item. Use the -- cgit v1.2.3