Struct CursorShape
pub struct CursorShape { /* private fields */ }Implementations§
§impl CursorShape
impl CursorShape
pub const ARROW: CursorShape
pub const ARROW: CursorShape
Godot enumerator name: CURSOR_ARROW
pub const IBEAM: CursorShape
pub const IBEAM: CursorShape
Godot enumerator name: CURSOR_IBEAM
pub const POINTING_HAND: CursorShape
pub const POINTING_HAND: CursorShape
Godot enumerator name: CURSOR_POINTING_HAND
pub const CROSS: CursorShape
pub const CROSS: CursorShape
Godot enumerator name: CURSOR_CROSS
pub const WAIT: CursorShape
pub const WAIT: CursorShape
Godot enumerator name: CURSOR_WAIT
pub const BUSY: CursorShape
pub const BUSY: CursorShape
Godot enumerator name: CURSOR_BUSY
pub const DRAG: CursorShape
pub const DRAG: CursorShape
Godot enumerator name: CURSOR_DRAG
pub const CAN_DROP: CursorShape
pub const CAN_DROP: CursorShape
Godot enumerator name: CURSOR_CAN_DROP
pub const FORBIDDEN: CursorShape
pub const FORBIDDEN: CursorShape
Godot enumerator name: CURSOR_FORBIDDEN
pub const VSIZE: CursorShape
pub const VSIZE: CursorShape
Godot enumerator name: CURSOR_VSIZE
pub const HSIZE: CursorShape
pub const HSIZE: CursorShape
Godot enumerator name: CURSOR_HSIZE
pub const BDIAGSIZE: CursorShape
pub const BDIAGSIZE: CursorShape
Godot enumerator name: CURSOR_BDIAGSIZE
pub const FDIAGSIZE: CursorShape
pub const FDIAGSIZE: CursorShape
Godot enumerator name: CURSOR_FDIAGSIZE
pub const MOVE: CursorShape
pub const MOVE: CursorShape
Godot enumerator name: CURSOR_MOVE
pub const VSPLIT: CursorShape
pub const VSPLIT: CursorShape
Godot enumerator name: CURSOR_VSPLIT
pub const HSPLIT: CursorShape
pub const HSPLIT: CursorShape
Godot enumerator name: CURSOR_HSPLIT
pub const HELP: CursorShape
pub const HELP: CursorShape
Godot enumerator name: CURSOR_HELP
pub const MAX: CursorShape
pub const MAX: CursorShape
Godot enumerator name: CURSOR_MAX
Trait Implementations§
§impl Clone for CursorShape
impl Clone for CursorShape
§fn clone(&self) -> CursorShape
fn clone(&self) -> CursorShape
Returns a duplicate 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 CursorShape
impl Debug for CursorShape
§impl EngineEnum for CursorShape
impl EngineEnum for CursorShape
fn try_from_ord(ord: i32) -> Option<CursorShape>
§fn ord(self) -> i32
fn ord(self) -> i32
Ordinal value of the enumerator, as specified in Godot.
This is not necessarily unique.
§fn values() -> &'static [CursorShape]
fn values() -> &'static [CursorShape]
Returns a slice of distinct enum values. Read more
§fn all_constants() -> &'static [EnumConstant<CursorShape>]
fn all_constants() -> &'static [EnumConstant<CursorShape>]
Returns metadata for all enum constants. Read more
fn from_ord(ord: i32) -> Self
§impl FromGodot for CursorShape
impl FromGodot for CursorShape
§fn try_from_godot(
via: <CursorShape as GodotConvert>::Via,
) -> Result<CursorShape, ConvertError>
fn try_from_godot( via: <CursorShape as GodotConvert>::Via, ) -> Result<CursorShape, 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 CursorShape
impl GodotConvert for CursorShape
§fn godot_shape() -> GodotShape
fn godot_shape() -> GodotShape
Which “shape” this type has for property registration (e.g. builtin, enum, …). Read more
§impl Hash for CursorShape
impl Hash for CursorShape
§impl IndexEnum for CursorShape
impl IndexEnum for CursorShape
§impl PartialEq for CursorShape
impl PartialEq for CursorShape
§impl ToGodot for CursorShape
impl ToGodot for CursorShape
§fn to_godot(&self) -> <CursorShape as GodotConvert>::Via
fn to_godot(&self) -> <CursorShape as GodotConvert>::Via
Converts this type to Godot representation, optimizing for zero-copy when possible. Read more
§fn to_godot_owned(&self) -> Self::Via
fn to_godot_owned(&self) -> Self::Via
Converts this type to owned Godot representation. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
§impl Var for CursorShape
impl Var for CursorShape
§type PubType = CursorShape
type PubType = CursorShape
Type used in generated Rust getters/setters for
#[var(pub)].§fn var_get(field: &CursorShape) -> <CursorShape as GodotConvert>::Via
fn var_get(field: &CursorShape) -> <CursorShape as GodotConvert>::Via
Get property value via FFI-level
Via type. Called for internal (non-pub) getters registered with Godot.§fn var_set(field: &mut CursorShape, value: <CursorShape as GodotConvert>::Via)
fn var_set(field: &mut CursorShape, value: <CursorShape as GodotConvert>::Via)
Set property value via FFI-level
Via type. Called for internal (non-pub) setters registered with Godot.§fn var_pub_get(field: &CursorShape) -> <CursorShape as Var>::PubType
fn var_pub_get(field: &CursorShape) -> <CursorShape as Var>::PubType
Get property value as
PubType. Called for #[var(pub)] getters exposed in Rust API.§fn var_pub_set(field: &mut CursorShape, value: <CursorShape as Var>::PubType)
fn var_pub_set(field: &mut CursorShape, value: <CursorShape as Var>::PubType)
Set property value as
PubType. Called for #[var(pub)] setters exposed in Rust API.impl Copy for CursorShape
impl Element for CursorShape
impl Eq for CursorShape
impl Export for CursorShape
impl StructuralPartialEq for CursorShape
Auto Trait Implementations§
impl Freeze for CursorShape
impl RefUnwindSafe for CursorShape
impl Send for CursorShape
impl Sync for CursorShape
impl Unpin for CursorShape
impl UnsafeUnpin for CursorShape
impl UnwindSafe for CursorShape
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