Struct gdnative::InputEventKey [−][src]
pub struct InputEventKey { /* fields omitted */ }core class InputEventKey : InputEventWithModifiers (reference counted)
Base class
InputEventKey inherits InputEventWithModifiers and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl InputEventKey[src]
impl InputEventKeypub fn as_input_event_with_modifiers(&self) -> InputEventWithModifiers[src]
pub fn as_input_event_with_modifiers(&self) -> InputEventWithModifiersUp-cast.
pub fn new() -> Self[src]
pub fn new() -> Selfpub fn new_ref(&self) -> Self[src]
pub fn new_ref(&self) -> SelfCreates a new reference to the same object.
pub fn set_pressed(&mut self, pressed: bool)[src]
pub fn set_pressed(&mut self, pressed: bool)pub fn set_scancode(&mut self, scancode: i64)[src]
pub fn set_scancode(&mut self, scancode: i64)pub fn get_scancode(&self) -> i64[src]
pub fn get_scancode(&self) -> i64pub fn set_unicode(&mut self, unicode: i64)[src]
pub fn set_unicode(&mut self, unicode: i64)pub fn get_unicode(&self) -> i64[src]
pub fn get_unicode(&self) -> i64pub fn set_echo(&mut self, echo: bool)[src]
pub fn set_echo(&mut self, echo: bool)pub fn get_scancode_with_modifiers(&self) -> i64[src]
pub fn get_scancode_with_modifiers(&self) -> i64pub 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) -> InputEventUp-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) -> boolpub 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) -> boolpub 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) -> boolpub 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) -> boolpub 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) -> boolpub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Trait Implementations
impl GodotObject for InputEventKey[src]
impl GodotObject for InputEventKeyfn class_name() -> &'static str[src]
fn class_name() -> &'static strunsafe fn from_sys(obj: *mut godot_object) -> Self[src]
unsafe fn from_sys(obj: *mut godot_object) -> Selfunsafe fn to_sys(&self) -> *mut godot_object[src]
unsafe fn to_sys(&self) -> *mut godot_objectimpl Deref for InputEventKey[src]
impl Deref for InputEventKeytype Target = InputEventWithModifiers
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for InputEventKey[src]
impl DerefMut for InputEventKeyimpl Drop for InputEventKey[src]
impl Drop for InputEventKeyAuto Trait Implementations
impl !Send for InputEventKey
impl !Send for InputEventKeyimpl !Sync for InputEventKey
impl !Sync for InputEventKey