[][src]Struct gdnative::Animation

pub struct Animation { /* fields omitted */ }

core class Animation inherits Resource (reference counted).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

The lifetime of this object is automatically managed through reference counting.

Class hierarchy

Animation inherits methods from:

Methods

impl Animation[src]

Constants

impl Animation[src]

pub fn new() -> Animation[src]

pub fn new_ref(&self) -> Animation[src]

Creates a new reference to the same reference-counted object.

pub fn add_track(&mut self, _type: i64, at_position: i64) -> i64[src]

pub fn animation_track_get_key_animation(
    &self,
    track_idx: i64,
    key_idx: i64
) -> GodotString
[src]

pub fn animation_track_insert_key(
    &mut self,
    track_idx: i64,
    time: f64,
    animation: GodotString
) -> i64
[src]

pub fn animation_track_set_key_animation(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    animation: GodotString
)
[src]

pub fn audio_track_get_key_end_offset(
    &self,
    track_idx: i64,
    key_idx: i64
) -> f64
[src]

pub fn audio_track_get_key_start_offset(
    &self,
    track_idx: i64,
    key_idx: i64
) -> f64
[src]

pub fn audio_track_get_key_stream(
    &self,
    track_idx: i64,
    key_idx: i64
) -> Option<Resource>
[src]

pub fn audio_track_insert_key(
    &mut self,
    track_idx: i64,
    time: f64,
    stream: Option<Resource>,
    start_offset: f64,
    end_offset: f64
) -> i64
[src]

pub fn audio_track_set_key_end_offset(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    offset: f64
)
[src]

pub fn audio_track_set_key_start_offset(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    offset: f64
)
[src]

pub fn audio_track_set_key_stream(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    stream: Option<Resource>
)
[src]

pub fn bezier_track_get_key_in_handle(
    &self,
    track_idx: i64,
    key_idx: i64
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn bezier_track_get_key_out_handle(
    &self,
    track_idx: i64,
    key_idx: i64
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn bezier_track_get_key_value(&self, track_idx: i64, key_idx: i64) -> f64[src]

pub fn bezier_track_insert_key(
    &mut self,
    track_idx: i64,
    time: f64,
    value: f64,
    in_handle: Vector2D<f32, UnknownUnit>,
    out_handle: Vector2D<f32, UnknownUnit>
) -> i64
[src]

pub fn bezier_track_interpolate(&self, track_idx: i64, time: f64) -> f64[src]

pub fn bezier_track_set_key_in_handle(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    in_handle: Vector2D<f32, UnknownUnit>
)
[src]

pub fn bezier_track_set_key_out_handle(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    out_handle: Vector2D<f32, UnknownUnit>
)
[src]

pub fn bezier_track_set_key_value(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    value: f64
)
[src]

pub fn clear(&mut self)[src]

pub fn copy_track(&mut self, track_idx: i64, to_animation: Option<Animation>)[src]

pub fn find_track(&self, path: NodePath) -> i64[src]

pub fn get_length(&self) -> f64[src]

pub fn get_step(&self) -> f64[src]

pub fn get_track_count(&self) -> i64[src]

pub fn has_loop(&self) -> bool[src]

pub fn method_track_get_key_indices(
    &self,
    track_idx: i64,
    time_sec: f64,
    delta: f64
) -> Int32Array
[src]

pub fn method_track_get_name(&self, track_idx: i64, key_idx: i64) -> GodotString[src]

pub fn method_track_get_params(
    &self,
    track_idx: i64,
    key_idx: i64
) -> VariantArray
[src]

pub fn remove_track(&mut self, track_idx: i64)[src]

pub fn set_length(&mut self, time_sec: f64)[src]

pub fn set_loop(&mut self, enabled: bool)[src]

pub fn set_step(&mut self, size_sec: f64)[src]

pub fn track_find_key(&self, track_idx: i64, time: f64, exact: bool) -> i64[src]

pub fn track_get_interpolation_loop_wrap(&self, track_idx: i64) -> bool[src]

pub fn track_get_interpolation_type(
    &self,
    track_idx: i64
) -> AnimationInterpolationType
[src]

pub fn track_get_key_count(&self, track_idx: i64) -> i64[src]

pub fn track_get_key_time(&self, track_idx: i64, key_idx: i64) -> f64[src]

pub fn track_get_key_transition(&self, track_idx: i64, key_idx: i64) -> f64[src]

pub fn track_get_key_value(&self, track_idx: i64, key_idx: i64) -> Variant[src]

pub fn track_get_path(&self, track_idx: i64) -> NodePath[src]

pub fn track_get_type(&self, track_idx: i64) -> AnimationTrackType[src]

pub fn track_insert_key(
    &mut self,
    track_idx: i64,
    time: f64,
    key: Variant,
    transition: f64
)
[src]

pub fn track_is_enabled(&self, track_idx: i64) -> bool[src]

pub fn track_is_imported(&self, track_idx: i64) -> bool[src]

pub fn track_move_down(&mut self, track_idx: i64)[src]

pub fn track_move_to(&mut self, track_idx: i64, to_idx: i64)[src]

pub fn track_move_up(&mut self, track_idx: i64)[src]

pub fn track_remove_key(&mut self, track_idx: i64, key_idx: i64)[src]

pub fn track_remove_key_at_position(&mut self, track_idx: i64, position: f64)[src]

pub fn track_set_enabled(&mut self, track_idx: i64, enabled: bool)[src]

pub fn track_set_imported(&mut self, track_idx: i64, imported: bool)[src]

pub fn track_set_interpolation_loop_wrap(
    &mut self,
    track_idx: i64,
    interpolation: bool
)
[src]

pub fn track_set_interpolation_type(
    &mut self,
    track_idx: i64,
    interpolation: i64
)
[src]

pub fn track_set_key_time(&mut self, track_idx: i64, key_idx: i64, time: f64)[src]

pub fn track_set_key_transition(
    &mut self,
    track_idx: i64,
    key_idx: i64,
    transition: f64
)
[src]

pub fn track_set_key_value(&mut self, track_idx: i64, key: i64, value: Variant)[src]

pub fn track_set_path(&mut self, track_idx: i64, path: NodePath)[src]

pub fn track_swap(&mut self, track_idx: i64, with_idx: i64)[src]

pub fn transform_track_insert_key(
    &mut self,
    track_idx: i64,
    time: f64,
    location: Vector3D<f32, UnknownUnit>,
    rotation: Rotation3D<f32, UnknownUnit, UnknownUnit>,
    scale: Vector3D<f32, UnknownUnit>
) -> i64
[src]

pub fn transform_track_interpolate(
    &self,
    track_idx: i64,
    time_sec: f64
) -> VariantArray
[src]

pub fn value_track_get_key_indices(
    &self,
    track_idx: i64,
    time_sec: f64,
    delta: f64
) -> Int32Array
[src]

pub fn value_track_get_update_mode(&self, track_idx: i64) -> AnimationUpdateMode[src]

pub fn value_track_set_update_mode(&mut self, track_idx: i64, mode: i64)[src]

pub fn to_resource(&self) -> Resource[src]

Up-cast.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = Resource>

pub fn new_ref(&self) -> Resource[src]

Creates a new reference to the same reference-counted object.

pub fn _setup_local_to_scene(&mut self)[src]

pub fn duplicate(&self, subresources: bool) -> Option<Resource>[src]

pub fn get_local_scene(&self) -> Option<Node>[src]

pub fn get_name(&self) -> GodotString[src]

pub fn get_path(&self) -> GodotString[src]

pub fn get_rid(&self) -> Rid[src]

pub fn is_local_to_scene(&self) -> bool[src]

pub fn set_local_to_scene(&mut self, enable: bool)[src]

pub fn set_name(&mut self, name: GodotString)[src]

pub fn set_path(&mut self, path: GodotString)[src]

pub fn setup_local_to_scene(&mut self)[src]

pub fn take_over_path(&mut self, path: GodotString)[src]

pub fn init_ref(&mut self) -> bool[src]

Inherited from Reference.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for Animation[src]

impl Debug for Animation[src]

impl Deref for Animation[src]

type Target = Resource

The resulting type after dereferencing.

impl DerefMut for Animation[src]

impl Drop for Animation[src]

impl FromVariant for Animation[src]

impl GodotObject for Animation[src]

impl Instanciable for Animation[src]

impl ToVariant for Animation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Export for T where
    T: GodotObject + ToVariant
[src]

type Hint = ()

A type-specific hint type that is valid for the type being exported.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.