Struct gdnative::MeshLibrary [−][src]
pub struct MeshLibrary { /* fields omitted */ }
core class MeshLibrary : Resource
(reference counted)
Base class
MeshLibrary inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl MeshLibrary
[src]
impl MeshLibrary
pub fn as_resource(&self) -> Resource
[src]
pub fn as_resource(&self) -> Resource
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn create_item(&mut self, id: i64)
[src]
pub fn create_item(&mut self, id: i64)
pub fn set_item_name(&mut self, id: i64, name: GodotString)
[src]
pub fn set_item_name(&mut self, id: i64, name: GodotString)
pub fn set_item_mesh(&mut self, id: i64, mesh: Option<Mesh>)
[src]
pub fn set_item_mesh(&mut self, id: i64, mesh: Option<Mesh>)
pub fn set_item_shapes(&mut self, id: i64, shapes: VariantArray)
[src]
pub fn set_item_shapes(&mut self, id: i64, shapes: VariantArray)
pub fn set_item_preview(&mut self, id: i64, texture: Option<Texture>)
[src]
pub fn set_item_preview(&mut self, id: i64, texture: Option<Texture>)
pub fn get_item_name(&self, id: i64) -> GodotString
[src]
pub fn get_item_name(&self, id: i64) -> GodotString
pub fn get_item_mesh(&self, id: i64) -> Option<Mesh>
[src]
pub fn get_item_mesh(&self, id: i64) -> Option<Mesh>
pub fn get_item_shapes(&self, id: i64) -> VariantArray
[src]
pub fn get_item_shapes(&self, id: i64) -> VariantArray
pub fn get_item_preview(&self, id: i64) -> Option<Texture>
[src]
pub fn get_item_preview(&self, id: i64) -> Option<Texture>
pub fn remove_item(&mut self, id: i64)
[src]
pub fn remove_item(&mut self, id: i64)
pub fn find_item_by_name(&self, name: GodotString) -> i64
[src]
pub fn find_item_by_name(&self, name: GodotString) -> i64
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
pub fn get_item_list(&self) -> Int32Array
[src]
pub fn get_item_list(&self) -> Int32Array
pub fn get_last_unused_item_id(&self) -> i64
[src]
pub fn get_last_unused_item_id(&self) -> i64
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference
[src]
pub fn as_reference(&self) -> Reference
Up-cast.
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)
[src]
pub fn _setup_local_to_scene(&mut self)
pub fn set_path(&mut self, path: GodotString)
[src]
pub fn set_path(&mut self, path: GodotString)
pub fn take_over_path(&mut self, path: GodotString)
[src]
pub fn take_over_path(&mut self, path: GodotString)
pub fn get_path(&self) -> GodotString
[src]
pub fn get_path(&self) -> GodotString
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn set_name(&mut self, name: GodotString)
pub fn get_name(&self) -> GodotString
[src]
pub fn get_name(&self) -> GodotString
pub fn get_rid(&self) -> Rid
[src]
pub fn get_rid(&self) -> Rid
pub fn set_local_to_scene(&mut self, enable: bool)
[src]
pub fn set_local_to_scene(&mut self, enable: bool)
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn is_local_to_scene(&self) -> bool
pub fn get_local_scene(&self) -> Option<Node>
[src]
pub fn get_local_scene(&self) -> Option<Node>
pub fn setup_local_to_scene(&mut self)
[src]
pub fn setup_local_to_scene(&mut self)
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for MeshLibrary
[src]
impl GodotObject for MeshLibrary
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for MeshLibrary
[src]
impl Deref for MeshLibrary
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for MeshLibrary
[src]
impl DerefMut for MeshLibrary
impl Drop for MeshLibrary
[src]
impl Drop for MeshLibrary
Auto Trait Implementations
impl !Send for MeshLibrary
impl !Send for MeshLibrary
impl !Sync for MeshLibrary
impl !Sync for MeshLibrary