| 123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include "BsScriptEnginePrerequisites.h"
- #include "BsScriptGUIElement.h"
- #include "BsGUITexture.h"
- namespace BansheeEngine
- {
- /**
- * @brief Interop class between C++ & CLR for GUIInputBox.
- */
- class BS_SCR_BE_EXPORT ScriptGUIInputBox : public TScriptGUIElement<ScriptGUIInputBox>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUITextBox")
- private:
- ScriptGUIInputBox(MonoObject* instance, GUIInputBox* inputBox);
- /**
- * @brief Triggered when the value in the native input box changes.
- */
- static void onChanged(MonoObject* instance, const WString& newValue);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_createInstance(MonoObject* instance, bool multiline, MonoString* style, MonoArray* guiOptions);
- static void internal_setText(ScriptGUIInputBox* nativeInstance, MonoString* text);
- static void internal_getText(ScriptGUIInputBox* nativeInstance, MonoString** text);
- static void internal_setTint(ScriptGUIInputBox* nativeInstance, Color color);
- typedef void(__stdcall *OnChangedThunkDef) (MonoObject*, MonoString*, MonoException**);
- static OnChangedThunkDef onChangedThunk;
- };
- }
|