Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b96b0d782c858619536ab397b702cc7e > files > 28

mpich2-doc-1.0.8-2mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MPE_Get_mouse_press</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="MPE_Get_mouse_press"><H1>MPE_Get_mouse_press</H1></A>
Waits for mouse button press 
<H2>Synopsis</H2>
<PRE>
#include "mpe.h" 
int MPE_Get_mouse_press( graph, x, y, button )
MPE_XGraph graph;
int *x, *y, *button;
</PRE>
<H2>Input Parameter</H2>
<DL><DT><B>graph </B> <DD> MPE graphics handle
</DL>
<P>
<H2>Output Parameters</H2>
<DL>
<DT><B>x </B><DD>horizontal coordinate of the point where the mouse button was pressed

<DT><B>y </B><DD>vertical coordinate of the point where the mouse button was pressed

<DT><B>button </B><DD>which button was pressed: 'MPE_BUTTON[1-5]'
</DL>
<P>
<H2>Notes</H2>
This routine waits for mouse button press, blocking
until the mouse button is pressed inside this MPE window.
When pressed, returns the coordinate relative to the upper right of
this MPE window and the button that was pressed.
<P>
<P><B>Location:</B>../src/graphics/src/xmouse.c<P>
</BODY></HTML>