Mercurial > vim
comparison src/gui_gtk_x11.c @ 88:2b4debdc8d2c v7.0035
updated for version 7.0035
author | vimboss |
---|---|
date | Sat, 08 Jan 2005 21:49:45 +0000 |
parents | 088a834ca0aa |
children | 1f3902f3eb5c |
comparison
equal
deleted
inserted
replaced
87:014ba200db86 | 88:2b4debdc8d2c |
---|---|
6247 | ((unsigned)color.green & 0xff00) | 6247 | ((unsigned)color.green & 0xff00) |
6248 | (((unsigned)color.blue & 0xff00) >> 8); | 6248 | (((unsigned)color.blue & 0xff00) >> 8); |
6249 } | 6249 } |
6250 | 6250 |
6251 /* | 6251 /* |
6252 * Get current y mouse coordinate in text window. | 6252 * Get current mouse coordinates in text window. |
6253 * Return -1 when unknown. | 6253 */ |
6254 */ | 6254 void |
6255 int | 6255 gui_mch_getmouse(int *x, int *y) |
6256 gui_mch_get_mouse_x(void) | 6256 { |
6257 { | 6257 gdk_window_get_pointer(gui.drawarea->window, x, y, NULL); |
6258 int win_x; | |
6259 | |
6260 gdk_window_get_pointer(gui.drawarea->window, &win_x, NULL, NULL); | |
6261 return win_x; | |
6262 } | |
6263 | |
6264 int | |
6265 gui_mch_get_mouse_y(void) | |
6266 { | |
6267 int win_y; | |
6268 | |
6269 gdk_window_get_pointer(gui.drawarea->window, NULL, &win_y, NULL); | |
6270 return win_y; | |
6271 } | 6258 } |
6272 | 6259 |
6273 void | 6260 void |
6274 gui_mch_setmouse(int x, int y) | 6261 gui_mch_setmouse(int x, int y) |
6275 { | 6262 { |