BsScriptGUIResourceField.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "BsScriptEditorPrerequisites.h"
  3. #include "BsScriptGUIElement.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_SCR_BED_EXPORT ScriptGUIResourceField : public TScriptGUIElement<ScriptGUIResourceField>
  7. {
  8. public:
  9. SCRIPT_OBJ(BansheeEditorAssemblyName, "BansheeEditor", "GUIResourceField")
  10. private:
  11. static void internal_createInstance(MonoObject* instance, MonoReflectionType* type, MonoObject* title, UINT32 titleWidth,
  12. MonoString* style, MonoArray* guiOptions, bool withTitle);
  13. static void internal_getValue(ScriptGUIResourceField* nativeInstance, MonoObject** output);
  14. static void internal_setValue(ScriptGUIResourceField* nativeInstance, MonoObject* value);
  15. static void onChanged(MonoObject* instance, const HResource& newValue);
  16. static MonoObject* nativeToManagedResource(const HResource& instance);
  17. ScriptGUIResourceField(MonoObject* instance, GUIResourceField* resourceField);
  18. typedef void(__stdcall *OnChangedThunkDef) (MonoObject*, MonoObject*, MonoException**);
  19. static OnChangedThunkDef onChangedThunk;
  20. };
  21. }