Struct gdnative::InputEventMouseButton
[−]
[src]
pub struct InputEventMouseButton { /* fields omitted */ }
core class InputEventMouseButton : InputEventMouse
(reference counted)
Base class
InputEventMouseButton inherits InputEventMouse and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl InputEventMouseButton
[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_factor(&mut self, factor: f64)
[src]
pub fn get_factor(&mut self) -> f64
[src]
[src]
[src]
pub fn set_pressed(&mut self, pressed: bool)
[src]
pub fn set_doubleclick(&mut self, doubleclick: bool)
[src]
pub fn is_doubleclick(&self) -> bool
[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 InputEventMouseButton
[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 InputEventMouseButton
[src]
type Target = InputEventMouse
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.