#[non_exhaustive]pub enum NavigationCommand {
Show 15 variants
Invalid,
Menu1,
Menu2,
Menu3,
Menu4,
Menu5,
Menu6,
Menu7,
Left,
Right,
Up,
Down,
Activate,
PrevAngle,
NextAngle,
}
Expand description
A set of commands that may be issued to an element providing the
Navigation
interface. The available commands can be queried via
the gst_navigation_query_new_commands()
query.
For convenience in handling DVD navigation, the MENU commands are aliased as:
GST_NAVIGATION_COMMAND_DVD_MENU = Menu1
GST_NAVIGATION_COMMAND_DVD_TITLE_MENU = Menu2
GST_NAVIGATION_COMMAND_DVD_ROOT_MENU = Menu3
GST_NAVIGATION_COMMAND_DVD_SUBPICTURE_MENU = Menu4
GST_NAVIGATION_COMMAND_DVD_AUDIO_MENU = Menu5
GST_NAVIGATION_COMMAND_DVD_ANGLE_MENU = Menu6
GST_NAVIGATION_COMMAND_DVD_CHAPTER_MENU = Menu7
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Invalid
An invalid command entry
Menu1
Execute navigation menu command 1. For DVD, this enters the DVD root menu, or exits back to the title from the menu.
Menu2
Execute navigation menu command 2. For DVD, this jumps to the DVD title menu.
Menu3
Execute navigation menu command 3. For DVD, this jumps into the DVD root menu.
Menu4
Execute navigation menu command 4. For DVD, this jumps to the Subpicture menu.
Menu5
Execute navigation menu command 5. For DVD, the jumps to the audio menu.
Menu6
Execute navigation menu command 6. For DVD, this jumps to the angles menu.
Menu7
Execute navigation menu command 7. For DVD, this jumps to the chapter menu.
Left
Select the next button to the left in a menu, if such a button exists.
Right
Select the next button to the right in a menu, if such a button exists.
Up
Select the button above the current one in a menu, if such a button exists.
Down
Select the button below the current one in a menu, if such a button exists.
Activate
Activate (click) the currently selected button in a menu, if such a button exists.
PrevAngle
Switch to the previous angle in a multiangle feature.
NextAngle
Switch to the next angle in a multiangle feature.
Trait Implementations§
source§fn clone(&self) -> NavigationCommand
fn clone(&self) -> NavigationCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§fn from(v: NavigationCommand) -> Self
fn from(v: NavigationCommand) -> Self
§type Checker = GenericValueTypeChecker<NavigationCommand>
type Checker = GenericValueTypeChecker<NavigationCommand>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moretype ParamSpec = ParamSpecEnum
§type SetValue = NavigationCommand
type SetValue = NavigationCommand
type BuilderFn = fn(_: &str, _: NavigationCommand) -> ParamSpecEnumBuilder<'_, NavigationCommand>
fn param_spec_builder() -> Self::BuilderFn
source§fn cmp(&self, other: &NavigationCommand) -> Ordering
fn cmp(&self, other: &NavigationCommand) -> 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: &NavigationCommand) -> bool
fn eq(&self, other: &NavigationCommand) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn partial_cmp(&self, other: &NavigationCommand) -> Option<Ordering>
fn partial_cmp(&self, other: &NavigationCommand) -> 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
.§type Type = NavigationCommand
type Type = NavigationCommand
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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> 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
)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
.