Trait gstreamer_video::prelude::NavigationExt
source · pub trait NavigationExt: IsA<Navigation> + Sealed + 'static {
// Provided methods
fn send_command(&self, command: NavigationCommand) { ... }
fn send_event(&self, structure: Structure) { ... }
fn send_event_simple(&self, event: Event) { ... }
fn send_key_event(&self, event: &str, key: &str) { ... }
fn send_mouse_event(&self, event: &str, button: i32, x: f64, y: f64) { ... }
fn send_mouse_scroll_event(
&self,
x: f64,
y: f64,
delta_x: f64,
delta_y: f64,
) { ... }
}
Expand description
Provided Methods§
sourcefn send_command(&self, command: NavigationCommand)
fn send_command(&self, command: NavigationCommand)
fn send_event(&self, structure: Structure)
sourcefn send_event_simple(&self, event: Event)
fn send_event_simple(&self, event: Event)
sourcefn send_key_event(&self, event: &str, key: &str)
fn send_key_event(&self, event: &str, key: &str)
sourcefn send_mouse_event(&self, event: &str, button: i32, x: f64, y: f64)
fn send_mouse_event(&self, event: &str, button: i32, x: f64, y: f64)
Sends a mouse event to the navigation interface. Mouse event coordinates
are sent relative to the display space of the related output area. This is
usually the size in pixels of the window associated with the element
implementing the Navigation
interface.
§event
The type of mouse event, as a text string. Recognised values are “mouse-button-press”, “mouse-button-release”, “mouse-move” and “mouse-double-click”.
§button
The button number of the button being pressed or released. Pass 0 for mouse-move events.
§x
The x coordinate of the mouse event.
§y
The y coordinate of the mouse event.
sourcefn send_mouse_scroll_event(&self, x: f64, y: f64, delta_x: f64, delta_y: f64)
fn send_mouse_scroll_event(&self, x: f64, y: f64, delta_x: f64, delta_y: f64)
Sends a mouse scroll event to the navigation interface. Mouse event coordinates
are sent relative to the display space of the related output area. This is
usually the size in pixels of the window associated with the element
implementing the Navigation
interface.
§x
The x coordinate of the mouse event.
§y
The y coordinate of the mouse event.
§delta_x
The delta_x coordinate of the mouse event.
§delta_y
The delta_y coordinate of the mouse event.