BsScriptGUICurves.generated.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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
  13. {
  14. class GUICurves;
  15. struct __CurveDrawInfoInterop;
  16. struct __TangentRefInterop;
  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. }