Struct godot_core::global::MouseButton
source · pub struct MouseButton { /* private fields */ }
Implementations§
source§impl MouseButton
impl MouseButton
sourcepub const NONE: MouseButton = _
pub const NONE: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_NONE
sourcepub const LEFT: MouseButton = _
pub const LEFT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_LEFT
sourcepub const RIGHT: MouseButton = _
pub const RIGHT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_RIGHT
sourcepub const MIDDLE: MouseButton = _
pub const MIDDLE: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_MIDDLE
sourcepub const WHEEL_UP: MouseButton = _
pub const WHEEL_UP: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_UP
sourcepub const WHEEL_DOWN: MouseButton = _
pub const WHEEL_DOWN: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_DOWN
sourcepub const WHEEL_LEFT: MouseButton = _
pub const WHEEL_LEFT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_LEFT
sourcepub const WHEEL_RIGHT: MouseButton = _
pub const WHEEL_RIGHT: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_WHEEL_RIGHT
sourcepub const XBUTTON1: MouseButton = _
pub const XBUTTON1: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_XBUTTON1
sourcepub const XBUTTON2: MouseButton = _
pub const XBUTTON2: MouseButton = _
Godot enumerator name: MOUSE_BUTTON_XBUTTON2
Trait Implementations§
source§impl Clone for MouseButton
impl Clone for MouseButton
source§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 moresource§impl Debug for MouseButton
impl Debug for MouseButton
source§impl EngineEnum for MouseButton
impl EngineEnum for MouseButton
source§impl FromGodot for MouseButton
impl FromGodot for MouseButton
source§fn try_from_godot(via: Self::Via) -> Result<Self, ConvertError>
fn try_from_godot(via: Self::Via) -> Result<Self, ConvertError>
Converts the Godot representation to this type, returning
Err
on failure.source§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
source§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.source§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
⚠️ Performs the conversion from a [
Variant
]. Read moresource§impl GodotConvert for MouseButton
impl GodotConvert for MouseButton
source§impl Hash for MouseButton
impl Hash for MouseButton
source§impl PartialEq for MouseButton
impl PartialEq for MouseButton
source§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 ==
.source§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§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
)