class ManagedDropDownWindow

Inherits: DropDownWindow

Managed implementation of a DropDownWindow.

All managed drop down windows are implemented using this class, and the managed instance contains the specifics of each implementation.

Public

Constructors

ManagedDropDownWindow

ManagedDropDownWindow(const SPtr<RenderWindow> &parent, const HCamera &camera, const GUIPhysicalPoint &position, const GUIPhysicalSize &size)

Methods

Update

void Update() override

Called once every frame.

Close

void Close() override

Closes and destroys the window.

TriggerOnInitialize

void TriggerOnInitialize()

Trigger the OnInitialize method on the managed object.

TriggerOnDestroy

void TriggerOnDestroy()

Trigger the OnDestroy method on the managed object.

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.

staticCreateScriptObject

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

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

Returned object will not have the constructor called.

staticOpenWindow

static SPtr<ManagedDropDownWindow> OpenWindow(const String &nameSpace, const String &typeName, const GUIElement *parent, const GUILogicalPoint &position)

Attempts to open a drop down window with the provided name.

nameSpace
Namespace of the managed window type.
typeName
Type name of the managed window type.
parent
Parent GUI element relative to which to position the drop down window.
position
Position relative to the parent GUI element at which to open the drop down window.

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

Protected

Methods

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

mIsInitialized

bool mIsInitialized