summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-08-01 02:02:03 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-08-01 02:02:03 +0000
commit063d67de86af0fcdad54f28d49ba9aacca6ae96a (patch)
tree8c733e99d733f307eea16a035bd8c2c583137420 /FL
parent7038a9eeaecf345fb1fe22b43853b78cbf6ac6f2 (diff)
Add image() methods to Fl_Menu_Item.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Menu_Item.H20
1 files changed, 11 insertions, 9 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H
index c6479a1a8..1f37014c7 100644
--- a/FL/Fl_Menu_Item.H
+++ b/FL/Fl_Menu_Item.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.4 2002/07/17 15:23:57 easysw Exp $"
+// "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.5 2002/08/01 02:02:03 easysw Exp $"
//
// Menu item header file for the Fast Light Tool Kit (FLTK).
//
@@ -26,14 +26,12 @@
#ifndef Fl_Menu_Item_H
#define Fl_Menu_Item_H
-#ifndef Fl_Widget_H
-// used to get the Fl_Callback typedefs:
-#include "Fl_Widget.H"
-#endif
+# include "Fl_Widget.H"
+# include "Fl_Image.H"
-#if defined(__APPLE__) && defined(__MWERKS__) && defined(check)
-# undef check
-#endif
+# if defined(__APPLE__) && defined(__MWERKS__) && defined(check)
+# undef check
+# endif
enum { // values for flags:
FL_MENU_INACTIVE = 1,
@@ -105,6 +103,10 @@ struct Fl_Menu_Item {
void deactivate() {flags |= FL_MENU_INACTIVE;}
int activevisible() const {return !(flags&0x11);}
+ // compatibility for FLUID so it can set the image of a menu item...
+ void image(Fl_Image* a) {a->label(this);}
+ void image(Fl_Image& a) {a.label(this);}
+
// used by menubar:
FL_EXPORT int measure(int* h, const Fl_Menu_*) const;
FL_EXPORT void draw(int x, int y, int w, int h, const Fl_Menu_*, int t=0) const;
@@ -157,5 +159,5 @@ enum { // back-compatability enum:
#endif
//
-// End of "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.4 2002/07/17 15:23:57 easysw Exp $".
+// End of "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.5 2002/08/01 02:02:03 easysw Exp $".
//