IMGText.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * ImageMeter confidential
  3. *
  4. * Copyright (C) 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_IMGTEXT_H
  16. #define IMAGEMETER_IMGTEXT_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include <stdint.h>
  21. #include <stdbool.h>
  22. struct IM_GText;
  23. bool IM_GElement_is_GText(struct IM_GElement*);
  24. struct IM_GText* IM_GText_from_GElement(struct IM_GElement*);
  25. void IM_GText_release(struct IM_GText*);
  26. void IM_GText_set_text(struct IM_GText*, const char* text);
  27. const char* IM_GText_get_text(const struct IM_GText*);
  28. void IM_GText_set_text_color_argb(struct IM_GText*, uint32_t argb);
  29. uint32_t IM_GText_get_text_color_argb(const struct IM_GText*);
  30. void IM_GText_set_show_border(struct IM_GText*, bool enable);
  31. bool IM_GText_get_show_border(const struct IM_GText*);
  32. void IM_GText_set_show_arrows(struct IM_GText*, bool enable);
  33. bool IM_GText_get_show_arrows(const struct IM_GText*);
  34. void IM_GText_set_fill_background(struct IM_GText*, bool enable);
  35. bool IM_GText_get_fill_background(const struct IM_GText*);
  36. void IM_GText_add_arrow(struct IM_GText*);
  37. bool IM_GText_delete_arrow(const struct IM_GText*);
  38. void IM_GText_set_audio_recording(struct IM_GText*, const char* filename, int duration_msecs);
  39. void IM_GText_delete_audio_recording(struct IM_GText*);
  40. const char* IM_GText_get_audio_recording_filename(const struct IM_GText*);
  41. int IM_GText_get_audio_recording_duration_msecs(const struct IM_GText*);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif //IMAGEMETER_IMGTEXT_H