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
sourcefn context_is_editable(&self) -> bool
fn context_is_editable(&self) -> bool
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
sourcefn context_is_image(&self) -> bool
fn context_is_image(&self) -> bool
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
sourcefn context_is_link(&self) -> bool
fn context_is_link(&self) -> bool
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
sourcefn context_is_media(&self) -> bool
fn context_is_media(&self) -> bool
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
sourcefn context_is_scrollbar(&self) -> bool
fn context_is_scrollbar(&self) -> bool
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
sourcefn context_is_selection(&self) -> bool
fn context_is_selection(&self) -> bool
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
sourcefn context(&self) -> u32
fn context(&self) -> u32
Gets the value of the property::HitTestResult::context
property.
Returns
a bitmask of HitTestResultContext
flags