IMEditCore.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * ImageMeter confidential
  3. *
  4. * Copyright (C) 2018-2019 by Dirk Farin, Kronenstr. 49b, 70174 Stuttgart, Germany
  5. * All Rights Reserved.
  6. *
  7. * NOTICE: All information contained herein is, and remains the property
  8. * of Dirk Farin. The intellectual and technical concepts contained
  9. * herein are proprietary to Dirk Farin and are protected by trade secret
  10. * and copyright law.
  11. * Dissemination of this information or reproduction of this material
  12. * is strictly forbidden unless prior written permission is obtained
  13. * from Dirk Farin.
  14. */
  15. #ifndef IMAGEMETER_IMEDITCORE_H
  16. #define IMAGEMETER_IMEDITCORE_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include <stdint.h>
  21. #include <stdbool.h>
  22. struct IM_EditCore;
  23. void IM_EditCore_release(struct IM_EditCore*);
  24. void IM_EditCore_touchDown(struct IM_EditCore*, int id, int x,int y, double timestamp_secs);
  25. void IM_EditCore_touchMove(struct IM_EditCore*, int id, int x,int y, double timestamp_secs);
  26. void IM_EditCore_touchUp(struct IM_EditCore*, int id, int x,int y, double timestamp_secs);
  27. void IM_EditCore_touchCancelled(struct IM_EditCore*, int id);
  28. void IM_EditCore_start_interaction_addMeasure(struct IM_EditCore*, const char* preset);
  29. void IM_EditCore_start_interaction_addAngle(struct IM_EditCore*);
  30. void IM_EditCore_start_interaction_addText(struct IM_EditCore*);
  31. void IM_EditCore_start_interaction_addFreehand(struct IM_EditCore*);
  32. void IM_EditCore_end_current_interaction(struct IM_EditCore*);
  33. void IM_EditCore_set_color_of_active_element(struct IM_EditCore*,uint32_t argb);
  34. void IM_EditCore_set_color_of_future_created_elements(struct IM_EditCore*,uint32_t argb);
  35. void IM_EditCore_delete_active_element(struct IM_EditCore*);
  36. void IM_EditCore_undo(struct IM_EditCore*);
  37. void IM_EditCore_redo(struct IM_EditCore*);
  38. bool IM_EditCore_undo_available(struct IM_EditCore*);
  39. bool IM_EditCore_redo_available(struct IM_EditCore*);
  40. void IM_EditCore_audioCompleted(struct IM_EditCore*, const char* audioFile);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif //IMAGEMETER_IMEDITCORE_H