[−][src]Struct gdnative_bindings::EditorFileDialog
tools class EditorFileDialog
inherits ConfirmationDialog
(unsafe).
Official documentation
See the documentation of this class in the Godot engine's official documentation.
Class hierarchy
EditorFileDialog inherits methods from:
Tool
This class is used to interact with Godot's editor.
Safety
All types in the Godot API have "interior mutability" in Rust parlance.
To enforce that the official thread-safety guidelines are
followed, the typestate pattern is used in the Ref
and TRef
smart pointers,
and the Instance
API. The typestate Access
in these types tracks whether the
access is unique, shared, or exclusive to the current thread. For more information,
see the type-level documentation on Ref
.
Implementations
impl EditorFileDialog
[src]
Constants
pub const ACCESS_FILESYSTEM: i64
[src]
pub const ACCESS_RESOURCES: i64
[src]
pub const ACCESS_USERDATA: i64
[src]
pub const DISPLAY_LIST: i64
[src]
pub const DISPLAY_THUMBNAILS: i64
[src]
pub const MODE_OPEN_ANY: i64
[src]
pub const MODE_OPEN_DIR: i64
[src]
pub const MODE_OPEN_FILE: i64
[src]
pub const MODE_OPEN_FILES: i64
[src]
pub const MODE_SAVE_FILE: i64
[src]
impl EditorFileDialog
[src]
pub fn add_filter(&self, filter: impl Into<GodotString>)
[src]
Adds a comma-delimited file extension filter option to the [EditorFileDialog] with an optional semi-colon-delimited label.
For example, [code]"*.tscn, *.scn; Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)".
pub fn clear_filters(&self)
[src]
Removes all filters except for "All Files (*)".
pub fn access(&self) -> Access
[src]
The location from which the user may select a file, including [code]res://[/code], [code]user://[/code], and the local file system.
pub fn current_dir(&self) -> GodotString
[src]
The currently occupied directory.
pub fn current_file(&self) -> GodotString
[src]
The currently selected file.
pub fn current_path(&self) -> GodotString
[src]
The file system path in the address bar.
pub fn display_mode(&self) -> DisplayMode
[src]
The view format in which the [EditorFileDialog] displays resources to the user.
pub fn mode(&self) -> Mode
[src]
The purpose of the [EditorFileDialog], which defines the allowed behaviors.
pub fn get_vbox(&self) -> Option<Ref<VBoxContainer, Shared>>
[src]
Returns the [code]VBoxContainer[/code] used to display the file system.
pub fn invalidate(&self)
[src]
Notify the [EditorFileDialog] that its view of the data is no longer accurate. Updates the view contents on next view update.
pub fn is_overwrite_warning_disabled(&self) -> bool
[src]
If [code]true[/code], the [EditorFileDialog] will not warn the user before overwriting files.
pub fn is_showing_hidden_files(&self) -> bool
[src]
If [code]true[/code], hidden files and directories will be visible in the [EditorFileDialog].
pub fn set_access(&self, access: i64)
[src]
The location from which the user may select a file, including [code]res://[/code], [code]user://[/code], and the local file system.
pub fn set_current_dir(&self, dir: impl Into<GodotString>)
[src]
The currently occupied directory.
pub fn set_current_file(&self, file: impl Into<GodotString>)
[src]
The currently selected file.
pub fn set_current_path(&self, path: impl Into<GodotString>)
[src]
The file system path in the address bar.
pub fn set_disable_overwrite_warning(&self, disable: bool)
[src]
If [code]true[/code], the [EditorFileDialog] will not warn the user before overwriting files.
pub fn set_display_mode(&self, mode: i64)
[src]
The view format in which the [EditorFileDialog] displays resources to the user.
pub fn set_mode(&self, mode: i64)
[src]
The purpose of the [EditorFileDialog], which defines the allowed behaviors.
pub fn set_show_hidden_files(&self, show: bool)
[src]
If [code]true[/code], hidden files and directories will be visible in the [EditorFileDialog].
Methods from Deref<Target = ConfirmationDialog>
Trait Implementations
impl Debug for EditorFileDialog
[src]
impl Deref for EditorFileDialog
[src]
type Target = ConfirmationDialog
The resulting type after dereferencing.
fn deref(&self) -> &ConfirmationDialog
[src]
impl DerefMut for EditorFileDialog
[src]
fn deref_mut(&mut self) -> &mut ConfirmationDialog
[src]
impl GodotObject for EditorFileDialog
[src]
type RefKind = ManuallyManaged
The memory management kind of this type. This modifies the behavior of the
Ref
smart pointer. See its type-level documentation for more
information. Read more
fn class_name() -> &'static str
[src]
fn null() -> Null<Self>
[src]
fn new() -> Ref<Self, Unique> where
Self: Instanciable,
[src]
Self: Instanciable,
fn cast<T>(&self) -> Option<&T> where
T: GodotObject + SubClass<Self>,
[src]
T: GodotObject + SubClass<Self>,
fn upcast<T>(&self) -> &T where
Self: SubClass<T>,
T: GodotObject,
[src]
Self: SubClass<T>,
T: GodotObject,
unsafe fn assume_shared(&self) -> Ref<Self, Shared>
[src]
unsafe fn assume_thread_local(&self) -> Ref<Self, ThreadLocal> where
Self: GodotObject<RefKind = RefCounted>,
[src]
Self: GodotObject<RefKind = RefCounted>,
unsafe fn assume_unique(&self) -> Ref<Self, Unique>
[src]
impl QueueFree for EditorFileDialog
[src]
unsafe fn godot_queue_free(obj: *mut godot_object)
[src]
impl Sealed for EditorFileDialog
[src]
impl SubClass<AcceptDialog> for EditorFileDialog
[src]
impl SubClass<CanvasItem> for EditorFileDialog
[src]
impl SubClass<ConfirmationDialog> for EditorFileDialog
[src]
impl SubClass<Control> for EditorFileDialog
[src]
impl SubClass<Node> for EditorFileDialog
[src]
impl SubClass<Object> for EditorFileDialog
[src]
impl SubClass<Popup> for EditorFileDialog
[src]
impl SubClass<WindowDialog> for EditorFileDialog
[src]
Auto Trait Implementations
impl RefUnwindSafe for EditorFileDialog
impl !Send for EditorFileDialog
impl !Sync for EditorFileDialog
impl Unpin for EditorFileDialog
impl UnwindSafe for EditorFileDialog
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SubClass<T> for T where
T: GodotObject,
[src]
T: GodotObject,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,