|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Event
org.gstreamer.event.NavigationEvent
public class NavigationEvent
Navigation events are usually used for communicating user requests, such as mouse or keyboard movements, to upstream elements.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject |
---|
NativeObject.Initializer |
Field Summary |
---|
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
---|
defaultInit, LIFECYCLE, ownsHandle |
Constructor Summary | |
---|---|
NavigationEvent(NativeObject.Initializer init)
This constructor is for internal use only. |
|
NavigationEvent(Structure structure)
Creates a new navigation event from the given description. |
Method Summary | |
---|---|
static NavigationEvent |
createKeyEvent(java.lang.String event,
java.lang.String key)
Creates a new key navigation event. |
static NavigationEvent |
createKeyPressEvent(java.lang.String key)
Creates a new key press navigation event. |
static NavigationEvent |
createKeyReleaseEvent(java.lang.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(java.lang.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. |
java.lang.String |
toString()
Gets a human-readable string representation of this navigation event. |
Methods inherited from class org.gstreamer.Event |
---|
getStructure |
Methods inherited from class org.gstreamer.MiniObject |
---|
disposeNativeHandle, isWritable, makeWritable, ref, unref |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
---|
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public java.lang.String toString()
toString
in class NativeObject
public static NavigationEvent createMouseEvent(java.lang.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 pressed
public 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 pressed
public 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 pressed
public 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 pressed
public static NavigationEvent createKeyEvent(java.lang.String event, java.lang.String key)
event
- the type of key event.key
- the ascii key code for the key.
public static NavigationEvent createKeyPressEvent(java.lang.String key)
key
- the ascii key code for the key.
public static NavigationEvent createKeyReleaseEvent(java.lang.String key)
key
- the ascii key code for the key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |