org.gstreamer.event
public class NavigationEvent extends Event
NativeObject.Initializer
GTYPE_NAME
defaultInit, ownsHandle
Constructor and Description |
---|
NavigationEvent(NativeObject.Initializer init)
This constructor is for internal use only.
|
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.
|
getStructure
disposeNativeHandle, isWritable, makeWritable, ref, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public NavigationEvent(NativeObject.Initializer init)
init
- initialization data.public 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 NativeObject
public 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 © 2014. All rights reserved.