Struct gdnative::ConfigFile
[−]
[src]
pub struct ConfigFile { /* fields omitted */ }
core class ConfigFile : Reference
(reference counted)
Base class
ConfigFile inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl ConfigFile
[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 set_value(
&mut self,
section: GodotString,
key: GodotString,
value: Variant
)
[src]
&mut self,
section: GodotString,
key: GodotString,
value: Variant
)
pub fn get_value(
&self,
section: GodotString,
key: GodotString,
default: Variant
) -> Variant
[src]
&self,
section: GodotString,
key: GodotString,
default: Variant
) -> Variant
pub fn has_section(&self, section: GodotString) -> bool
[src]
pub fn has_section_key(&self, section: GodotString, key: GodotString) -> bool
[src]
pub fn get_sections(&self) -> StringArray
[src]
pub fn get_section_keys(&self, section: GodotString) -> StringArray
[src]
pub fn erase_section(&mut self, section: GodotString)
[src]
pub fn load(&mut self, path: GodotString) -> GodotResult
[src]
pub fn save(&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 ConfigFile
[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 ConfigFile
[src]
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.