comparison src/gui_kde_x11.cc @ 87:014ba200db86

updated for version 7.0035
author vimboss
date Sat, 08 Jan 2005 21:45:39 +0000
parents 388f285bda1b
children 5c65f9e56459
comparison
equal deleted inserted replaced
86:8173ec1e9f1f 87:014ba200db86
1301 // funny no ? it looks like with Qt we can always use directly the rgb 1301 // funny no ? it looks like with Qt we can always use directly the rgb
1302 // value (i hope i don't break colors again ;p) 1302 // value (i hope i don't break colors again ;p)
1303 }//}}} 1303 }//}}}
1304 1304
1305 /* 1305 /*
1306 * Get current y mouse coordinate in text window. 1306 * Get current mouse coordinates in text window.
1307 * Return -1 when unknown. 1307 */
1308 */ 1308 void
1309 int 1309 gui_mch_getmouse(int *x, int *y)//{{{
1310 gui_mch_get_mouse_x(void)//{{{ 1310 {
1311 { 1311 *x = vmw->mapFromGlobal(QCursor::pos()).x();
1312 return vmw->mapFromGlobal(QCursor::pos()).x(); 1312 *y = vmw->mapFromGlobal(QCursor::pos()).y();
1313 }//}}}
1314
1315 int
1316 gui_mch_get_mouse_y(void)//{{{
1317 {
1318 return vmw->mapFromGlobal(QCursor::pos()).y();
1319 }//}}} 1313 }//}}}
1320 1314
1321 void 1315 void
1322 gui_mch_setmouse(int x, int y)//{{{ 1316 gui_mch_setmouse(int x, int y)//{{{
1323 { 1317 {