1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>gimprectangle</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
<link rel="start" href="index.html" title="GIMP Base Library Reference Manual">
8
<link rel="up" href="libgimpbase.html" title="Part I. GIMP Base Library">
9
<link rel="prev" href="libgimpbase-gimpmemsize.html" title="gimpmemsize">
10
<link rel="next" href="libgimpbase-gimpparasite.html" title="gimpparasite">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="libgimpbase.html" title="Part I. GIMP Base Library">
14
<link rel="index" href="libgimpbase-index.html" title="Index">
15
<link rel="index" href="libgimpbase-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
16
<link rel="index" href="libgimpbase-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
17
<link rel="index" href="libgimpbase-index-deprecated.html" title="Index of deprecated symbols">
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
20
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
22
<td><a accesskey="p" href="libgimpbase-gimpmemsize.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
23
<td><a accesskey="u" href="libgimpbase.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
25
<th width="100%" align="center">GIMP Base Library Reference Manual</th>
26
<td><a accesskey="n" href="libgimpbase-gimpparasite.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2568576" class="shortcut">Top</a>
30
<a href="#id2509801" class="shortcut">Description</a></nobr></td></tr>
32
<div class="refentry" lang="en">
33
<a name="libgimpbase-gimprectangle"></a><div class="titlepage"></div>
34
<div class="refnamediv"><table width="100%"><tr>
37
<a name="id2568576"></a><span class="refentrytitle">gimprectangle</span>
41
<td valign="top" align="right"></td>
43
<div class="refsynopsisdiv">
45
<pre class="synopsis">
49
gboolean <a href="libgimpbase-gimprectangle.html#gimp-rectangle-intersect">gimp_rectangle_intersect</a> (gint x1,
63
<div class="refsect1" lang="en">
64
<a name="id2509801"></a><h2>Description</h2>
69
<div class="refsect1" lang="en">
70
<a name="id2509816"></a><h2>Details</h2>
71
<div class="refsect2" lang="en">
72
<a name="id2509827"></a><h3>
73
<a name="gimp-rectangle-intersect"></a>gimp_rectangle_intersect ()</h3>
74
<a class="indexterm" name="id2509841"></a><pre class="programlisting">gboolean gimp_rectangle_intersect (gint x1,
85
gint *dest_height);</pre>
87
Calculates the intersection of two rectangles.</p>
91
<div class="variablelist"><table border="0">
92
<col align="left" valign="top">
95
<td><span class="term"><em class="parameter"><code>x1</code></em> :</span></td>
96
<td> origin of first rectangle
100
<td><span class="term"><em class="parameter"><code>y1</code></em> :</span></td>
101
<td> origin of first rectangle
105
<td><span class="term"><em class="parameter"><code>width1</code></em> :</span></td>
106
<td> width of first rectangle
110
<td><span class="term"><em class="parameter"><code>height1</code></em> :</span></td>
111
<td> height of first rectangle
115
<td><span class="term"><em class="parameter"><code>x2</code></em> :</span></td>
116
<td> origin of second rectangle
120
<td><span class="term"><em class="parameter"><code>y2</code></em> :</span></td>
121
<td> origin of second rectangle
125
<td><span class="term"><em class="parameter"><code>width2</code></em> :</span></td>
126
<td> width of second rectangle
130
<td><span class="term"><em class="parameter"><code>height2</code></em> :</span></td>
131
<td> height of second rectangle
135
<td><span class="term"><em class="parameter"><code>dest_x</code></em> :</span></td>
136
<td> return location for origin of intersection (may be <code class="literal">NULL</code>)
140
<td><span class="term"><em class="parameter"><code>dest_y</code></em> :</span></td>
141
<td> return location for origin of intersection (may be <code class="literal">NULL</code>)
145
<td><span class="term"><em class="parameter"><code>dest_width</code></em> :</span></td>
146
<td> return location for width of intersection (may be <code class="literal">NULL</code>)
150
<td><span class="term"><em class="parameter"><code>dest_height</code></em> :</span></td>
151
<td> return location for height of intersection (may be <code class="literal">NULL</code>)
155
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
156
<td> <code class="literal">TRUE</code> if the intersection is non-empty, <code class="literal">FALSE</code> otherwise
162
<p class="since">Since GIMP 2.4