draw.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef draw_H_INCLUDED
  2. #define draw_H_INCLUDED
  3. #include "eruta.h"
  4. #include "image.h"
  5. /* This file was generated with:
  6. 'cfunctions -c -aoff -n -w draw_proto src/draw.c' */
  7. #ifndef CFH_DRAW_PROTO
  8. #define CFH_DRAW_PROTO
  9. /* From 'src/draw.c': */
  10. void image_blitscale9 (Image * img , int xx , int yy , int new_w , int new_h , int corner_w , int corner_h );
  11. void draw_slab (int x , int y , int w , int h , Color col );
  12. void draw_roundslab (int x , int y , int w , int h , int rx , int ry , Color col );
  13. void draw_box (int x , int y , int w , int h , Color col , int tt );
  14. void draw_roundbox (int x , int y , int w , int h , int rx , int ry , Color col , int tt );
  15. void draw_frame (int xx , int yy , int ww , int hh , int tt , Color fg , Color bg );
  16. void draw_roundframe (int xx , int yy , int ww , int hh , int tt , Color fg , Color bg );
  17. bool draw_convert_average_to_alpha(ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR mask_color);
  18. void draw_multi_line_text(ALLEGRO_FONT * font, ALLEGRO_COLOR color,
  19. float x, float y, float w, float h,
  20. int flags,
  21. char * text);
  22. typedef struct DrawScrollingText_ {
  23. char * text;
  24. float x, y, w, h;
  25. int line_start, line_now, line_stop, line_pos, paused, line_scroll;
  26. float line_height;
  27. int flags;
  28. ALLEGRO_FONT * font;
  29. ALLEGRO_COLOR color;
  30. } DrawScrollingText;
  31. void draw_scrolling_text(DrawScrollingText * scrolling_text);
  32. #endif /* CFH_DRAW_PROTO */
  33. #endif