BsScriptGUICurves.generated.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //************** Copyright (c) 2016-2019 Marko Pintera ([email protected]). All rights reserved. *******************//
  3. #pragma once
  4. #include "BsScriptEditorPrerequisites.h"
  5. #include "Wrappers/GUI/BsScriptGUIElement.h"
  6. #include "BsScriptGUITimeline.generated.h"
  7. #include "../../bsf/Source/Foundation/bsfCore/Animation/BsAnimationUtility.h"
  8. #include "Math/BsVector2.h"
  9. #include "../../EditorCore/GUI/BsGUICurves.h"
  10. #include "Math/BsVector2I.h"
  11. #include "../../bsf/Source/Foundation/bsfCore/Animation/BsAnimationUtility.h"
  12. namespace bs { class GUICurves; }
  13. namespace bs { struct __CurveDrawInfoInterop; }
  14. namespace bs { struct __TangentRefInterop; }
  15. namespace bs
  16. {
  17. class BS_SCR_BED_EXPORT ScriptGUICurves : public TScriptGUIElement<ScriptGUICurves>
  18. {
  19. public:
  20. SCRIPT_OBJ(EDITOR_ASSEMBLY, EDITOR_NS, "GUICurves")
  21. ScriptGUICurves(MonoObject* managedInstance, GUICurves* value);
  22. private:
  23. void onClicked();
  24. typedef void(BS_THUNKCALL *onClickedThunkDef) (MonoObject*, MonoException**);
  25. static onClickedThunkDef onClickedThunk;
  26. static void Internal_setCurves(ScriptGUICurves* thisPtr, MonoArray* curves);
  27. static MonoArray* Internal_getCurves(ScriptGUICurves* thisPtr);
  28. static void Internal_setRange(ScriptGUICurves* thisPtr, float xRange, float yRange);
  29. static void Internal_setOffset(ScriptGUICurves* thisPtr, Vector2* offset);
  30. static void Internal_centerAndZoom(ScriptGUICurves* thisPtr);
  31. static bool Internal_pixelToCurveSpace(ScriptGUICurves* thisPtr, Vector2I* pixelCoords, Vector2* curveCoords, bool padding);
  32. static void Internal_curveToPixelSpace(ScriptGUICurves* thisPtr, Vector2* curveCoords, Vector2I* __output);
  33. static uint32_t Internal_findCurve(ScriptGUICurves* thisPtr, Vector2I* pixelCoords);
  34. static bool Internal_findKeyFrame(ScriptGUICurves* thisPtr, Vector2I* pixelCoords, KeyframeRef* keyframe);
  35. static bool Internal_findTangent(ScriptGUICurves* thisPtr, Vector2I* pixelCoords, __TangentRefInterop* tangent);
  36. static void Internal_selectKeyframe(ScriptGUICurves* thisPtr, KeyframeRef* keyframeRef, TangentModeBits tangentMode, bool selected);
  37. static void Internal_clearSelectedKeyframes(ScriptGUICurves* thisPtr);
  38. static void Internal_create(MonoObject* managedInstance, MonoString* styleName);
  39. static void Internal_create0(MonoObject* managedInstance, CurveDrawOption drawOptions, MonoString* styleName);
  40. };
  41. }