Struct gdnative::EditorSettings
[−]
[src]
pub struct EditorSettings { /* fields omitted */ }
tools class EditorSettings : Resource
(reference counted)
Base class
EditorSettings inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Tool
This class is used to interact with godot's editor.
Methods
impl EditorSettings
[src]
pub fn as_resource(&self) -> Resource
[src]
Up-cast.
pub fn has_setting(&self, name: GodotString) -> bool
[src]
pub fn set_setting(&mut self, name: GodotString, value: Variant)
[src]
pub fn get_setting(&self, name: GodotString) -> Variant
[src]
pub fn erase(&mut self, property: GodotString)
[src]
pub fn set_initial_value(
&mut self,
name: GodotString,
value: Variant,
update_current: bool
)
[src]
&mut self,
name: GodotString,
value: Variant,
update_current: bool
)
pub fn property_can_revert(&mut self, name: GodotString) -> bool
[src]
pub fn property_get_revert(&mut self, name: GodotString) -> Variant
[src]
pub fn add_property_info(&mut self, info: Dictionary)
[src]
pub fn get_settings_dir(&self) -> GodotString
[src]
pub fn get_project_settings_dir(&self) -> GodotString
[src]
pub fn set_favorite_dirs(&mut self, dirs: StringArray)
[src]
pub fn get_favorite_dirs(&self) -> StringArray
[src]
pub fn set_recent_dirs(&mut self, dirs: StringArray)
[src]
pub fn get_recent_dirs(&self) -> StringArray
[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 EditorSettings
[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 EditorSettings
[src]
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.