org.gstreamer.interfaces.Navigation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gstreamer-java Show documentation
Show all versions of gstreamer-java Show documentation
Java binding for the Gstreamer framework (0.10 compatible)
The newest version!
/*
* Copyright (c) 2009 Levente Farkas
* Copyright (c) 2009 Tamas Korodi
*
* This file is part of gstreamer-java.
*
* This code is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* version 3 for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with this work. If not, see .
*/
package org.gstreamer.interfaces;
import static org.gstreamer.lowlevel.GstNavigationAPI.GSTNAVIGATION_API;
import org.gstreamer.Element;
import org.gstreamer.Structure;
public class Navigation extends GstInterface {
/**
* Wraps the {@link Element} in a Navigation interface
*
* @param element
* the element to use as a Navigation
* @return a Navigation for the element
*/
public static final Navigation wrap(Element element) {
return new Navigation(element);
}
/**
* Creates a new Navigation instance
*
* @param element
* the element that implements the Navigation interface
*/
private Navigation(Element element) {
super(element, GSTNAVIGATION_API.gst_navigation_get_type());
}
public void sendEvent(Structure structure) {
GSTNAVIGATION_API.gst_navigation_send_event(this, structure);
}
public void sendKeyEvent(String event, String key) {
GSTNAVIGATION_API.gst_navigation_send_key_event(this, event, key);
}
public void sendMouseEvent(String event, int button, double x, double y) {
GSTNAVIGATION_API.gst_navigation_send_mouse_event(this, event, button, x, y);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy