~ubuntu-branches/ubuntu/saucy/mutter/saucy

« back to all changes in this revision

Viewing changes to src/core/boxes.c

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2011-04-10 22:27:59 UTC
  • mfrom: (0.7.1 upstream) (0.3.20 experimental)
  • Revision ID: james.westby@ubuntu.com-20110410222759-o6n1i5p0unsti44n
Tags: 3.0.0-0ubuntu1
* New upstream release

* Merge with debian experimental (LP: #742458), remaining changes:
  + debian/patches/03_link_gles2.patch: Link to clutter-glx-1.0
    explicitily at the end of link flags, to bring in libGLESv2 on armel.
* debian/control.in:
  + rename gir package to gir1.2-mutter-3.0
* debian/libmutter0.symbols:
  + updated
* debian/patches:
  + fix 03_link_gles2.patch 

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 */
28
28
 
29
29
#include "boxes-private.h"
30
 
#include "util.h"
 
30
#include <meta/util.h>
31
31
#include <X11/Xutil.h>  /* Just for the definition of the various gravities */
32
32
 
33
33
/* It would make sense to use GSlice here, but until we clean up the
179
179
  return rect->width * rect->height;
180
180
}
181
181
 
 
182
/**
 
183
 * meta_rectangle_intersect:
 
184
 * @src1: a #MetaRectangle
 
185
 * @src2: another #MetaRectangle
 
186
 * @dest: (out caller-allocates): an empty #MetaRectangle, to be filled
 
187
 *   with the coordinates of the intersection.
 
188
 *
 
189
 * Returns: TRUE is some intersection exists and is not degenerate, FALSE
 
190
 *   otherwise.
 
191
 */
182
192
gboolean
183
193
meta_rectangle_intersect (const MetaRectangle *src1,
184
194
                          const MetaRectangle *src2,
226
236
          (src1->height == src2->height));
227
237
}
228
238
 
 
239
/**
 
240
 * meta_rectangle_union:
 
241
 * @rect1: a #MetaRectangle
 
242
 * @rect2: another #MetaRectangle
 
243
 * @dest: (out caller-allocates): an empty #MetaRectangle, to be filled
 
244
 *   with the coordinates of the bounding box.
 
245
 */
229
246
void
230
247
meta_rectangle_union (const MetaRectangle *rect1,
231
248
                      const MetaRectangle *rect2,