class ManagedModalWindow

Inherits: ModalWindow

Modal window implementation that handles managed modal window implementations.

Each implementation is wrapped in this object and then managed by its parent interop object of ScriptModalWindow type.

Public

Constructors

ManagedModalWindow

ManagedModalWindow(const String &nameSpace, const String &typeName, const GUIPhysicalSize &size)

Methods

Update

void Update() override

Called once every frame.

staticCreateScriptObject

static MonoObject *CreateScriptObject(const String &nameSpace, const String &typeName)

Attempts to create a script object for the modal window described by the provided type.

Returned object will not have the constructor called.

SetupScriptBindings

void SetupScriptBindings()

Sets up script bindings between native and managed class.

Must be called after creating the script object wrapper, or after assembly is reloaded.

TriggerOnInitialize

void TriggerOnInitialize()

Triggers OnInitialize callbacks on the managed instance.

TriggerOnDestroy

void TriggerOnDestroy()

Triggers OnDestroy callbacks on the managed instance.

staticOpenWindow

static SPtr<ManagedModalWindow> OpenWindow(const String &nameSpace, const String &typeName)

Attempts to open a managed modal window with the provided name.

nameSpace
Namespace of the managed window type.
typeName
Type name of the managed window type.

Returns: Instance of the managed window, or null if window cannot be opened.

Protected

Methods

DoOnWindowResized

void DoOnWindowResized() override

Callback that triggers whenever the underlying render window changes size.

Close

void Close() override

Closes and destroys the window.

NotifyScriptWillReload

void NotifyScriptWillReload() override

Called on all script objects before script object reload happens.

Private

Fields

mNamespace

String mNamespace

mTypename

String mTypename

mOnInitializeThunk

OnInitializeThunkDef mOnInitializeThunk

mOnDestroyThunk

OnDestroyThunkDef mOnDestroyThunk

mUpdateThunk

UpdateThunkDef mUpdateThunk

mOnWindowResizedMethod

MonoMethod * mOnWindowResizedMethod

mIsInitialized

bool mIsInitialized