loading.h 636 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <gui/view.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /** Loading anonymous structure */
  7. typedef struct Loading Loading;
  8. /** Allocate and initialize
  9. *
  10. * This View used to show system is doing some processing
  11. *
  12. * @return Loading View instance
  13. */
  14. Loading* loading_alloc();
  15. /** Deinitialize and free Loading View
  16. *
  17. * @param instance Loading instance
  18. */
  19. void loading_free(Loading* instance);
  20. /** Get Loading view
  21. *
  22. * @param instance Loading instance
  23. *
  24. * @return View instance that can be used for embedding
  25. */
  26. View* loading_get_view(Loading* instance);
  27. #ifdef __cplusplus
  28. }
  29. #endif