ScriptEditorBase

package
v0.0.0-...-7325ca5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package ScriptEditorBase provides methods for working with ScriptEditorBase object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsScriptEditorBase() Instance
}

type Instance

type Instance [1]gdclass.ScriptEditorBase

Base editor for editing scripts in the [ScriptEditor]. This does not include documentation items.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AddSyntaxHighlighter

func (self Instance) AddSyntaxHighlighter(highlighter [1]gdclass.EditorSyntaxHighlighter)

Adds a [EditorSyntaxHighlighter] to the open script.

func (Instance) AsBoxContainer

func (self Instance) AsBoxContainer() BoxContainer.Instance

func (Instance) AsCanvasItem

func (self Instance) AsCanvasItem() CanvasItem.Instance

func (Instance) AsContainer

func (self Instance) AsContainer() Container.Instance

func (Instance) AsControl

func (self Instance) AsControl() Control.Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsScriptEditorBase

func (self Instance) AsScriptEditorBase() Instance

func (Instance) AsVBoxContainer

func (self Instance) AsVBoxContainer() VBoxContainer.Instance

func (Instance) GetBaseEditor

func (self Instance) GetBaseEditor() [1]gdclass.Control

Returns the underlying [Control] used for editing scripts. For text scripts, this is a [CodeEdit].

func (Instance) OnEditedScriptChanged

func (self Instance) OnEditedScriptChanged(cb func())

func (Instance) OnGoToHelp

func (self Instance) OnGoToHelp(cb func(what string))

func (Instance) OnGoToMethod

func (self Instance) OnGoToMethod(cb func(script Object.Instance, method string))

func (Instance) OnNameChanged

func (self Instance) OnNameChanged(cb func())

func (Instance) OnReplaceInFilesRequested

func (self Instance) OnReplaceInFilesRequested(cb func(text string))

func (Instance) OnRequestHelp

func (self Instance) OnRequestHelp(cb func(topic string))

func (Instance) OnRequestOpenScriptAtLine

func (self Instance) OnRequestOpenScriptAtLine(cb func(script Object.Instance, line int))

func (Instance) OnRequestSaveHistory

func (self Instance) OnRequestSaveHistory(cb func())

func (Instance) OnRequestSavePreviousState

func (self Instance) OnRequestSavePreviousState(cb func(state map[any]any))

func (Instance) OnSearchInFilesRequested

func (self Instance) OnSearchInFilesRequested(cb func(text string))

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL