pub trait IEventMethods: IEvent {
Show 28 methods
// Provided methods
fn get_raw_type(self) -> EventType { ... }
fn get_mouse_position(self) -> Vector2 { ... }
fn get_delta(self) -> Vector2 { ... }
fn get_pointer_type(self) -> PointerType { ... }
fn get_modifiers(self) -> EventModifiers { ... }
fn get_character(self) -> u16 { ... }
fn get_key_code(self) -> KeyCode { ... }
fn set_display_index(self, value: impl Into<i32>) { ... }
fn get_type(self) -> EventType { ... }
fn get_command_name(self) -> Il2CppString { ... }
fn internal_use(self) { ... }
fn get_type_for_control(self, control_id: impl Into<i32>) -> EventType { ... }
fn ctor(self) { ... }
fn ctor_2(self, display_index: impl Into<i32>) { ... }
fn finalize(self) { ... }
fn get_shift(self) -> bool { ... }
fn get_control(self) -> bool { ... }
fn get_alt(self) -> bool { ... }
fn get_command(self) -> bool { ... }
fn get_is_key(self) -> bool { ... }
fn get_is_mouse(self) -> bool { ... }
fn get_is_direct_manipulation_device(self) -> bool { ... }
fn get_hash_code(self) -> i32 { ... }
fn equals(self, obj: impl Into<Object>) -> bool { ... }
fn to_string(self) -> Il2CppString { ... }
fn use(self) { ... }
fn get_mouse_position_injected(self) -> Vector2 { ... }
fn get_delta_injected(self) -> Vector2 { ... }
}Provided Methods§
Sourcefn get_raw_type(self) -> EventType
fn get_raw_type(self) -> EventType
get_rawType() overload
Sourcefn get_mouse_position(self) -> Vector2
fn get_mouse_position(self) -> Vector2
get_mousePosition() overload
Sourcefn get_pointer_type(self) -> PointerType
fn get_pointer_type(self) -> PointerType
get_pointerType() overload
Sourcefn get_modifiers(self) -> EventModifiers
fn get_modifiers(self) -> EventModifiers
get_modifiers() overload
Sourcefn get_character(self) -> u16
fn get_character(self) -> u16
get_character() overload
Sourcefn get_key_code(self) -> KeyCode
fn get_key_code(self) -> KeyCode
get_keyCode() overload
Sourcefn set_display_index(self, value: impl Into<i32>)
fn set_display_index(self, value: impl Into<i32>)
set_displayIndex(i32) overload
Sourcefn get_command_name(self) -> Il2CppString
fn get_command_name(self) -> Il2CppString
get_commandName() overload
Sourcefn internal_use(self)
fn internal_use(self)
Internal_Use() overload
Sourcefn get_type_for_control(self, control_id: impl Into<i32>) -> EventType
fn get_type_for_control(self, control_id: impl Into<i32>) -> EventType
GetTypeForControl(i32) overload
Sourcefn get_control(self) -> bool
fn get_control(self) -> bool
get_control() overload
Sourcefn get_command(self) -> bool
fn get_command(self) -> bool
get_command() overload
Sourcefn get_is_key(self) -> bool
fn get_is_key(self) -> bool
get_isKey() overload
Sourcefn get_is_mouse(self) -> bool
fn get_is_mouse(self) -> bool
get_isMouse() overload
Sourcefn get_is_direct_manipulation_device(self) -> bool
fn get_is_direct_manipulation_device(self) -> bool
get_isDirectManipulationDevice() overload
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn get_mouse_position_injected(self) -> Vector2
fn get_mouse_position_injected(self) -> Vector2
get_mousePosition_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Sourcefn get_delta_injected(self) -> Vector2
fn get_delta_injected(self) -> Vector2
get_delta_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IEvent> IEventMethods for __T
Available on crate feature
unity_engine-event only.