summaryrefslogtreecommitdiff
path: root/src/Fl_Image.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-09-11 18:54:10 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-09-11 18:54:10 +0000
commit322208b8556790bea75efb5a468813c9a49af0d8 (patch)
tree5d9ec65d946ef766a06ee8d6c9e72bffd9f2502c /src/Fl_Image.cxx
parent2670903db904c029a181653881d948ab0173e068 (diff)
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
Diffstat (limited to 'src/Fl_Image.cxx')
-rw-r--r--src/Fl_Image.cxx10
1 files changed, 10 insertions, 0 deletions
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