Trait atk::prelude::HyperlinkExt
source · [−]pub trait HyperlinkExt: 'static {
fn end_index(&self) -> i32;
fn n_anchors(&self) -> i32;
fn object(&self, i: i32) -> Option<Object>;
fn start_index(&self) -> i32;
fn uri(&self, i: i32) -> Option<GString>;
fn is_inline(&self) -> bool;
fn is_valid(&self) -> bool;
fn number_of_anchors(&self) -> i32;
fn connect_link_activated<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_end_index_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_number_of_anchors_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_start_index_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
Gets the index with the hypertext document at which this link ends.
Returns
the index with the hypertext document at which this link ends
Gets the number of anchors associated with this hyperlink.
Returns
the number of anchors associated with this hyperlink
Returns the item associated with this hyperlinks nth anchor.
For instance, the returned Object
will implement Text
if self
is a text hyperlink, Image
if self
is an image
hyperlink etc.
Multiple anchors are primarily used by client-side image maps.
i
a (zero-index) integer specifying the desired anchor
Returns
an Object
associated with this hyperlinks
i-th anchor
fn start_index(&self) -> i32
fn start_index(&self) -> i32
Gets the index with the hypertext document at which this link begins.
Returns
the index with the hypertext document at which this link begins
fn number_of_anchors(&self) -> i32
fn connect_link_activated<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_link_activated<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
The signal link-activated is emitted when a link is activated.