Struct gdnative::InputEventMouseMotion
[−]
[src]
pub struct InputEventMouseMotion { /* fields omitted */ }
core class InputEventMouseMotion : InputEventMouse
(reference counted)
Base class
InputEventMouseMotion inherits InputEventMouse and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl InputEventMouseMotion
[src]
pub fn as_input_event_mouse(&self) -> InputEventMouse
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn set_relative(&mut self, relative: Vector2)
[src]
pub fn get_relative(&self) -> Vector2
[src]
pub fn set_speed(&mut self, speed: Vector2)
[src]
pub fn get_speed(&self) -> Vector2
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = InputEventMouse>
pub fn as_input_event_with_modifiers(&self) -> InputEventWithModifiers
[src]
Up-cast.
[src]
[src]
pub fn set_position(&mut self, position: Vector2)
[src]
pub fn get_position(&self) -> Vector2
[src]
pub fn set_global_position(&mut self, global_position: Vector2)
[src]
pub fn get_global_position(&self) -> Vector2
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for InputEventMouseMotion
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for InputEventMouseMotion
[src]
type Target = InputEventMouse
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.