#[non_exhaustive]pub enum NavigationEventType {
Show 14 variants
Invalid,
KeyPress,
KeyRelease,
MouseButtonPress,
MouseButtonRelease,
MouseMove,
Command,
MouseScroll,
TouchDown,
TouchMotion,
TouchUp,
TouchFrame,
TouchCancel,
MouseDoubleClick,
}
Expand description
Enum values for the various events that an element implementing the GstNavigation interface might send up the pipeline. Touch events have been inspired by the libinput API, and have the same meaning here.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Invalid
Returned from
[Navigation::event_get_type()
][crate::Navigation::event_get_type()] when the passed event is not a navigation event.
KeyPress
A key press event. Use
[Navigation::event_parse_key_event()
][crate::Navigation::event_parse_key_event()] to extract the details from the event.
KeyRelease
A key release event. Use
[Navigation::event_parse_key_event()
][crate::Navigation::event_parse_key_event()] to extract the details from the event.
MouseButtonPress
A mouse button press event. Use
[Navigation::event_parse_mouse_button_event()
][crate::Navigation::event_parse_mouse_button_event()] to extract the details from the
event.
MouseButtonRelease
A mouse button release event. Use
[Navigation::event_parse_mouse_button_event()
][crate::Navigation::event_parse_mouse_button_event()] to extract the details from the
event.
MouseMove
A mouse movement event. Use
[Navigation::event_parse_mouse_move_event()
][crate::Navigation::event_parse_mouse_move_event()] to extract the details from the
event.
Command
A navigation command event. Use
[Navigation::event_parse_command()
][crate::Navigation::event_parse_command()] to extract the details from the event.
MouseScroll
A mouse scroll event. Use [Navigation::event_parse_mouse_scroll_event()
][crate::Navigation::event_parse_mouse_scroll_event()]
to extract the details from the event.
TouchDown
An event describing a new touch point, which will be assigned an identifier
that is unique to it for the duration of its movement on the screen.
Use [Navigation::event_parse_touch_event()
][crate::Navigation::event_parse_touch_event()] to extract the details
from the event.
TouchMotion
An event describing the movement of an active touch point across
the screen. Use [Navigation::event_parse_touch_event()
][crate::Navigation::event_parse_touch_event()] to extract
the details from the event.
TouchUp
An event describing a removed touch point. After this event,
its identifier may be reused for any new touch points.
Use [Navigation::event_parse_touch_up_event()
][crate::Navigation::event_parse_touch_up_event()] to extract the details
from the event.
TouchFrame
An event signaling the end of a sequence of simultaneous touch events.
TouchCancel
An event cancelling all currently active touch points.
MouseDoubleClick
A mouse button double click event.
Use [Navigation::event_parse_mouse_button_event()
][crate::Navigation::event_parse_mouse_button_event()] to extract the details
from the event.
Trait Implementations§
source§fn clone(&self) -> NavigationEventType
fn clone(&self) -> NavigationEventType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn from(v: NavigationEventType) -> Self
fn from(v: NavigationEventType) -> Self
§type Checker = GenericValueTypeChecker<NavigationEventType>
type Checker = GenericValueTypeChecker<NavigationEventType>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moretype ParamSpec = ParamSpecEnum
§type SetValue = NavigationEventType
type SetValue = NavigationEventType
type BuilderFn = fn(_: &str, _: NavigationEventType) -> ParamSpecEnumBuilder<'_, NavigationEventType>
fn param_spec_builder() -> Self::BuilderFn
source§fn cmp(&self, other: &NavigationEventType) -> Ordering
fn cmp(&self, other: &NavigationEventType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§fn static_type() -> Type
fn static_type() -> Type
Self
.§type Type = NavigationEventType
type Type = NavigationEventType
Type
from. Read moreAuto 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.