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]
impl InputEventMouseMotion
pub fn as_input_event_mouse(&self) -> InputEventMouse
[src]
pub fn as_input_event_mouse(&self) -> InputEventMouse
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn set_relative(&mut self, relative: Vector2)
[src]
pub fn set_relative(&mut self, relative: Vector2)
pub fn get_relative(&self) -> Vector2
[src]
pub fn get_relative(&self) -> Vector2
pub fn set_speed(&mut self, speed: Vector2)
[src]
pub fn set_speed(&mut self, speed: Vector2)
pub fn get_speed(&self) -> Vector2
[src]
pub fn get_speed(&self) -> Vector2
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = InputEventMouse>
pub fn as_input_event_with_modifiers(&self) -> InputEventWithModifiers
[src]
pub fn as_input_event_with_modifiers(&self) -> InputEventWithModifiers
Up-cast.
pub fn set_position(&mut self, position: Vector2)
[src]
pub fn set_position(&mut self, position: Vector2)
pub fn get_position(&self) -> Vector2
[src]
pub fn get_position(&self) -> Vector2
pub fn set_global_position(&mut self, global_position: Vector2)
[src]
pub fn set_global_position(&mut self, global_position: Vector2)
pub fn get_global_position(&self) -> Vector2
[src]
pub fn get_global_position(&self) -> Vector2
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for InputEventMouseMotion
[src]
impl GodotObject for InputEventMouseMotion
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for InputEventMouseMotion
[src]
impl Deref for InputEventMouseMotion
type Target = InputEventMouse
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for InputEventMouseMotion
[src]
impl DerefMut for InputEventMouseMotion
impl Drop for InputEventMouseMotion
[src]
impl Drop for InputEventMouseMotion
Auto Trait Implementations
impl !Send for InputEventMouseMotion
impl !Send for InputEventMouseMotion
impl !Sync for InputEventMouseMotion
impl !Sync for InputEventMouseMotion