Doing my experiments with Layout Manager I make fl_Widget derived from
Fl_Rectangle (Rectangle from fltk 2.0) and typedefed int to coord_t and
made it as float to test, only a few casts was needed on fluid when
gereating code and using "%d" on printf like functions, and on
Fl_Gl_Device_Plugin "fl_draw_image(baseAddress + (int(glw->h()) - 1) *
mByteWidth, x, y , glw->w(), glw->h(), bytesperpixel, - mByteWidth);".
Also noticed that a similar typedef is in use on Fl_Device.H:
// typedef what the x,y fields in a point are:
#ifdef WIN32
typedef int COORD_T;
# define XPOINT XPoint
#elif defined(__APPLE_QUARTZ__)
typedef float COORD_T;
typedef struct { float x; float y; } QPoint;
# define XPOINT QPoint
extern float fl_quartz_line_width_;
#else
typedef short COORD_T;
# define XPOINT XPoint
#endif
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev