[][src]Struct gdnative::api::ScriptEditor

pub struct ScriptEditor { /* fields omitted */ }

tools class ScriptEditor inherits PanelContainer (unsafe).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Class hierarchy

ScriptEditor 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 ScriptEditor[src]

pub fn can_drop_data_fw(
    &self,
    point: Vector2D<f32, UnknownUnit>,
    data: impl OwnedToVariant,
    from: impl AsArg<Control>
) -> bool
[src]

pub fn drop_data_fw(
    &self,
    point: Vector2D<f32, UnknownUnit>,
    data: impl OwnedToVariant,
    from: impl AsArg<Control>
)
[src]

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

Returns a [Script] that is currently active in editor.

pub fn get_drag_data_fw(
    &self,
    point: Vector2D<f32, UnknownUnit>,
    from: impl AsArg<Control>
) -> Variant
[src]

pub fn get_open_scripts(&self) -> VariantArray<Shared>[src]

Returns an array with all [Script] objects which are currently open in editor.

pub fn goto_line(&self, line_number: i64)[src]

Goes to the specified line in the current script.

pub fn open_script_create_dialog(
    &self,
    base_name: impl Into<GodotString>,
    base_path: impl Into<GodotString>
)
[src]

Methods from Deref<Target = PanelContainer>

Trait Implementations

impl Debug for ScriptEditor[src]

impl Deref for ScriptEditor[src]

type Target = PanelContainer

The resulting type after dereferencing.

impl DerefMut for ScriptEditor[src]

impl GodotObject for ScriptEditor[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 ScriptEditor[src]

impl SubClass<CanvasItem> for ScriptEditor[src]

impl SubClass<Container> for ScriptEditor[src]

impl SubClass<Control> for ScriptEditor[src]

impl SubClass<Node> for ScriptEditor[src]

impl SubClass<Object> for ScriptEditor[src]

impl SubClass<PanelContainer> for ScriptEditor[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.