class ScriptGUIElement

Extends TScriptObjectWrapper by providing functionality required for types deriving from GUIElement passed along as a pointer.

Public

Constructors

ScriptGUIElement

ScriptGUIElement(GUIElement *nativeObject)

Methods

staticGetAssemblyName

static const char *GetAssemblyName()

staticGetNamespace

static const char *GetNamespace()

staticGetTypeName

static const char *GetTypeName()

~ScriptGUIElement

~ScriptGUIElement() noexcept

staticSetupScriptBindings

static void SetupScriptBindings()

staticCreateScriptObject

static MonoObject *CreateScriptObject(bool construct)

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

staticInternalSetPosition

static void InternalSetPosition(ScriptGUIElement *self, TUnitValue<int32_t, LogicalPixel> *x, TUnitValue<int32_t, LogicalPixel> *y)

staticInternalSetPosition0

static void InternalSetPosition0(ScriptGUIElement *self, __TVector2_TUnitValue_int32_t__LogicalPixel__Interop *position)

staticInternalSetWidth

static void InternalSetWidth(ScriptGUIElement *self, TUnitValue<int32_t, LogicalPixel> *width)

staticInternalSetFlexibleWidth

static void InternalSetFlexibleWidth(ScriptGUIElement *self, TUnitValue<int32_t, LogicalPixel> *minWidth, TUnitValue<int32_t, LogicalPixel> *maxWidth)

staticInternalSetHeight

static void InternalSetHeight(ScriptGUIElement *self, TUnitValue<int32_t, LogicalPixel> *height)

staticInternalSetFlexibleHeight

static void InternalSetFlexibleHeight(ScriptGUIElement *self, TUnitValue<int32_t, LogicalPixel> *minHeight, TUnitValue<int32_t, LogicalPixel> *maxHeight)

staticInternalSetSize

static void InternalSetSize(ScriptGUIElement *self, __TSize2_TUnitValue_int32_t__LogicalPixel__Interop *size)

staticInternalResetSizeConstraints

static void InternalResetSizeConstraints(ScriptGUIElement *self)

staticInternalSetHidden

static void InternalSetHidden(ScriptGUIElement *self, bool hidden)

staticInternalSetActive

static void InternalSetActive(ScriptGUIElement *self, bool active)

staticInternalSetDisabled

static void InternalSetDisabled(ScriptGUIElement *self, bool disabled)

staticInternalCalculateSizeInLayout

static void InternalCalculateSizeInLayout(ScriptGUIElement *self, __TSize2_TUnitValue_int32_t__LogicalPixel__Interop *__output)

staticInternalCalculatePositionRelativeTo

static void InternalCalculatePositionRelativeTo(ScriptGUIElement *self, MonoObject *relativeTo, __TVector2_TUnitValue_int32_t__LogicalPixel__Interop *__output)

staticInternalCalculateAbsoluteBoundsRelativeTo

static void InternalCalculateAbsoluteBoundsRelativeTo(ScriptGUIElement *self, MonoObject *relativeTo, __TArea2_TUnitValue_int32_t__PhysicalPixel___TUnitValue_int32_t__PhysicalPixel__Interop *__output)

staticInternalCalculateAbsoluteBounds

static void InternalCalculateAbsoluteBounds(ScriptGUIElement *self, __TArea2_TUnitValue_int32_t__PhysicalPixel___TUnitValue_int32_t__PhysicalPixel__Interop *__output)

staticInternalCalculateScreenBounds

static void InternalCalculateScreenBounds(ScriptGUIElement *self, __TArea2_TUnitValue_int32_t__PhysicalPixel___TUnitValue_int32_t__PhysicalPixel__Interop *__output)

staticInternalWidgetToElementSpace

static void InternalWidgetToElementSpace(ScriptGUIElement *self, __TVector2_TUnitValue_int32_t__PhysicalPixel__Interop *point, __TVector2_TUnitValue_int32_t__LogicalPixel__Interop *__output)

staticInternalElementToWidgetSpace

static void InternalElementToWidgetSpace(ScriptGUIElement *self, __TVector2_TUnitValue_int32_t__LogicalPixel__Interop *point, __TVector2_TUnitValue_int32_t__PhysicalPixel__Interop *__output)

staticInternalWidgetToElementSpace0

static void InternalWidgetToElementSpace0(ScriptGUIElement *self, __TArea2_TUnitValue_int32_t__PhysicalPixel___TUnitValue_int32_t__PhysicalPixel__Interop *area, __TArea2_TUnitValue_int32_t__LogicalPixel___TUnitValue_int32_t__LogicalPixel__Interop *__output)

staticInternalElementToWidgetSpace0

static void InternalElementToWidgetSpace0(ScriptGUIElement *self, __TArea2_TUnitValue_int32_t__LogicalPixel___TUnitValue_int32_t__LogicalPixel__Interop *area, __TArea2_TUnitValue_int32_t__PhysicalPixel___TUnitValue_int32_t__PhysicalPixel__Interop *__output)

staticInternalDestroy

static void InternalDestroy(ScriptGUIElement *self)

staticInternalUpdateLayoutIfDirty

static void InternalUpdateLayoutIfDirty(ScriptGUIElement *self)

staticInternalGetParent

static MonoObject *InternalGetParent(ScriptGUIElement *self)

staticInternalIsHidden

static bool InternalIsHidden(ScriptGUIElement *self)

staticInternalIsActive

static bool InternalIsActive(ScriptGUIElement *self)

staticInternalIsDisabled

static bool InternalIsDisabled(ScriptGUIElement *self)