pdfSetRegionDoubleClickCbk
Set a callback function for region double-click events.
void pdfSetRegionDoubleClickCbk(PDFViewerHandle viewer,
void (*cbk)(void *data, PDFRegionHandle region, int button),
void *data)
This function sets a callback which will be called when the user
double-clicks on a highlighted region.
The function will be called with three arguments:
data
: the value of thedata
argument that was passed topdfSetRegionSelectedCbk
region
: the handle for the regionbutton
: the mouse button number - one ofpdfLeftButton
,pdfMiddleButton
, orpdfRightButton
C:
void regionDoubleClickCbk(void *data, PDFRegionHandle region, int button) {
/* a region has been double-clicked ... */
}
....
pdfSetRegionDoubleClickCbk(viewer, ®ionDoubleClickCbk, data);