};
///
-typedef FL_OBJECT* FL_OBJECTP;
-
-extern "C" {
- int peek_event(FL_FORM *, void *);
-}
+typedef FL_OBJECT * FL_OBJECTP;
/// Class to manage bitmap menu bars
class BitmapMenu {
///
- static BitmapMenu *active;
+ static BitmapMenu * active;
///
friend int peek_event(FL_FORM *, void *);
- protected:
+protected:
///
- BitmapMenu *next, *prev;
+ BitmapMenu * next, * prev;
///
int nb; // Number of bitmaps
///
///
int x, y, w, h;
///
- FL_FORM *form;
+ FL_FORM * form;
///
- FL_OBJECTP *bitmap;
+ FL_OBJECTP * bitmap;
///
- FL_OBJECT *button;
+ FL_OBJECT * button;
public:
///
- BitmapMenu(int n, FL_OBJECT* bt, BitmapMenu* prevx=0);
+ BitmapMenu(int n, FL_OBJECT * bt, BitmapMenu * prevx= 0);
///
~BitmapMenu();
///
- FL_OBJECT* AddBitmap(int id,
+ FL_OBJECT * AddBitmap(int id,
int nx, int ny, int bw, int bh,
- char* data, Bool vert=True); // Why Bool?
+ unsigned char * data, Bool vert= True); // Why Bool?
///
void Create();
///
///
void Next();
///
- int GetIndex(FL_OBJECT* ob);
+ int GetIndex(FL_OBJECT * ob);
};
+// This is just a wrapper around peek_event()
+extern "C" int C_peek_event(FL_FORM * form, void * ptr);
+
inline
void BitmapMenu::Prev() {