![]() |
LeechCraft Monocle 0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
|
Base interface for links. More...
#include "ilink.h"
Public Member Functions | |
virtual | ~ILink ()=default |
Virtual destructor. | |
virtual LinkType | GetLinkType () const =0 |
Returns the link type. | |
virtual QRectF | GetArea () const =0 |
Returns the area on the page of this link. | |
virtual LinkAction | GetLinkAction () const =0 |
Returns the link action. | |
virtual QString | GetToolTip () const |
Returns the tooltip for the link. | |
Base interface for links.
Links should implement this interface.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Returns the area on the page of this link.
The returned rectangle is in relative coordinates, that is, with x, y, width and height all belonging to the [0, 1]
range.
If the link doesn't belong to a page (i. e. is a TOC link) the return value isn't used and may be arbitrary.
|
pure virtual |
Returns the link action.
|
pure virtual |
Returns the link type.
|
inlinevirtual |