class ScriptGUISceneTreeView

Interop class between C++

& CLR for GUISceneTreeView.

Public

Constructors

ScriptGUISceneTreeView

ScriptGUISceneTreeView(GUISceneTreeView *nativeObject)

Methods

staticGetAssemblyName

static const char *GetAssemblyName()

staticGetNamespace

static const char *GetNamespace()

staticGetTypeName

static const char *GetTypeName()

staticSetupScriptBindings

static void SetupScriptBindings()

staticCreateScriptObject

static MonoObject *CreateScriptObject(bool construct)

GetNativeObject

GUISceneTreeView *GetNativeObject() const

Returns the native object that is being wrapped.

staticCreateScriptObjectAndWrapper

static MonoObject *CreateScriptObjectAndWrapper(GUIElement *nativeObject)

Creates a new script object and a script object wrapper of , and associates them with the provided native object.

Should not be called if already has an associated script object.

staticGetScriptExportable

static IScriptExportable *GetScriptExportable(IReflectable *nativeObject)

Casts the reflectable object to script exportable.

staticGetOrCreateScriptObject

static MonoObject *GetOrCreateScriptObject(NativeType *nativeObject)

Attempts to retrieve an existing associated script object from the provided native object.

If one doesn't exist, a new script object and the associated script wrapper will be created.

~TScriptObjectWrapper<SelfType, BaseType>

virtual ~TScriptObjectWrapper<SelfType, BaseType>() = default

RecreateScriptObjectAfterScriptReload

void RecreateScriptObjectAfterScriptReload() override

staticGetScriptObjectWrapper

static SelfType *GetScriptObjectWrapper(MonoObject *scriptObject)

Returns the script object wrapper associated with the provided script object.

staticGetMetaData

static const ScriptTypeMetaData *GetMetaData()

Returns the meta-data storing information about the script type.

staticInitializeMetaDataAtLoadTime

static void InitializeMetaDataAtLoadTime()

Takes care of initializing the meta-data when the application first load.

The meta-data will be registered with a global manager that will ensure it is kept up-to-date after operations such as assembly (re)load.

Protected

Methods

staticInitializeAdditionalMetaData

static void InitializeAdditionalMetaData(ScriptTypeMetaData &metaData)

Initialize RTTI type ID and callback used to create the script object/script object wrapper.

BindToScriptObject

void BindToScriptObject(MonoObject *scriptObject) override

Stores a pointer to itself in the script object.

This ensures that calls to GetScriptObjectWrapper() can return the script object wrapper associated with the script object.

Private

Methods

~ScriptGUISceneTreeView

~ScriptGUISceneTreeView() noexcept

SceneModified

void SceneModified()

Triggered when the native scene tree view modifies the scene.

ResourceDropped

void ResourceDropped(const HSceneObject &parent, const Vector<Path> &resourcePaths)

Triggered when a resource is dragged and dropped over the native scene tree view.

staticInternalCreateInstance

static void InternalCreateInstance(MonoObject *instance, ScriptSceneInstance *scriptSceneInstance, MonoString *style, MonoArray *guiOptions)

*********************************************************************

staticInternalUpdate

static void InternalUpdate(ScriptGUISceneTreeView *self)

staticInternalCutSelection

static void InternalCutSelection(ScriptGUISceneTreeView *self)

staticInternalCopySelection

static void InternalCopySelection(ScriptGUISceneTreeView *self)

staticInternalPasteToSelection

static void InternalPasteToSelection(ScriptGUISceneTreeView *self)

staticInternalDuplicateSelection

static void InternalDuplicateSelection(ScriptGUISceneTreeView *self)

staticInternalDeleteSelection

static void InternalDeleteSelection(ScriptGUISceneTreeView *self)

staticInternalRenameSelection

static void InternalRenameSelection(ScriptGUISceneTreeView *self)

staticInternalGetState

static MonoObject *InternalGetState(ScriptGUISceneTreeView *self)

staticInternalSetState

static void InternalSetState(ScriptGUISceneTreeView *self, MonoObject *obj)

Fields

mOnModifiedConn

HEvent mOnModifiedConn

mOnResourceDroppedConn

HEvent mOnResourceDroppedConn