[][src]Struct gdnative_bindings::EditorFileDialog

pub struct EditorFileDialog { /* fields omitted */ }

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

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>

pub fn get_cancel(&self) -> Option<Ref<Button, Shared>>[src]

Returns the cancel button.

Trait Implementations

impl Debug for EditorFileDialog[src]

impl Deref for EditorFileDialog[src]

type Target = ConfirmationDialog

The resulting type after dereferencing.

impl DerefMut for EditorFileDialog[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

impl QueueFree for EditorFileDialog[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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SubClass<T> for T where
    T: GodotObject
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.