zori_caption.h 705 B

12345678910111213141516171819202122232425
  1. #ifndef zori_caption_H_INCLUDED
  2. #define zori_caption_H_INCLUDED
  3. /* Caption helper struct for use by wigdets that have captions. */
  4. struct zori_caption {
  5. zori_string * text;
  6. struct zori_style * style;
  7. zori_box box;
  8. };
  9. struct zori_caption *
  10. zori_caption_set(struct zori_caption * caption, const zori_string * text);
  11. struct zori_caption *
  12. zori_caption_set_cstr(struct zori_caption * caption, const char * cstr);
  13. struct zori_caption *zori_caption_init(struct zori_caption *caption, const char *cstr);
  14. void zori_caption_draw(const struct zori_caption *caption, const zori_rebox *box, const struct zori_style *style);
  15. void zori_caption_done(struct zori_caption *caption);
  16. #endif