public class NavigationEvent extends Event
Event.TypesMiniObject.HandleNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>GTYPE_NAME| Constructor and Description |
|---|
NavigationEvent(Structure structure)
Creates a new navigation event from the given description.
|
| Modifier and Type | Method and Description |
|---|---|
static NavigationEvent |
createKeyEvent(String event,
String key)
Creates a new key navigation event.
|
static NavigationEvent |
createKeyPressEvent(String key)
Creates a new key press navigation event.
|
static NavigationEvent |
createKeyReleaseEvent(String key)
Creates a new key release navigation event.
|
static NavigationEvent |
createMouseButtonPressEvent(double x,
double y,
int button)
Creates a mouse button press navigation event.
|
static NavigationEvent |
createMouseButtonReleaseEvent(double x,
double y,
int button)
Creates a mouse button release navigation event.
|
static NavigationEvent |
createMouseEvent(String event,
double x,
double y,
int button)
Creates a mouse navigation event.
|
static NavigationEvent |
createMouseMoveEvent(double x,
double y,
int button)
Creates a mouse move navigation event.
|
String |
toString()
Gets a human-readable string representation of this navigation event.
|
getStructurecopy, getRefCount, isWritable, makeWritableclose, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidatepublic NavigationEvent(Structure structure)
Unless you really need a custom navigation event, use one of the static convenience methods for creating navigation events.
structure - the description of the navigation event.public String toString()
toString in class NativeObjectpublic static NavigationEvent createMouseEvent(String event, double x, double y, int button)
event - the type of mouse event.x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createMouseMoveEvent(double x, double y, int button)
x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createMouseButtonPressEvent(double x, double y, int button)
x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createMouseButtonReleaseEvent(double x, double y, int button)
x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createKeyEvent(String event, String key)
event - the type of key event.key - the ascii key code for the key.public static NavigationEvent createKeyPressEvent(String key)
key - the ascii key code for the key.public static NavigationEvent createKeyReleaseEvent(String key)
key - the ascii key code for the key.Copyright © 2021 gstreamer-java. All rights reserved.