Struct gdnative::SpriteFrames
[−]
[src]
pub struct SpriteFrames { /* fields omitted */ }
core class SpriteFrames : Resource
(reference counted)
Base class
SpriteFrames inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl SpriteFrames
[src]
pub fn as_resource(&self) -> Resource
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn add_animation(&mut self, anim: GodotString)
[src]
pub fn has_animation(&self, anim: GodotString) -> bool
[src]
pub fn remove_animation(&mut self, anim: GodotString)
[src]
pub fn rename_animation(&mut self, anim: GodotString, newname: GodotString)
[src]
pub fn set_animation_speed(&mut self, anim: GodotString, speed: f64)
[src]
pub fn get_animation_speed(&self, anim: GodotString) -> f64
[src]
pub fn set_animation_loop(&mut self, anim: GodotString, _loop: bool)
[src]
pub fn get_animation_loop(&self, anim: GodotString) -> bool
[src]
pub fn add_frame(
&mut self,
anim: GodotString,
frame: Option<Texture>,
at_position: i64
)
[src]
&mut self,
anim: GodotString,
frame: Option<Texture>,
at_position: i64
)
pub fn get_frame_count(&self, anim: GodotString) -> i64
[src]
pub fn get_frame(&self, anim: GodotString, idx: i64) -> Option<Texture>
[src]
pub fn set_frame(&mut self, anim: GodotString, idx: i64, txt: Option<Texture>)
[src]
pub fn remove_frame(&mut self, anim: GodotString, idx: i64)
[src]
pub fn clear(&mut self, anim: GodotString)
[src]
pub fn clear_all(&mut self)
[src]
pub fn _set_frames(&mut self, arg0: VariantArray)
[src]
pub fn _get_frames(&self) -> VariantArray
[src]
pub fn _set_animations(&mut self, arg0: VariantArray)
[src]
pub fn _get_animations(&self) -> VariantArray
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)
[src]
pub fn set_path(&mut self, path: GodotString)
[src]
pub fn take_over_path(&mut self, path: GodotString)
[src]
pub fn get_path(&self) -> GodotString
[src]
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn get_name(&self) -> GodotString
[src]
pub fn get_rid(&self) -> Rid
[src]
pub fn set_local_to_scene(&mut self, enable: bool)
[src]
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn get_local_scene(&self) -> Option<Node>
[src]
pub fn setup_local_to_scene(&mut self)
[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for SpriteFrames
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for SpriteFrames
[src]
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.