FoxitPDFSDKforWeb  v10.0.0
Foxit PDF SDK for Web
IFloatingTooltip Class Reference

An abstract class used to implement floating box components displayed after text selection or other operations. More...

Inheritance diagram for IFloatingTooltip:
Disposable

Public Member Functions

 destroy ()
 Override this method to implement the destruction logic of tooltip.
 
 disable ()
 Override this method to implement the logical to make tooltip unusable.
 
 enable ()
 Override this method to implement the logical to make tooltip usable.
 
 hide ()
 Override this method to implement to hide the tooltip.
 
 showAt (x, y, text, rects)
 Override this method to implement the logical to display the tooltip at specified position which relative to the top left of the currently operatering PDF page. More...
 
- Public Member Functions inherited from Disposable
 addDestroyHook (...hooks)
 
 destroy ()
 

Detailed Description

An abstract class used to implement floating box components displayed after text selection or other operations.

See also
IViewerUI.createTextSelectionTooltip

Member Function Documentation

◆ showAt()

IFloatingTooltip::showAt (   x,
  y,
  text,
  rects 
)
inline

Override this method to implement the logical to display the tooltip at specified position which relative to the top left of the currently operatering PDF page.

Parameters
pageXnumber - The x-axis coordinate relative to the top left corner of the page in pixel
pageYnumber - The y-axis coordinate relative to the top left corner of the page in pixel
textstring - selected text (This parameter is only available when selecting text operation)
rectsArray<{left:number,right:number,top:number,bottom:number}> - The selected text rects, relatives to the left top corner of the page in pixel. (This parameter is only available when selecting text operation)

Foxit Software Corporation Logo
@2024 Foxit Software Incorporated. All rights reserved.