#endif
typedef struct {
- int nx, ny; /* Dimensions of the table */
- int dx, dy; /* Size of each item */
- int bx, by; /* Bitmap's position */
- int bw, bh; /* Bitmap dimensions */
- unsigned char const * bdata; /* Bitmap data */
- int maxi; /* Number of items */
- int i; /* Current position */
- int mousebut; /* mouse button pushed */
- Pixmap pix; /* Pixmap from data (temporal) */
+ int nx, ny; /**< Dimensions of the table */
+ int dx, dy; /**< Size of each item */
+ int bx, by; /**< Bitmap's position */
+ int bw, bh; /**< Bitmap dimensions */
+ unsigned char const * bdata; /**< Bitmap data */
+ int maxi; /**< Number of items */
+ int i; /**< Current position */
+ int mousebut; /**< mouse button pushed */
+ Pixmap pix; /**< Pixmap from data (temporal) */
} BMTABLE_SPEC;
void fl_set_bmtable_file(FL_OBJECT * ob, int nx, int ny, char const * filename)
{
- int xh, yh;
- unsigned int bw, bh;
+ int xh;
+ int yh;
+ unsigned int bw;
+ unsigned int bh;
unsigned char * bdata;
- if(XReadBitmapFileData(filename, &bw, &bh,
+ if (XReadBitmapFileData(filename, &bw, &bh,
&bdata, &xh, &yh) == BitmapSuccess)
fl_set_bmtable_data(ob, nx, ny, bw, bh, bdata);
XFlush(fl_get_display());
void fl_draw_bmtable_item(FL_OBJECT * ob, int i, Drawable d, int xx, int yy)
{
- int x, y, w, h;
+ int x;
+ int y;
+ int w;
+ int h;
GC gc = fl_state[fl_get_vclass()].gc[0];
BMTABLE_SPEC * sp = (BMTABLE_SPEC *)ob->spec;