… | |
… | |
3662 | |
3662 | |
3663 | /* ------------------------------------------------------------------------- * |
3663 | /* ------------------------------------------------------------------------- * |
3664 | * MOUSE ROUTINES * |
3664 | * MOUSE ROUTINES * |
3665 | * ------------------------------------------------------------------------- */ |
3665 | * ------------------------------------------------------------------------- */ |
3666 | |
3666 | |
3667 | /* |
|
|
3668 | * return col/row values corresponding to x/y pixel values |
|
|
3669 | */ |
|
|
3670 | void |
|
|
3671 | rxvt_term::pixel_position (int *x, int *y) NOTHROW |
|
|
3672 | { |
|
|
3673 | *x = Pixel2Col (*x); |
|
|
3674 | /* max_it (*x, 0); min_it (*x, (int)ncol - 1); */ |
|
|
3675 | *y = Pixel2Row (*y); |
|
|
3676 | /* max_it (*y, 0); min_it (*y, (int)nrow - 1); */ |
|
|
3677 | } |
|
|
3678 | |
|
|
3679 | /* ------------------------------------------------------------------------- */ |
3667 | /* ------------------------------------------------------------------------- */ |
3680 | #ifdef USE_XIM |
3668 | #ifdef USE_XIM |
3681 | void |
3669 | void |
3682 | rxvt_term::im_set_position (XPoint &pos) NOTHROW |
3670 | rxvt_term::im_set_position (XPoint &pos) NOTHROW |
3683 | { |
3671 | { |