flip_social_draw.h 1016 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef FLIP_SOCIAL_DRAW_H
  2. #define FLIP_SOCIAL_DRAW_H
  3. #include <flip_social.h>
  4. #include <flip_storage/flip_social_storage.h>
  5. #include <callback/flip_social_callback.h>
  6. #include <friends/flip_social_friends.h>
  7. typedef enum
  8. {
  9. ActionNone,
  10. ActionBack,
  11. ActionNext,
  12. ActionPrev,
  13. ActionFlip,
  14. } Action;
  15. extern Action action;
  16. bool flip_social_board_is_active(Canvas *canvas);
  17. void flip_social_handle_error(Canvas *canvas);
  18. void on_input(const void *event, void *ctx);
  19. // Function to draw the message on the canvas with word wrapping
  20. void draw_user_message(Canvas *canvas, const char *user_message, int x, int y);
  21. void flip_social_callback_draw_compose(Canvas *canvas, void *model);
  22. // function to draw the dialog canvas
  23. void flip_social_canvas_draw_message(Canvas *canvas, char *user_username, char *user_message, bool is_flipped, bool show_prev, bool show_next, int flip_count);
  24. // Callback function to handle the feed dialog
  25. void flip_social_callback_draw_feed(Canvas *canvas, void *model);
  26. #endif