rebox.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef rebox_H_INCLUDED
  2. #define rebox_H_INCLUDED
  3. #include "eruta.h"
  4. typedef struct Rebox_ Rebox;
  5. /** Rebox is short for REctangular BOX. It's a rectangular
  6. box with given position and size. */
  7. struct Rebox_ {
  8. Point at;
  9. Point size;
  10. };
  11. /* This file was generated with:
  12. 'cfunctions -c -aoff -n -w rebox_proto src/rebox.c' */
  13. #ifndef CFH_REBOX_PROTO
  14. #define CFH_REBOX_PROTO
  15. /* From 'src/rebox.c': */
  16. Rebox rebox_make (int x , int y , int w , int h );
  17. Rebox * rebox_initbounds (Rebox * self , Rebox bounds );
  18. Rebox * rebox_init (Rebox * self , int x , int y , int w , int h );
  19. Rebox rebox_new (float x , float y , float w , float h );
  20. Point rebox_at (Rebox * self );
  21. Point rebox_x_ (Rebox * self , float x );
  22. Point rebox_y_ (Rebox * self , float y );
  23. Point rebox_xy_ (Rebox * self , float x , float y );
  24. Point rebox_at_ (Rebox * self , Point at );
  25. float rebox_x (Rebox * self );
  26. float rebox_y (Rebox * self );
  27. float rebox_w (Rebox * self );
  28. float rebox_h (Rebox * self );
  29. Point rebox_br(Rebox * self);
  30. float rebox_br_x (Rebox * self );
  31. float rebox_br_y (Rebox * self );
  32. float rebox_center_x (Rebox * self );
  33. float rebox_center_y (Rebox * self );
  34. Point rebox_center (Rebox * self );
  35. Point rebox_center_ (Rebox * self , Point center );
  36. int rebox_inside_p (Rebox * self , Rebox * other );
  37. double rebox_delta_x (Rebox * self , Rebox * other );
  38. double rebox_delta_y (Rebox * self , Rebox * other );
  39. #endif /* CFH_REBOX_PROTO */
  40. #endif