diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-09-11 18:54:10 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-09-11 18:54:10 +0000 |
| commit | 322208b8556790bea75efb5a468813c9a49af0d8 (patch) | |
| tree | 5d9ec65d946ef766a06ee8d6c9e72bffd9f2502c /FL/Fl_Image.H | |
| parent | 2670903db904c029a181653881d948ab0173e068 (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 'FL/Fl_Image.H')
| -rw-r--r-- | FL/Fl_Image.H | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H index f338500cd..4a1b56d79 100644 --- a/FL/Fl_Image.H +++ b/FL/Fl_Image.H @@ -183,6 +183,9 @@ public: void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);} // platform dependent virtual void uncache(); + // used by fl_define_FL_IMAGE_LABEL() to avoid 'friend' declaration + static Fl_Labeltype define_FL_IMAGE_LABEL(); + // set RGB image scaling method static void RGB_scaling(Fl_RGB_Scaling); |
