pdfSetMouseDoubleClickWinCbk

Set a callback function for mouse button double-click events with window coordinates.
void pdfSetMouseDoubleClickWinCbk(PDFViewerHandle viewer, void (*cbk)(void *data, int button, int shift, int winX, int winY), void *data)
This function sets a callback which will be called when the user double-clicks a mouse button.

The function will be called with six arguments:

Window coordinates can be converted to PDF coordinates with pdfConvertWindowToPDFCoords2.

This callback is similar to pdfSetMouseDoubleClickCbk, except that (a) it is called with window coordinates instead of PDF coordinates, and (b) it will be called even if the mouse is clicked outside of a PDF page.

C:
void mouseDoubleClickWinCbk(void *data, int button, int shift, int winX, int winY) { Context *myContext = (Context *)data; int pg; double x, y; pdfConvertWindowToPDFCoords2(viewer, winX, winY, &pg, &x, &y); /* ... use pg, x, y ... */ } .... pdfSetMouseDoubleClickWinCbk(viewer, &mouseDoubleClickCbk, &myContext);
pdfSetMouseDownWinCbk
pdfSetMouseUpWinCbk
pdfSetMouseMoveWinCbk
pdfConvertWindowToPDFCoords2
pdfSetMouseDoubleClickCbk