Go to the source code of this file.
|
#define | VXRES(gs) (gs->x_mod * gs->xres) |
|
#define | VYRES(gs) (gs->y_mod * gs->yres) |
|
#define | VROWS(gs) (int)((gs->rows - 1) / gs->y_mod) |
|
#define | VCOLS(gs) (int)((gs->cols - 1) / gs->x_mod) |
|
#define | DRC2OFF(gs, drow, dcol) (int)((dcol) + (drow) * gs->cols) |
|
#define | Y2DROW(gs, py) (int)((gs->yrange - (py)) / gs->yres) |
|
#define | X2DCOL(gs, px) (int)((px) / gs->xres) |
|
#define | XY2OFF(gs, px, py) (int)DRC2OFF(gs, Y2DROW(gs, py), X2DCOL(gs, px)) |
|
#define | Y2VROW(gs, py) (int)((gs->yrange - (py)) / (gs->yres * gs->y_mod)) |
|
#define | X2VCOL(gs, px) (int)((px) / (gs->xres * gs->x_mod)) |
|
#define | VROW2DROW(gs, vrow) (int)(gs->y_mod * (vrow)) |
|
#define | VCOL2DCOL(gs, vcol) (int)(gs->x_mod * (vcol)) |
|
#define | DROW2Y(gs, drow) (gs->yrange - ((drow) * gs->yres)) |
|
#define | DCOL2X(gs, dcol) ((dcol) * gs->xres) |
|
#define | VROW2Y(gs, vrow) (gs->yrange - ((vrow) * gs->yres * gs->y_mod)) |
|
#define | VCOL2X(gs, vcol) ((vcol) * gs->xres * gs->x_mod) |
|
◆ DCOL2X
#define DCOL2X |
( |
|
gs, |
|
|
|
dcol |
|
) |
| ((dcol) * gs->xres) |
◆ DRC2OFF
#define DRC2OFF |
( |
|
gs, |
|
|
|
drow, |
|
|
|
dcol |
|
) |
| (int)((dcol) + (drow) * gs->cols) |
◆ DROW2Y
#define DROW2Y |
( |
|
gs, |
|
|
|
drow |
|
) |
| (gs->yrange - ((drow) * gs->yres)) |
◆ VCOL2DCOL
#define VCOL2DCOL |
( |
|
gs, |
|
|
|
vcol |
|
) |
| (int)(gs->x_mod * (vcol)) |
◆ VCOL2X
#define VCOL2X |
( |
|
gs, |
|
|
|
vcol |
|
) |
| ((vcol) * gs->xres * gs->x_mod) |
◆ VCOLS
#define VCOLS |
( |
|
gs | ) |
(int)((gs->cols - 1) / gs->x_mod) |
◆ VROW2DROW
#define VROW2DROW |
( |
|
gs, |
|
|
|
vrow |
|
) |
| (int)(gs->y_mod * (vrow)) |
◆ VROW2Y
#define VROW2Y |
( |
|
gs, |
|
|
|
vrow |
|
) |
| (gs->yrange - ((vrow) * gs->yres * gs->y_mod)) |
◆ VROWS
#define VROWS |
( |
|
gs | ) |
(int)((gs->rows - 1) / gs->y_mod) |
◆ VXRES
#define VXRES |
( |
|
gs | ) |
(gs->x_mod * gs->xres) |
◆ VYRES
#define VYRES |
( |
|
gs | ) |
(gs->y_mod * gs->yres) |
◆ X2DCOL
#define X2DCOL |
( |
|
gs, |
|
|
|
px |
|
) |
| (int)((px) / gs->xres) |
◆ X2VCOL
#define X2VCOL |
( |
|
gs, |
|
|
|
px |
|
) |
| (int)((px) / (gs->xres * gs->x_mod)) |
◆ XY2OFF
◆ Y2DROW
#define Y2DROW |
( |
|
gs, |
|
|
|
py |
|
) |
| (int)((gs->yrange - (py)) / gs->yres) |
◆ Y2VROW
#define Y2VROW |
( |
|
gs, |
|
|
|
py |
|
) |
| (int)((gs->yrange - (py)) / (gs->yres * gs->y_mod)) |