atk.hyperlink
Module for [Hyperlink] class
Types 3
An ATK object which encapsulates a link or set of links in a hypertext document.
An ATK object which encapsulates a link or set of links (for instance in the case of client-side image maps) in a hypertext document. It may implement the AtkAction interface. AtkHyperlink may also be used to refer to inline embedded content, since it allows specification of a start and end offset within the host AtkHypertext object.
Methods
HyperlinkGidBuilder builder()Get builder for [atk.hyperlink.Hyperlink] Returns: New builder objectint endIndex() @propertyint numberOfAnchors() @propertyint startIndex() @propertyint getEndIndex()Gets the index with the hypertext document at which this link ends. Returns: the index with the hypertext document at which this link endsint getNAnchors()Gets the number of anchors associated with this hyperlink. Returns: the number of anchors associated with this hyperlinkatk.object.ObjectWrap getObject(int i)Returns the item associated with this hyperlinks nth anchor. For instance, the returned #AtkObject will implement #AtkText if link is a text hyperlink, #AtkImage if link is an image hyperlink etc.int getStartIndex()Gets the index with the hypertext document at which this link begins. Returns: the index with the hypertext document at which this link beginsstring getUri(int i)Get a the URI associated with the anchor specified by `i` of link_.bool isInline()Indicates whether the link currently displays some or all of its content inline. Ordinary HTML links will usually return false, but an inline <src> HTML element will return true. Returns: wh...bool isSelectedLink()Determines whether this AtkHyperlink is selected Returns: True if the AtkHyperlink is selected, False otherwisebool isValid()Since the document that a link is associated with may have changed this method returns true if the link is still valid (with respect to the document it references) and false otherwise. Returns: whe...gulong connectLinkActivated(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : atk.hyperlink.Hyperlink)))
&& Parameters!T.length < 2)Connect to `LinkActivated` signal.