zori_longtext.h 637 B

12345678910111213141516171819202122232425262728
  1. #ifndef zori_longtext_H_INCLUDED
  2. #define zori_longtext_H_INCLUDED
  3. #include "zori.h"
  4. #define ZORI_WIDGET_TYPE_LONGTEXT ZORI_WIDGET_TYPE('z','l','t','x')
  5. struct zori_longtext {
  6. struct zori_widget widget;
  7. int align;
  8. zori_string * caption;
  9. zori_string * text;
  10. int line_start, line_stop, line_pos; /* Current text "window". */
  11. int line_max, line_height; /* text constants. */
  12. int page_lines;
  13. /* Text "window" size for one "page" of text in amount of lines. */
  14. int paused;
  15. double delay;
  16. double delay_total;
  17. };
  18. #include "zori_longtext_proto.h"
  19. #endif