Struct godot::global::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 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
§fn eq(&self, other: &MouseButton) -> bool
fn eq(&self, other: &MouseButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl ToGodot for MouseButton
impl ToGodot for MouseButton
§fn to_godot(&self) -> <MouseButton as GodotConvert>::Via
fn to_godot(&self) -> <MouseButton as GodotConvert>::Via
Converts this type to the Godot type by reference, usually by cloning.
§fn into_godot(self) -> Self::Via
fn into_godot(self) -> Self::Via
Converts this type to the Godot type. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)