Struct MouseButton
pub struct MouseButton { /* private fields */ }
Implementations§
§impl MouseButton
impl MouseButton
pub const NONE: MouseButton = _
pub const NONE: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_NONE
pub const LEFT: MouseButton = _
pub const LEFT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_LEFT
pub const RIGHT: MouseButton = _
pub const RIGHT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_RIGHT
pub const MIDDLE: MouseButton = _
pub const MIDDLE: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_MIDDLE
pub const WHEEL_UP: MouseButton = _
pub const WHEEL_UP: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_UP
pub const WHEEL_DOWN: MouseButton = _
pub const WHEEL_DOWN: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_DOWN
pub const WHEEL_LEFT: MouseButton = _
pub const WHEEL_LEFT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_LEFT
pub const WHEEL_RIGHT: MouseButton = _
pub const WHEEL_RIGHT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_RIGHT
pub const XBUTTON1: MouseButton = _
pub const XBUTTON1: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_XBUTTON1
pub const XBUTTON2: MouseButton = _
pub const XBUTTON2: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_XBUTTON2
Trait Implementations§
§impl BitOr<MouseButton> for MouseButtonMask
impl BitOr<MouseButton> for MouseButtonMask
§type Output = MouseButton
type Output = MouseButton
The resulting type after applying the
|
operator.§fn bitor(
self,
rhs: MouseButton,
) -> <MouseButtonMask as BitOr<MouseButton>>::Output
fn bitor( self, rhs: MouseButton, ) -> <MouseButtonMask as BitOr<MouseButton>>::Output
Performs the
|
operation. Read more§impl BitOr<MouseButtonMask> for MouseButton
impl BitOr<MouseButtonMask> for MouseButton
§type Output = MouseButton
type Output = MouseButton
The resulting type after applying the
|
operator.§fn bitor(
self,
rhs: MouseButtonMask,
) -> <MouseButton as BitOr<MouseButtonMask>>::Output
fn bitor( self, rhs: MouseButtonMask, ) -> <MouseButton as BitOr<MouseButtonMask>>::Output
Performs the
|
operation. Read more§impl BitOrAssign<MouseButtonMask> for MouseButton
impl BitOrAssign<MouseButtonMask> for MouseButton
§fn bitor_assign(&mut self, rhs: MouseButtonMask)
fn bitor_assign(&mut self, rhs: MouseButtonMask)
Performs the
|=
operation. Read more§impl Clone for MouseButton
impl Clone for MouseButton
§fn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for MouseButton
impl Debug for MouseButton
§impl EngineEnum for MouseButton
impl EngineEnum for MouseButton
§impl FromGodot for MouseButton
impl FromGodot for MouseButton
§fn try_from_godot(
via: <MouseButton as GodotConvert>::Via,
) -> Result<MouseButton, ConvertError>
fn try_from_godot( via: <MouseButton as GodotConvert>::Via, ) -> Result<MouseButton, ConvertError>
Converts the Godot representation to this type, returning
Err
on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant
, returning Err
on failure.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for MouseButton
impl GodotConvert for MouseButton
§impl Hash for MouseButton
impl Hash for MouseButton
§impl PartialEq for MouseButton
impl PartialEq for MouseButton
§impl ToGodot for MouseButton
impl ToGodot for MouseButton
impl Copy for MouseButton
impl Eq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations§
impl Freeze for MouseButton
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)