fix jsut committed crasher by rewriting startDrag action
[swfdec.git] / libswfdec / swfdec_rect.h
blob5f544dece2e579fd63c30a09a4291cfcce7949d7
2 #ifndef __SWFDEC_RECT_H__
3 #define __SWFDEC_RECT_H__
5 #include <libswfdec/swfdec_types.h>
7 struct _SwfdecRect
9 double x0;
10 double y0;
11 double x1;
12 double y1;
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);
28 #endif