Struct gdnative::_Directory
[−]
[src]
pub struct _Directory { /* fields omitted */ }
core class _Directory : Reference
(reference counted)
Base class
_Directory inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl _Directory
[src]
pub fn as_reference(&self) -> Reference
[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 open(&mut self, path: GodotString) -> GodotResult
[src]
pub fn list_dir_begin(
&mut self,
skip_navigational: bool,
skip_hidden: bool
) -> GodotResult
[src]
&mut self,
skip_navigational: bool,
skip_hidden: bool
) -> GodotResult
pub fn get_next(&mut self) -> GodotString
[src]
pub fn current_is_dir(&self) -> bool
[src]
pub fn list_dir_end(&mut self)
[src]
pub fn get_drive_count(&mut self) -> i64
[src]
pub fn get_drive(&mut self, idx: i64) -> GodotString
[src]
pub fn get_current_drive(&mut self) -> i64
[src]
pub fn change_dir(&mut self, todir: GodotString) -> GodotResult
[src]
pub fn get_current_dir(&mut self) -> GodotString
[src]
pub fn make_dir(&mut self, path: GodotString) -> GodotResult
[src]
pub fn make_dir_recursive(&mut self, path: GodotString) -> GodotResult
[src]
pub fn file_exists(&mut self, path: GodotString) -> bool
[src]
pub fn dir_exists(&mut self, path: GodotString) -> bool
[src]
pub fn get_space_left(&mut self) -> i64
[src]
pub fn copy(&mut self, from: GodotString, to: GodotString) -> GodotResult
[src]
pub fn rename(&mut self, from: GodotString, to: GodotString) -> GodotResult
[src]
pub fn remove(&mut self, path: GodotString) -> GodotResult
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for _Directory
[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 _Directory
[src]
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.