pub trait HitTestResultExt: 'static {
    fn context_is_editable(&self) -> bool;
    fn context_is_image(&self) -> bool;
    fn context_is_link(&self) -> bool;
    fn context_is_media(&self) -> bool;
    fn context_is_scrollbar(&self) -> bool;
    fn context_is_selection(&self) -> bool;
    fn context(&self) -> u32;
    fn image_uri(&self) -> Option<GString>;
    fn link_label(&self) -> Option<GString>;
    fn link_title(&self) -> Option<GString>;
    fn link_uri(&self) -> Option<GString>;
    fn media_uri(&self) -> Option<GString>;
}
Expand description

Required Methods

Gets whether HitTestResultContext::EDITABLE flag is present in property::HitTestResult::context.

Returns

true if there’s an editable element at the coordinates of the self, or false otherwise

Gets whether HitTestResultContext::IMAGE flag is present in property::HitTestResult::context.

Returns

true if there’s an image element in the coordinates of the Hit Test, or false otherwise

Gets whether HitTestResultContext::LINK flag is present in property::HitTestResult::context.

Returns

true if there’s a link element in the coordinates of the Hit Test, or false otherwise

Gets whether HitTestResultContext::MEDIA flag is present in property::HitTestResult::context.

Returns

true if there’s a media element in the coordinates of the Hit Test, or false otherwise

Gets whether HitTestResultContext::SCROLLBAR flag is present in property::HitTestResult::context.

Returns

true if there’s a scrollbar element at the coordinates of the self, or false otherwise

Available on crate feature v2_8 only.

Gets whether HitTestResultContext::SELECTION flag is present in property::HitTestResult::context.

Returns

true if there’s a selected element at the coordinates of the self, or false otherwise

Gets the value of the property::HitTestResult::context property.

Returns

a bitmask of HitTestResultContext flags

Gets the value of the property::HitTestResult::image-uri property.

Returns

the URI of the image element in the coordinates of the Hit Test, or None if there isn’t an image element in self context

Gets the value of the property::HitTestResult::link-label property.

Returns

the label of the link element in the coordinates of the Hit Test, or None if there isn’t a link element in self context or the link element doesn’t have a label

Gets the value of the property::HitTestResult::link-title property.

Returns

the title of the link element in the coordinates of the Hit Test, or None if there isn’t a link element in self context or the link element doesn’t have a title

Gets the value of the property::HitTestResult::link-uri property.

Returns

the URI of the link element in the coordinates of the Hit Test, or None if there isn’t a link element in self context

Gets the value of the property::HitTestResult::media-uri property.

Returns

the URI of the media element in the coordinates of the Hit Test, or None if there isn’t a media element in self context

Implementors