Package org.freedesktop.gstreamer.video
Enum Class NavigationEventType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<NavigationEventType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum NavigationEventType
extends Enum<NavigationEventType>
implements Enumeration
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA navigation command event.Returned from gst_navigation_event_get_type() when the passed event is not a navigation event.A key press event.A key release event.A mouse button press event.A mouse button release event.A mouse movement event.A mouse scroll event.An event cancelling all currently active touch points.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.An event signaling the end of a sequence of simultaneous touch events.An event describing the movement of an active touch point across the screen.An event describing a removed touch point. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the NavigationEventType classint
getValue()
Get the numeric value of this enumstatic NavigationEventType
of
(int value) Create a new NavigationEventType for the provided valuestatic NavigationEventType
Returns the enum constant of this class with the specified name.static NavigationEventType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
Returned from gst_navigation_event_get_type() when the passed event is not a navigation event. -
KEY_PRESS
A key press event. Use gst_navigation_event_parse_key_event() to extract the details from the event. -
KEY_RELEASE
A key release event. Use gst_navigation_event_parse_key_event() to extract the details from the event. -
MOUSE_BUTTON_PRESS
A mouse button press event. Use gst_navigation_event_parse_mouse_button_event() to extract the details from the event. -
MOUSE_BUTTON_RELEASE
A mouse button release event. Use gst_navigation_event_parse_mouse_button_event() to extract the details from the event. -
MOUSE_MOVE
A mouse movement event. Use gst_navigation_event_parse_mouse_move_event() to extract the details from the event. -
COMMAND
A navigation command event. Use gst_navigation_event_parse_command() to extract the details from the event. -
MOUSE_SCROLL
A mouse scroll event. Use gst_navigation_event_parse_mouse_scroll_event() to extract the details from the event. -
TOUCH_DOWN
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 gst_navigation_event_parse_touch_event() to extract the details from the event. -
TOUCH_MOTION
An event describing the movement of an active touch point across the screen. Use gst_navigation_event_parse_touch_event() to extract the details from the event. -
TOUCH_UP
An event describing a removed touch point. After this event, its identifier may be reused for any new touch points. Use gst_navigation_event_parse_touch_up_event() to extract the details from the event. -
TOUCH_FRAME
An event signaling the end of a sequence of simultaneous touch events. -
TOUCH_CANCEL
An event cancelling all currently active touch points.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new NavigationEventType for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-