Struct webkit6::NavigationAction
source · pub struct NavigationAction { /* private fields */ }
Expand description
Provides details about interaction resulting in a resource load.
GLib type: Boxed type with copy-on-clone semantics.
Implementations§
sourcepub fn as_ptr(&self) -> *mut WebKitNavigationAction
pub fn as_ptr(&self) -> *mut WebKitNavigationAction
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitNavigationAction) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitNavigationAction) -> &Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut(
ptr: &mut *mut WebKitNavigationAction,
) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut( ptr: &mut *mut WebKitNavigationAction, ) -> &mut Self
Borrows the underlying C value mutably.
sourcepub fn frame_name(&mut self) -> Option<GString>
pub fn frame_name(&mut self) -> Option<GString>
Gets the @self target frame name. For example if navigation was triggered by clicking a
link with a target attribute equal to “_blank”, this will return the value of that attribute.
In all other cases this function will return None
.
§Returns
The name of the new frame this navigation action targets or None
sourcepub fn modifiers(&mut self) -> u32
pub fn modifiers(&mut self) -> u32
Return the modifier keys.
Return a bitmask of #GdkModifierType values describing the modifier keys that were in effect when the navigation was requested
§Returns
the modifier keys
Return the number of the mouse button that triggered the navigation.
Return the number of the mouse button that triggered the navigation, or 0 if the navigation was not started by a mouse event.
§Returns
the mouse button number or 0
sourcepub fn request(&mut self) -> Option<URIRequest>
pub fn request(&mut self) -> Option<URIRequest>
Return the #WebKitURIRequest associated with the navigation action.
Modifications to the returned object are
§Returns
a #WebKitURIRequest
sourcepub fn is_redirect(&mut self) -> bool
pub fn is_redirect(&mut self) -> bool
sourcepub fn is_user_gesture(&mut self) -> bool
pub fn is_user_gesture(&mut self) -> bool
Return whether the navigation was triggered by a user gesture like a mouse click.
§Returns
whether navigation action is a user gesture
Trait Implementations§
source§fn from(o: NavigationAction) -> Self
fn from(o: NavigationAction) -> Self
type ParamSpec = ParamSpecBoxed
§type SetValue = NavigationAction
type SetValue = NavigationAction
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, NavigationAction>
fn param_spec_builder() -> Self::BuilderFn
source§fn cmp(&self, other: &NavigationAction) -> Ordering
fn cmp(&self, other: &NavigationAction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§fn eq(&self, other: &NavigationAction) -> bool
fn eq(&self, other: &NavigationAction) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn partial_cmp(&self, other: &NavigationAction) -> Option<Ordering>
fn partial_cmp(&self, other: &NavigationAction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§fn static_type() -> Type
fn static_type() -> Type
Self
.Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)