Skip to main content

IEventMethods

Trait IEventMethods 

Source
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§

Source

fn get_raw_type(self) -> EventType

get_rawType() overload

Source

fn get_mouse_position(self) -> Vector2

get_mousePosition() overload

Source

fn get_delta(self) -> Vector2

get_delta() overload

Source

fn get_pointer_type(self) -> PointerType

get_pointerType() overload

Source

fn get_modifiers(self) -> EventModifiers

get_modifiers() overload

Source

fn get_character(self) -> u16

get_character() overload

Source

fn get_key_code(self) -> KeyCode

get_keyCode() overload

Source

fn set_display_index(self, value: impl Into<i32>)

set_displayIndex(i32) overload

Source

fn get_type(self) -> EventType

get_type() overload

Source

fn get_command_name(self) -> Il2CppString

get_commandName() overload

Source

fn internal_use(self)

Internal_Use() overload

Source

fn get_type_for_control(self, control_id: impl Into<i32>) -> EventType

GetTypeForControl(i32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, display_index: impl Into<i32>)

.ctor(i32) overload

Source

fn finalize(self)

Finalize() overload

Source

fn get_shift(self) -> bool

get_shift() overload

Source

fn get_control(self) -> bool

get_control() overload

Source

fn get_alt(self) -> bool

get_alt() overload

Source

fn get_command(self) -> bool

get_command() overload

Source

fn get_is_key(self) -> bool

get_isKey() overload

Source

fn get_is_mouse(self) -> bool

get_isMouse() overload

Source

fn get_is_direct_manipulation_device(self) -> bool

get_isDirectManipulationDevice() overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn equals(self, obj: impl Into<Object>) -> bool

Equals(crate::system::object::Object) overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn use(self)

Use() overload

Source

fn get_mouse_position_injected(self) -> Vector2

get_mousePosition_Injected(*mutcrate::unity_engine::vector2::Vector2) overload

Source

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§

Source§

impl<__T: IEvent> IEventMethods for __T

Available on crate feature unity_engine-event only.