PetscDrawGetMouseButton#

Returns location of mouse and which button was pressed. Waits for button to be pressed.

Synopsis#

#include "petscdraw.h" 
PetscErrorCode PetscDrawGetMouseButton(PetscDraw draw, PetscDrawButton *button, PetscReal *x_user, PetscReal *y_user, PetscReal *x_phys, PetscReal *y_phys)

Collective

Input Parameter#

  • draw - the window to be used

Output Parameters#

Note#

Only processor 0 actually waits for the button to be pressed.

See Also#

PetscDraw, PetscDrawButton

Level#

intermediate

Location#

src/sys/classes/draw/interface/dmouse.c

Implementations#

PetscDrawGetMouseButton_Image() in src/sys/classes/draw/impls/image/drawimage.c
PetscDrawGetMouseButton_Win32() in src/sys/classes/draw/impls/win32/win32draw.c
PetscDrawGetMouseButton_X() in src/sys/classes/draw/impls/x/xops.c


Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages