2 #ifndef __SWFDEC_RECT_H__
3 #define __SWFDEC_RECT_H__
5 #include <libswfdec/swfdec_types.h>
15 void swfdec_rect_init_empty (SwfdecRect
*rect
);
17 gboolean
swfdec_rect_intersect (SwfdecRect
* dest
, const SwfdecRect
* a
, const SwfdecRect
* b
);
18 void swfdec_rect_round (SwfdecRect
*dest
, SwfdecRect
*src
);
19 void swfdec_rect_union (SwfdecRect
* dest
, const SwfdecRect
* a
, const SwfdecRect
* b
);
20 void swfdec_rect_subtract (SwfdecRect
*dest
, const SwfdecRect
*a
, const SwfdecRect
*b
);
21 void swfdec_rect_scale (SwfdecRect
*dest
, const SwfdecRect
*src
, double factor
);
22 gboolean
swfdec_rect_is_empty (const SwfdecRect
* a
);
23 /* FIXME: rename to _contains_point and _contains instead of _inside? */
24 gboolean
swfdec_rect_contains (const SwfdecRect
*rect
, double x
, double y
);
25 gboolean
swfdec_rect_inside (const SwfdecRect
*outer
, const SwfdecRect
*inner
);
26 void swfdec_rect_transform (SwfdecRect
*dest
, const SwfdecRect
*src
, const cairo_matrix_t
*matrix
);