PersistentFloat

Struct PersistentFloat 

Source
pub struct PersistentFloat {
    pub key: GString,
    pub value: f32,
    pub base: Base<Node>,
    /* private fields */
}

Fields§

§key: GString§value: f32§base: Base<Node>

Implementations§

Source§

impl PersistentFloat

Source

pub fn get_key(&self) -> <GString as GodotConvert>::Via

Source

pub fn set_key(&mut self, key: <GString as GodotConvert>::Via)

Source

pub fn get_value(&self) -> <f32 as GodotConvert>::Via

Source

pub fn set_value(&mut self, value: <f32 as GodotConvert>::Via)

Trait Implementations§

Source§

impl Bounds for PersistentFloat

Source§

type Memory = <<PersistentFloat as GodotClass>::Base as Bounds>::Memory

Defines the memory strategy of the static type.
Source§

type Declarer = DeclUser

Whether this class is a core Godot class provided by the engine, or declared by the user as a Rust struct.
Source§

impl Debug for PersistentFloat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl GodotClass for PersistentFloat

Source§

type Base = Node

The immediate superclass of T. This is always a Godot engine class.
Source§

fn class_name() -> ClassName

The name of the class, under which it is registered in Godot. Read more
Source§

const INIT_LEVEL: InitLevel = <Self::Base as GodotClass>::INIT_LEVEL

Initialization level, during which this class should be initialized with Godot. Read more
Source§

fn inherits<U>() -> bool
where U: GodotClass,

Returns whether Self inherits from U. Read more
Source§

impl INode for PersistentFloat

Source§

fn init(base: Base<Node>) -> Self

Godot constructor, accepting an injected base object. Read more
Source§

fn enter_tree(&mut self)

Source§

fn exit_tree(&mut self)

Source§

fn to_string(&self) -> GString

String representation of the Godot instance. Read more
Source§

fn on_notification(&mut self, what: NodeNotification)

Called when the object receives a Godot notification. Read more
Source§

fn get_property(&self, property: StringName) -> Option<Variant>

Called whenever get() is called or Godot gets the value of a property. Read more
Source§

fn set_property(&mut self, property: StringName, value: Variant) -> bool

Called whenever Godot set() is called or Godot sets the value of a property. Read more
Source§

fn get_property_list(&mut self) -> Vec<PropertyInfo>

Called whenever Godot get_property_list() is called, the returned vector here is appended to the existing list of properties. Read more
Source§

fn validate_property(&self, property: &mut PropertyInfo)

Called whenever Godot retrieves value of property. Allows to customize existing properties. Every property info goes through this method, except properties added with get_property_list(). Read more
Source§

fn property_get_revert(&self, property: StringName) -> Option<Variant>

Called by Godot to tell if a property has a custom revert or not. Read more
Source§

fn process(&mut self, delta: f64)

Source§

fn physics_process(&mut self, delta: f64)

Source§

fn ready(&mut self)

Source§

fn get_configuration_warnings(&self) -> PackedStringArray

Source§

fn input(&mut self, event: Gd<InputEvent>)

Source§

fn shortcut_input(&mut self, event: Gd<InputEvent>)

Source§

fn unhandled_input(&mut self, event: Gd<InputEvent>)

Source§

fn unhandled_key_input(&mut self, event: Gd<InputEvent>)

Source§

impl WithBaseField for PersistentFloat

Source§

fn to_gd(&self) -> Gd<PersistentFloat>

Returns the Gd pointer containing this object. Read more
Source§

fn base(&self) -> BaseRef<'_, Self>

Returns a shared reference suitable for calling engine methods on this object. Read more
Source§

fn base_mut(&mut self) -> BaseMut<'_, Self>

Returns a mutable reference suitable for calling engine methods on this object. Read more
Source§

impl GodotDefault for PersistentFloat

Source§

impl ImplementsGodotExports for PersistentFloat

Source§

impl ImplementsGodotVirtual for PersistentFloat

Source§

impl Inherits<Node> for PersistentFloat

Source§

impl Inherits<Object> for PersistentFloat

Source§

impl You_forgot_the_attribute__godot_api for PersistentFloat

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> NewAlloc for T
where T: GodotDefault<Memory = MemManual> + Bounds,

Source§

fn new_alloc() -> Gd<T>

Return a new, manually-managed Gd containing a default-constructed instance. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UniformObjectDeref<DeclUser> for T
where T: WithBaseField,

Source§

type TargetRef<'a> = GdRef<'a, T>

Source§

type TargetMut<'a> = GdMut<'a, T>

Source§

fn object_as_ref<'a>( gd: &'a Gd<T>, ) -> <T as UniformObjectDeref<DeclUser>>::TargetRef<'a>

Source§

fn object_as_mut<'a>( gd: &'a mut Gd<T>, ) -> <T as UniformObjectDeref<DeclUser>>::TargetMut<'a>

Source§

impl<T, S, D> WithDeferredCall<T> for S
where T: UniformObjectDeref<D, Declarer = D>, S: ToSignalObj<T>, D: Declarer,

Source§

fn apply_deferred<'a, F>(&mut self, rust_function: F)
where F: FnOnce(&mut T) + 'static,

Defers the given closure to run during idle time. Read more
Source§

impl<T> Inherits<T> for T
where T: GodotClass,