Struct gdnative::InputEventMouse [−][src]
pub struct InputEventMouse { /* fields omitted */ }
core class InputEventMouse : InputEventWithModifiers
(reference counted)
Base class
InputEventMouse inherits InputEventWithModifiers and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl InputEventMouse
[src]
impl 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>
Methods from Deref<Target = InputEventWithModifiers>
pub fn as_input_event(&self) -> InputEvent
[src]
pub fn as_input_event(&self) -> InputEvent
Up-cast.
pub fn set_alt(&mut self, enable: bool)
[src]
pub fn set_alt(&mut self, enable: bool)
pub fn get_alt(&self) -> bool
[src]
pub fn get_alt(&self) -> bool
pub fn set_shift(&mut self, enable: bool)
[src]
pub fn set_shift(&mut self, enable: bool)
pub fn get_shift(&self) -> bool
[src]
pub fn get_shift(&self) -> bool
pub fn set_control(&mut self, enable: bool)
[src]
pub fn set_control(&mut self, enable: bool)
pub fn get_control(&self) -> bool
[src]
pub fn get_control(&self) -> bool
pub fn set_metakey(&mut self, enable: bool)
[src]
pub fn set_metakey(&mut self, enable: bool)
pub fn get_metakey(&self) -> bool
[src]
pub fn get_metakey(&self) -> bool
pub fn set_command(&mut self, enable: bool)
[src]
pub fn set_command(&mut self, enable: bool)
pub fn get_command(&self) -> bool
[src]
pub fn get_command(&self) -> bool
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for InputEventMouse
[src]
impl GodotObject for InputEventMouse
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 InputEventMouse
[src]
impl Deref for InputEventMouse
type Target = InputEventWithModifiers
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for InputEventMouse
[src]
impl DerefMut for InputEventMouse
Auto Trait Implementations
impl !Send for InputEventMouse
impl !Send for InputEventMouse
impl !Sync for InputEventMouse
impl !Sync for InputEventMouse