pub trait HyperlinkExt:
IsA<Hyperlink>
+ Sealed
+ 'static {
// Provided methods
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 { ... }
}Provided Methods§
Sourcefn end_index(&self) -> i32
fn 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
Sourcefn n_anchors(&self) -> i32
fn n_anchors(&self) -> i32
Gets the number of anchors associated with this hyperlink.
§Returns
the number of anchors associated with this hyperlink
Sourcefn object(&self, i: i32) -> Option<Object>
fn 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
Sourcefn 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
Sourcefn 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.
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".