[][src]Trait atk::HyperlinkExt

pub trait HyperlinkExt: 'static {
    fn get_end_index(&self) -> i32;
fn get_n_anchors(&self) -> i32;
fn get_object(&self, i: i32) -> Option<Object>;
fn get_start_index(&self) -> i32;
fn get_uri(&self, i: i32) -> Option<GString>;
fn is_inline(&self) -> bool;
fn is_valid(&self) -> bool;
fn get_property_number_of_anchors(&self) -> i32;
fn connect_link_activated<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_end_index_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_number_of_anchors_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_start_index_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all Hyperlink methods.

Implementors

Hyperlink

Required methods

fn get_end_index(&self) -> i32

Gets the index with the hypertext document at which this link ends.

Returns

the index with the hypertext document at which this link ends

fn get_n_anchors(&self) -> i32

Gets the number of anchors associated with this hyperlink.

Returns

the number of anchors associated with this hyperlink

fn get_object(&self, i: i32) -> Option<Object>

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 get_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 get_uri(&self, i: i32) -> Option<GString>

Get a the URI associated with the anchor specified by i of self.

Multiple anchors are primarily used by client-side image maps.

i

a (zero-index) integer specifying the desired anchor

Returns

a string specifying the URI

fn is_inline(&self) -> bool

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

whether or not this link displays its content inline.

fn is_valid(&self) -> bool

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

whether or not this link is still valid

fn get_property_number_of_anchors(&self) -> i32

The signal link-activated is emitted when a link is activated.

fn connect_property_end_index_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_number_of_anchors_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_start_index_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<Hyperlink>> HyperlinkExt for O[src]

Loading content...