Skip to main content

IPointerInputModule_MouseStateMethods

Trait IPointerInputModule_MouseStateMethods 

Source
pub trait IPointerInputModule_MouseStateMethods: IPointerInputModule_MouseState {
    // Provided methods
    fn any_presses_this_frame(self) -> bool { ... }
    fn any_releases_this_frame(self) -> bool { ... }
    fn get_button_state(
        self,
        button: impl Into<PointerEventData_InputButton>,
    ) -> PointerInputModule_ButtonState { ... }
    fn set_button_state(
        self,
        button: impl Into<PointerEventData_InputButton>,
        state_for_mouse_button: impl Into<PointerEventData_FramePressState>,
        data: impl Into<PointerEventData>,
    ) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn any_presses_this_frame(self) -> bool

AnyPressesThisFrame() overload

Source

fn any_releases_this_frame(self) -> bool

AnyReleasesThisFrame() overload

Source

fn get_button_state( self, button: impl Into<PointerEventData_InputButton>, ) -> PointerInputModule_ButtonState

GetButtonState(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton) overload

Source

fn set_button_state( self, button: impl Into<PointerEventData_InputButton>, state_for_mouse_button: impl Into<PointerEventData_FramePressState>, data: impl Into<PointerEventData>, )

SetButtonState(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton, crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState, crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload

Source

fn ctor(self)

.ctor() 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: IPointerInputModule_MouseState> IPointerInputModule_MouseStateMethods for __T

Available on crate feature unity_engine-event_systems-pointerinputmodule only.