|
Foxit PDF SDK
9.1
|
The tool handler, it handles the gesture and touch events, which a tool should always implement most of them. More...
Instance Methods | |
| (NSString *) | - getName |
| Get the tool name. More... | |
| (BOOL) | - isEnabled |
| If the tool handler is enabled. More... | |
| (void) | - onActivate |
| If the tool handler is activated. More... | |
| (void) | - onDeactivate |
| If the tool handler is deactivated. More... | |
| (void) | - onDraw:inContext: |
| Drawing event on the specified page. More... | |
| (BOOL) | - onPageViewLongPress:recognizer: |
| Long press gesture on the specified page. More... | |
| (BOOL) | - onPageViewPan:recognizer: |
| Pan gesture on the specified page. More... | |
| (BOOL) | - onPageViewShouldBegin:recognizer: |
| Should being gesture on the specified page. More... | |
| (BOOL) | - onPageViewTap:recognizer: |
| Tap gesture on the specified page. More... | |
| (BOOL) | - onPageViewTouchesBegan:touches:withEvent: |
| Touches began on the specified page. More... | |
| (BOOL) | - onPageViewTouchesCancelled:touches:withEvent: |
| Touches cancelled on the specified page. More... | |
| (BOOL) | - onPageViewTouchesEnded:touches:withEvent: |
| Touches ended on the specified page. More... | |
| (BOOL) | - onPageViewTouchesMoved:touches:withEvent: |
| Touches moved on the specified page. More... | |
| (BOOL) | - shouldDrawAnnot:inPDFViewCtrl: |
| Should pdfViewCtrl draw annot, if NO annot handler will draw annot by itself in onDraw:inContext:annot:. More... | |
Properties | |
| FSReadToolSettings * | toolSettings |
| Get/set the tool settings. More... | |
| FSAnnotType | type |
| Get/set the current annot type if it's an annotation tool handler. More... | |
The tool handler, it handles the gesture and touch events, which a tool should always implement most of them.
| - (NSString *) getName |
Get the tool name.
| - (BOOL) isEnabled |
If the tool handler is enabled.
| - (void) onActivate |
If the tool handler is activated.
| - (void) onDeactivate |
If the tool handler is deactivated.
| - (void) onDraw: | (int) | pageIndex | |
| inContext: | (CGContextRef) | context | |
Drawing event on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | context | Drawing context. |
| - (BOOL) onPageViewLongPress: | (int) | pageIndex | |
| recognizer: | (UILongPressGestureRecognizer *) | recognizer | |
Long press gesture on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | recognizer | Long press gesture. |
| - (BOOL) onPageViewPan: | (int) | pageIndex | |
| recognizer: | (UIPanGestureRecognizer *) | recognizer | |
Pan gesture on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | recognizer | Pan gesture. |
| - (BOOL) onPageViewShouldBegin: | (int) | pageIndex | |
| recognizer: | (UIGestureRecognizer *) | gestureRecognizer | |
Should being gesture on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | gestureRecognizer | Responsive gesture. |
| - (BOOL) onPageViewTap: | (int) | pageIndex | |
| recognizer: | (UITapGestureRecognizer *_Nullable) | recognizer | |
Tap gesture on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | recognizer | Tap gesture. |
| - (BOOL) onPageViewTouchesBegan: | (int) | pageIndex | |
| touches: | (NSSet *) | touches | |
| withEvent: | (UIEvent *) | event | |
Touches began on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | touches | Touch set. |
| [in] | event | Touch event. |
| - (BOOL) onPageViewTouchesCancelled: | (int) | pageIndex | |
| touches: | (NSSet *) | touches | |
| withEvent: | (UIEvent *) | event | |
Touches cancelled on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | touches | Touch set. |
| [in] | event | Touch event. |
| - (BOOL) onPageViewTouchesEnded: | (int) | pageIndex | |
| touches: | (NSSet *) | touches | |
| withEvent: | (UIEvent *) | event | |
Touches ended on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | touches | Touch set. |
| [in] | event | Touch event. |
| - (BOOL) onPageViewTouchesMoved: | (int) | pageIndex | |
| touches: | (NSSet *) | touches | |
| withEvent: | (UIEvent *) | event | |
Touches moved on the specified page.
| [in] | pageIndex | The pdf page index,0 for the first page. |
| [in] | touches | Touch set. |
| [in] | event | Touch event. |
| - (BOOL) shouldDrawAnnot: | (FSAnnot *) | annot | |
| inPDFViewCtrl: | (FSPDFViewCtrl *) | pdfViewCtrl | |
Should pdfViewCtrl draw annot, if NO annot handler will draw annot by itself in onDraw:inContext:annot:.
| [in] | annot | Annot to draw. |
| [in] | pdfViewCtrl | The pdf view control. |
|
readwriteoptionalnonatomicweak |
Get/set the tool settings.
|
readwritenonatomicassign |
Get/set the current annot type if it's an annotation tool handler.