X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_panel.h;h=4d33d0aba7c1b7d4da2b4885c1e44697d47c7d77;hb=49b9dbdf104e55708cc0d8dc67706029ead80812;hp=3c34f3f6c78b3e182dcb4079649d6dec6cebe44c;hpb=0eccdd1c3613e5170deb77b22174dd0afde833e9;p=lyx.git diff --git a/src/mathed/math_panel.h b/src/mathed/math_panel.h index 3c34f3f6c7..4d33d0aba7 100644 --- a/src/mathed/math_panel.h +++ b/src/mathed/math_panel.h @@ -33,17 +33,17 @@ enum { }; /// -typedef FL_OBJECT* FL_OBJECTP; +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 /// @@ -53,20 +53,20 @@ class BitmapMenu { /// 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(); /// @@ -78,9 +78,12 @@ class BitmapMenu { /// 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() {