1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>gtkmm: Gdk::Region Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.7.3 -->
13
<table cellspacing="0" cellpadding="0">
15
<tr style="height: 56px;">
16
<td style="padding-left: 0.5em;">
17
<div id="projectname">gtkmm <span id="projectnumber">2.24.2</span></div>
23
<div id="navrow1" class="tabs">
25
<li><a href="index.html"><span>Main Page</span></a></li>
26
<li><a href="pages.html"><span>Related Pages</span></a></li>
27
<li><a href="modules.html"><span>Modules</span></a></li>
28
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
29
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
32
<div id="navrow2" class="tabs2">
34
<li><a href="annotated.html"><span>Class List</span></a></li>
35
<li><a href="classes.html"><span>Class Index</span></a></li>
36
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
37
<li><a href="functions.html"><span>Class Members</span></a></li>
40
<div id="nav-path" class="navpath">
42
<li class="navelem"><a class="el" href="namespaceGdk.html">Gdk</a> </li>
43
<li class="navelem"><a class="el" href="classGdk_1_1Region.html">Region</a> </li>
49
<a href="#pub-methods">Public Member Functions</a> |
50
<a href="#pro-attribs">Protected Attributes</a> |
51
<a href="#related">Related Functions</a> </div>
52
<div class="headertitle">
53
<h1>Gdk::Region Class Reference</h1> </div>
55
<div class="contents">
56
<!-- doxytag: class="Gdk::Region" -->
57
<p>This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graphical operations (see <a class="el" href="classGdk_1_1GC.html#a6109789b4e63e62443fa9433c77525e8" title="Sets the clip mask for a graphics context from a region structure.">Gdk::GC::set_clip_region()</a>). <a href="#_details">More...</a></p>
59
<p><a href="classGdk_1_1Region-members.html">List of all members.</a></p>
60
<table class="memberdecls">
61
<tr><td colspan="2"><h2><a name="pub-methods"></a>
62
Public Member Functions</h2></td></tr>
63
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#acbf9cddc76ff394cca43693cf205001f">Region</a> ()</td></tr>
64
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a9d713e1c3563e4cec3d29e5484ba0ae9">Region</a> (GdkRegion* castitem, bool make_a_copy=false)</td></tr>
65
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a572e1d42d9f8fa0921e4020e54d89879">Region</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& src)</td></tr>
66
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGdk_1_1Region.html">Region</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a4c9371596bda2f44397c2c8aed19451e">operator=</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& src)</td></tr>
67
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a090553fce729ac41f5ee86670596e060">~Region</a> ()</td></tr>
68
<tr><td class="memItemLeft" align="right" valign="top">GdkRegion* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a88ddc5f67e8f73ff670940a5bf271d95">gobj</a> ()</td></tr>
69
<tr><td class="memItemLeft" align="right" valign="top">const GdkRegion* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#abbab3766b295ad9f13cfe4239bd62de5">gobj</a> () const </td></tr>
70
<tr><td class="memItemLeft" align="right" valign="top">GdkRegion* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a1bcf45ef91d6bcd306741c65acca5a1a">gobj_copy</a> () const </td></tr>
71
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. <a href="#a1bcf45ef91d6bcd306741c65acca5a1a"></a><br/></td></tr>
72
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#afbaeee985278c783b1c2ef8024ef5798">Region</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>< <a class="el" href="classGdk_1_1Point.html">Gdk::Point</a> >& points, <a class="el" href="group__gdkmmEnums.html#gacdee003b8806d447553fd52634a7c135">FillRule</a> fill_rule)</td></tr>
73
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#aa6cf19ceb186845c0ec58f3608b7012f">Region</a> (const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& rectangle)</td></tr>
74
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#aa3c12f5281e440334f941d542e5b8a5e">get_clipbox</a> (const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& rectangle)</td></tr>
75
<tr><td class="mdescLeft"> </td><td class="mdescRight">Obtains the smallest rectangle which includes the entire <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>. <a href="#aa3c12f5281e440334f941d542e5b8a5e"></a><br/></td></tr>
76
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>< <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a24f61bbfd4d7477e2e3ebc9d1a77c543">get_rectangles</a> () const </td></tr>
77
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#af7753c68bccb64f394914e11b866d2ab">empty</a> ()</td></tr>
78
<tr><td class="mdescLeft"> </td><td class="mdescRight">Finds out if the <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a> is empty. <a href="#af7753c68bccb64f394914e11b866d2ab"></a><br/></td></tr>
79
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#aa970ecf413ac23939f529b9e1c64e4ac">point_in</a> (int x, int y)</td></tr>
80
<tr><td class="mdescLeft"> </td><td class="mdescRight">Finds out if a point is in a region. <a href="#aa970ecf413ac23939f529b9e1c64e4ac"></a><br/></td></tr>
81
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gdkmmEnums.html#ga08d3ef020cf9281bc1ef38eb476a522a">OverlapType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a7c07ccb6b945f3aea839cf5a240e9cda">rect_in</a> (const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& rect)</td></tr>
82
<tr><td class="mdescLeft"> </td><td class="mdescRight">Tests whether a rectangle is within a region. <a href="#a7c07ccb6b945f3aea839cf5a240e9cda"></a><br/></td></tr>
83
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#aaa148e85944b0f80aac5c63dcdf0d539">offset</a> (int dx, int dy)</td></tr>
84
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves a region the specified distance. <a href="#aaa148e85944b0f80aac5c63dcdf0d539"></a><br/></td></tr>
85
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a704914b3d479f04287bda71e3505601c">shrink</a> (int dx, int dy)</td></tr>
86
<tr><td class="mdescLeft"> </td><td class="mdescRight">Resizes a region by the specified amount. <a href="#a704914b3d479f04287bda71e3505601c"></a><br/></td></tr>
87
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#ac2099c7feb3f0db0a13599ce82a64ccb">union_with_rect</a> (const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& rect)</td></tr>
88
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the area of <em>region</em> to the union of the areas of <em>region</em> and <em>rect</em>. <a href="#ac2099c7feb3f0db0a13599ce82a64ccb"></a><br/></td></tr>
89
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#acd2355a5079d9db24f71aa19836284b5">intersect</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& source2)</td></tr>
90
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the area of <em>source1</em> to the intersection of the areas of <em>source1</em> and <em>source2</em>. <a href="#acd2355a5079d9db24f71aa19836284b5"></a><br/></td></tr>
91
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a9c911592e7eba011d2c1874ca4ec2b37">union_</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& source2)</td></tr>
92
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the area of <em>source1</em> to the union of the areas of <em>source1</em> and <em>source2</em>. <a href="#a9c911592e7eba011d2c1874ca4ec2b37"></a><br/></td></tr>
93
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a3bda6bea1ed064c6ab41700d24b2933e">subtract</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& source2)</td></tr>
94
<tr><td class="mdescLeft"> </td><td class="mdescRight">Subtracts the area of <em>source2</em> from the area <em>source1</em>. <a href="#a3bda6bea1ed064c6ab41700d24b2933e"></a><br/></td></tr>
95
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a13df0bfd25da620cae29dc8421b144ad">xor_</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& source2)</td></tr>
96
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the area of <em>source1</em> to the exclusive-OR of the areas of <em>source1</em> and <em>source2</em>. <a href="#a13df0bfd25da620cae29dc8421b144ad"></a><br/></td></tr>
97
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a182373eb640d80bcf9b3a37a496e770d">spans_intersect_foreach</a> (GdkSpan* spans, int n_spans, bool sorted, GdkSpanFunc function, gpointer data)</td></tr>
98
<tr><td class="mdescLeft"> </td><td class="mdescRight">Calls a function on each span in the intersection of <em>region</em> and <em>spans</em>. <a href="#a182373eb640d80bcf9b3a37a496e770d"></a><br/></td></tr>
99
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
100
Protected Attributes</h2></td></tr>
101
<tr><td class="memItemLeft" align="right" valign="top">GdkRegion* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#aa848e0e9212789e21ac405d96baad62b">gobject_</a></td></tr>
102
<tr><td colspan="2"><h2><a name="related"></a>
103
Related Functions</h2></td></tr>
104
<tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr>
105
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#ae7352d5986918d60055ffec688285606">operator==</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& lhs, const <a class="el" href="classGdk_1_1Region.html">Region</a>& rhs)</td></tr>
106
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#aa1bf387412637ba1e7bde5d96be04716">operator!=</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>& lhs, const <a class="el" href="classGdk_1_1Region.html">Region</a>& rhs)</td></tr>
107
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGdk_1_1Region.html">Gdk::Region</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Region.html#a984fe93ad98e4caa2765c67380425bfb">wrap</a> (GdkRegion* object, bool take_copy=false)</td></tr>
108
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a984fe93ad98e4caa2765c67380425bfb"></a><br/></td></tr>
110
<hr/><a name="_details"></a><h2>Detailed Description</h2>
111
<div class="textblock"><p>This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graphical operations (see <a class="el" href="classGdk_1_1GC.html#a6109789b4e63e62443fa9433c77525e8" title="Sets the clip mask for a graphics context from a region structure.">Gdk::GC::set_clip_region()</a>). </p>
112
</div><hr/><h2>Constructor & Destructor Documentation</h2>
113
<a class="anchor" id="acbf9cddc76ff394cca43693cf205001f"></a><!-- doxytag: member="Gdk::Region::Region" ref="acbf9cddc76ff394cca43693cf205001f" args="()" -->
114
<div class="memitem">
115
<div class="memproto">
116
<table class="memname">
118
<td class="memname">Gdk::Region::Region </td>
120
<td class="paramname"></td><td>)</td>
129
<a class="anchor" id="a9d713e1c3563e4cec3d29e5484ba0ae9"></a><!-- doxytag: member="Gdk::Region::Region" ref="a9d713e1c3563e4cec3d29e5484ba0ae9" args="(GdkRegion *castitem, bool make_a_copy=false)" -->
130
<div class="memitem">
131
<div class="memproto">
132
<table class="memname">
134
<td class="memname">Gdk::Region::Region </td>
136
<td class="paramtype">GdkRegion * </td>
137
<td class="paramname"><em>castitem</em>, </td>
140
<td class="paramkey"></td>
142
<td class="paramtype">bool </td>
143
<td class="paramname"><em>make_a_copy</em> = <code>false</code> </td>
148
<td></td><td><code> [explicit]</code></td>
156
<a class="anchor" id="a572e1d42d9f8fa0921e4020e54d89879"></a><!-- doxytag: member="Gdk::Region::Region" ref="a572e1d42d9f8fa0921e4020e54d89879" args="(const Region &src)" -->
157
<div class="memitem">
158
<div class="memproto">
159
<table class="memname">
161
<td class="memname">Gdk::Region::Region </td>
163
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
164
<td class="paramname"><em>src</em></td><td>)</td>
173
<a class="anchor" id="a090553fce729ac41f5ee86670596e060"></a><!-- doxytag: member="Gdk::Region::~Region" ref="a090553fce729ac41f5ee86670596e060" args="()" -->
174
<div class="memitem">
175
<div class="memproto">
176
<table class="memname">
178
<td class="memname">Gdk::Region::~Region </td>
180
<td class="paramname"></td><td>)</td>
189
<a class="anchor" id="afbaeee985278c783b1c2ef8024ef5798"></a><!-- doxytag: member="Gdk::Region::Region" ref="afbaeee985278c783b1c2ef8024ef5798" args="(const Glib::ArrayHandle< Gdk::Point > &points, FillRule fill_rule)" -->
190
<div class="memitem">
191
<div class="memproto">
192
<table class="memname">
194
<td class="memname">Gdk::Region::Region </td>
196
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>< <a class="el" href="classGdk_1_1Point.html">Gdk::Point</a> >& </td>
197
<td class="paramname"><em>points</em>, </td>
200
<td class="paramkey"></td>
202
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gacdee003b8806d447553fd52634a7c135">FillRule</a> </td>
203
<td class="paramname"><em>fill_rule</em> </td>
216
<a class="anchor" id="aa6cf19ceb186845c0ec58f3608b7012f"></a><!-- doxytag: member="Gdk::Region::Region" ref="aa6cf19ceb186845c0ec58f3608b7012f" args="(const Rectangle &rectangle)" -->
217
<div class="memitem">
218
<div class="memproto">
219
<table class="memname">
221
<td class="memname">Gdk::Region::Region </td>
223
<td class="paramtype">const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& </td>
224
<td class="paramname"><em>rectangle</em></td><td>)</td>
225
<td><code> [explicit]</code></td>
233
<hr/><h2>Member Function Documentation</h2>
234
<a class="anchor" id="af7753c68bccb64f394914e11b866d2ab"></a><!-- doxytag: member="Gdk::Region::empty" ref="af7753c68bccb64f394914e11b866d2ab" args="()" -->
235
<div class="memitem">
236
<div class="memproto">
237
<table class="memname">
239
<td class="memname">bool Gdk::Region::empty </td>
241
<td class="paramname"></td><td>)</td>
248
<p>Finds out if the <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a> is empty. </p>
249
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>region</em> is empty. </dd></dl>
253
<a class="anchor" id="aa3c12f5281e440334f941d542e5b8a5e"></a><!-- doxytag: member="Gdk::Region::get_clipbox" ref="aa3c12f5281e440334f941d542e5b8a5e" args="(const Rectangle &rectangle)" -->
254
<div class="memitem">
255
<div class="memproto">
256
<table class="memname">
258
<td class="memname">void Gdk::Region::get_clipbox </td>
260
<td class="paramtype">const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& </td>
261
<td class="paramname"><em>rectangle</em></td><td>)</td>
268
<p>Obtains the smallest rectangle which includes the entire <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>. </p>
269
<dl><dt><b>Parameters:</b></dt><dd>
270
<table class="params">
271
<tr><td class="paramname">rectangle</td><td>Return location for the clipbox. </td></tr>
278
<a class="anchor" id="a24f61bbfd4d7477e2e3ebc9d1a77c543"></a><!-- doxytag: member="Gdk::Region::get_rectangles" ref="a24f61bbfd4d7477e2e3ebc9d1a77c543" args="() const " -->
279
<div class="memitem">
280
<div class="memproto">
281
<table class="memname">
283
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a><<a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>> Gdk::Region::get_rectangles </td>
285
<td class="paramname"></td><td>)</td>
294
<a class="anchor" id="a88ddc5f67e8f73ff670940a5bf271d95"></a><!-- doxytag: member="Gdk::Region::gobj" ref="a88ddc5f67e8f73ff670940a5bf271d95" args="()" -->
295
<div class="memitem">
296
<div class="memproto">
297
<table class="memname">
299
<td class="memname">GdkRegion* Gdk::Region::gobj </td>
301
<td class="paramname"></td><td>)</td>
302
<td><code> [inline]</code></td>
310
<a class="anchor" id="abbab3766b295ad9f13cfe4239bd62de5"></a><!-- doxytag: member="Gdk::Region::gobj" ref="abbab3766b295ad9f13cfe4239bd62de5" args="() const " -->
311
<div class="memitem">
312
<div class="memproto">
313
<table class="memname">
315
<td class="memname">const GdkRegion* Gdk::Region::gobj </td>
317
<td class="paramname"></td><td>)</td>
318
<td> const<code> [inline]</code></td>
326
<a class="anchor" id="a1bcf45ef91d6bcd306741c65acca5a1a"></a><!-- doxytag: member="Gdk::Region::gobj_copy" ref="a1bcf45ef91d6bcd306741c65acca5a1a" args="() const " -->
327
<div class="memitem">
328
<div class="memproto">
329
<table class="memname">
331
<td class="memname">GdkRegion* Gdk::Region::gobj_copy </td>
333
<td class="paramname"></td><td>)</td>
340
<p>Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. </p>
344
<a class="anchor" id="acd2355a5079d9db24f71aa19836284b5"></a><!-- doxytag: member="Gdk::Region::intersect" ref="acd2355a5079d9db24f71aa19836284b5" args="(const Region &source2)" -->
345
<div class="memitem">
346
<div class="memproto">
347
<table class="memname">
349
<td class="memname">void Gdk::Region::intersect </td>
351
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
352
<td class="paramname"><em>source2</em></td><td>)</td>
359
<p>Sets the area of <em>source1</em> to the intersection of the areas of <em>source1</em> and <em>source2</em>. </p>
360
<p>The resulting area is the set of pixels contained in both <em>source1</em> and <em>source2</em>. </p>
361
<dl><dt><b>Parameters:</b></dt><dd>
362
<table class="params">
363
<tr><td class="paramname">source2</td><td>Another <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>. </td></tr>
370
<a class="anchor" id="aaa148e85944b0f80aac5c63dcdf0d539"></a><!-- doxytag: member="Gdk::Region::offset" ref="aaa148e85944b0f80aac5c63dcdf0d539" args="(int dx, int dy)" -->
371
<div class="memitem">
372
<div class="memproto">
373
<table class="memname">
375
<td class="memname">void Gdk::Region::offset </td>
377
<td class="paramtype">int </td>
378
<td class="paramname"><em>dx</em>, </td>
381
<td class="paramkey"></td>
383
<td class="paramtype">int </td>
384
<td class="paramname"><em>dy</em> </td>
395
<p>Moves a region the specified distance. </p>
396
<dl><dt><b>Parameters:</b></dt><dd>
397
<table class="params">
398
<tr><td class="paramname">dx</td><td>The distance to move the region horizontally. </td></tr>
399
<tr><td class="paramname">dy</td><td>The distance to move the region vertically. </td></tr>
406
<a class="anchor" id="a4c9371596bda2f44397c2c8aed19451e"></a><!-- doxytag: member="Gdk::Region::operator=" ref="a4c9371596bda2f44397c2c8aed19451e" args="(const Region &src)" -->
407
<div class="memitem">
408
<div class="memproto">
409
<table class="memname">
411
<td class="memname"><a class="el" href="classGdk_1_1Region.html">Region</a>& Gdk::Region::operator= </td>
413
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
414
<td class="paramname"><em>src</em></td><td>)</td>
423
<a class="anchor" id="aa970ecf413ac23939f529b9e1c64e4ac"></a><!-- doxytag: member="Gdk::Region::point_in" ref="aa970ecf413ac23939f529b9e1c64e4ac" args="(int x, int y)" -->
424
<div class="memitem">
425
<div class="memproto">
426
<table class="memname">
428
<td class="memname">bool Gdk::Region::point_in </td>
430
<td class="paramtype">int </td>
431
<td class="paramname"><em>x</em>, </td>
434
<td class="paramkey"></td>
436
<td class="paramtype">int </td>
437
<td class="paramname"><em>y</em> </td>
448
<p>Finds out if a point is in a region. </p>
449
<dl><dt><b>Parameters:</b></dt><dd>
450
<table class="params">
451
<tr><td class="paramname">x</td><td>The x coordinate of a point. </td></tr>
452
<tr><td class="paramname">y</td><td>The y coordinate of a point. </td></tr>
456
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the point is in <em>region</em>. </dd></dl>
460
<a class="anchor" id="a7c07ccb6b945f3aea839cf5a240e9cda"></a><!-- doxytag: member="Gdk::Region::rect_in" ref="a7c07ccb6b945f3aea839cf5a240e9cda" args="(const Rectangle &rect)" -->
461
<div class="memitem">
462
<div class="memproto">
463
<table class="memname">
465
<td class="memname"><a class="el" href="group__gdkmmEnums.html#ga08d3ef020cf9281bc1ef38eb476a522a">OverlapType</a> Gdk::Region::rect_in </td>
467
<td class="paramtype">const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& </td>
468
<td class="paramname"><em>rect</em></td><td>)</td>
475
<p>Tests whether a rectangle is within a region. </p>
476
<dl><dt><b>Parameters:</b></dt><dd>
477
<table class="params">
478
<tr><td class="paramname">rectangle</td><td>A <a class="el" href="classGdk_1_1Rectangle.html" title="Gdk::Rectangle is a structure holding the position and size of a rectangle.">Gdk::Rectangle</a>. </td></tr>
482
<dl class="return"><dt><b>Returns:</b></dt><dd>Gdk::OVERLAP_RECTANGLE_IN, Gdk::OVERLAP_RECTANGLE_OUT, or Gdk::OVERLAP_RECTANGLE_PART, depending on whether the rectangle is inside, outside, or partly inside the <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>, respectively. </dd></dl>
486
<a class="anchor" id="a704914b3d479f04287bda71e3505601c"></a><!-- doxytag: member="Gdk::Region::shrink" ref="a704914b3d479f04287bda71e3505601c" args="(int dx, int dy)" -->
487
<div class="memitem">
488
<div class="memproto">
489
<table class="memname">
491
<td class="memname">void Gdk::Region::shrink </td>
493
<td class="paramtype">int </td>
494
<td class="paramname"><em>dx</em>, </td>
497
<td class="paramkey"></td>
499
<td class="paramtype">int </td>
500
<td class="paramname"><em>dy</em> </td>
511
<p>Resizes a region by the specified amount. </p>
512
<p>Positive values shrink the region. Negative values expand it.</p>
513
<p>Deprecated: 2.22: There is no replacement for this function. </p>
514
<dl><dt><b>Parameters:</b></dt><dd>
515
<table class="params">
516
<tr><td class="paramname">dx</td><td>The number of pixels to shrink the region horizontally. </td></tr>
517
<tr><td class="paramname">dy</td><td>The number of pixels to shrink the region vertically. </td></tr>
524
<a class="anchor" id="a182373eb640d80bcf9b3a37a496e770d"></a><!-- doxytag: member="Gdk::Region::spans_intersect_foreach" ref="a182373eb640d80bcf9b3a37a496e770d" args="(GdkSpan *spans, int n_spans, bool sorted, GdkSpanFunc function, gpointer data)" -->
525
<div class="memitem">
526
<div class="memproto">
527
<table class="memname">
529
<td class="memname">void Gdk::Region::spans_intersect_foreach </td>
531
<td class="paramtype">GdkSpan * </td>
532
<td class="paramname"><em>spans</em>, </td>
535
<td class="paramkey"></td>
537
<td class="paramtype">int </td>
538
<td class="paramname"><em>n_spans</em>, </td>
541
<td class="paramkey"></td>
543
<td class="paramtype">bool </td>
544
<td class="paramname"><em>sorted</em>, </td>
547
<td class="paramkey"></td>
549
<td class="paramtype">GdkSpanFunc </td>
550
<td class="paramname"><em>function</em>, </td>
553
<td class="paramkey"></td>
555
<td class="paramtype">gpointer </td>
556
<td class="paramname"><em>data</em> </td>
567
<p>Calls a function on each span in the intersection of <em>region</em> and <em>spans</em>. </p>
568
<p>Deprecated: 2.22: There is no replacement. </p>
569
<dl><dt><b>Parameters:</b></dt><dd>
570
<table class="params">
571
<tr><td class="paramname">spans</td><td>An array of Gdk::Spans. </td></tr>
572
<tr><td class="paramname">n_spans</td><td>The length of <em>spans</em>. </td></tr>
573
<tr><td class="paramname">sorted</td><td><code>true</code> if <em>spans</em> is sorted wrt. the y coordinate. </td></tr>
574
<tr><td class="paramname">function</td><td>Function to call on each span in the intersection. </td></tr>
575
<tr><td class="paramname">data</td><td>Data to pass to <em>function</em>. </td></tr>
582
<a class="anchor" id="a3bda6bea1ed064c6ab41700d24b2933e"></a><!-- doxytag: member="Gdk::Region::subtract" ref="a3bda6bea1ed064c6ab41700d24b2933e" args="(const Region &source2)" -->
583
<div class="memitem">
584
<div class="memproto">
585
<table class="memname">
587
<td class="memname">void Gdk::Region::subtract </td>
589
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
590
<td class="paramname"><em>source2</em></td><td>)</td>
597
<p>Subtracts the area of <em>source2</em> from the area <em>source1</em>. </p>
598
<p>The resulting area is the set of pixels contained in <em>source1</em> but not in <em>source2</em>. </p>
599
<dl><dt><b>Parameters:</b></dt><dd>
600
<table class="params">
601
<tr><td class="paramname">source2</td><td>Another <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>. </td></tr>
608
<a class="anchor" id="a9c911592e7eba011d2c1874ca4ec2b37"></a><!-- doxytag: member="Gdk::Region::union_" ref="a9c911592e7eba011d2c1874ca4ec2b37" args="(const Region &source2)" -->
609
<div class="memitem">
610
<div class="memproto">
611
<table class="memname">
613
<td class="memname">void Gdk::Region::union_ </td>
615
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
616
<td class="paramname"><em>source2</em></td><td>)</td>
623
<p>Sets the area of <em>source1</em> to the union of the areas of <em>source1</em> and <em>source2</em>. </p>
624
<p>The resulting area is the set of pixels contained in either <em>source1</em> or <em>source2</em>. </p>
625
<dl><dt><b>Parameters:</b></dt><dd>
626
<table class="params">
627
<tr><td class="paramname">source2</td><td>A <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>. </td></tr>
634
<a class="anchor" id="ac2099c7feb3f0db0a13599ce82a64ccb"></a><!-- doxytag: member="Gdk::Region::union_with_rect" ref="ac2099c7feb3f0db0a13599ce82a64ccb" args="(const Rectangle &rect)" -->
635
<div class="memitem">
636
<div class="memproto">
637
<table class="memname">
639
<td class="memname">void Gdk::Region::union_with_rect </td>
641
<td class="paramtype">const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>& </td>
642
<td class="paramname"><em>rect</em></td><td>)</td>
649
<p>Sets the area of <em>region</em> to the union of the areas of <em>region</em> and <em>rect</em>. </p>
650
<p>The resulting area is the set of pixels contained in either <em>region</em> or <em>rect</em>. </p>
651
<dl><dt><b>Parameters:</b></dt><dd>
652
<table class="params">
653
<tr><td class="paramname">rect</td><td>A <a class="el" href="classGdk_1_1Rectangle.html" title="Gdk::Rectangle is a structure holding the position and size of a rectangle.">Gdk::Rectangle</a>. </td></tr>
660
<a class="anchor" id="a13df0bfd25da620cae29dc8421b144ad"></a><!-- doxytag: member="Gdk::Region::xor_" ref="a13df0bfd25da620cae29dc8421b144ad" args="(const Region &source2)" -->
661
<div class="memitem">
662
<div class="memproto">
663
<table class="memname">
665
<td class="memname">void Gdk::Region::xor_ </td>
667
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
668
<td class="paramname"><em>source2</em></td><td>)</td>
675
<p>Sets the area of <em>source1</em> to the exclusive-OR of the areas of <em>source1</em> and <em>source2</em>. </p>
676
<p>The resulting area is the set of pixels contained in one or the other of the two sources but not in both. </p>
677
<dl><dt><b>Parameters:</b></dt><dd>
678
<table class="params">
679
<tr><td class="paramname">source2</td><td>Another <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graph...">Gdk::Region</a>. </td></tr>
686
<hr/><h2>Friends And Related Function Documentation</h2>
687
<a class="anchor" id="aa1bf387412637ba1e7bde5d96be04716"></a><!-- doxytag: member="Gdk::Region::operator!=" ref="aa1bf387412637ba1e7bde5d96be04716" args="(const Region &lhs, const Region &rhs)" -->
688
<div class="memitem">
689
<div class="memproto">
690
<table class="memname">
692
<td class="memname">bool <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01568.html#gac4373547895ec9df9035719b38a2621a">operator!</a>= </td>
694
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
695
<td class="paramname"><em>lhs</em>, </td>
698
<td class="paramkey"></td>
700
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
701
<td class="paramname"><em>rhs</em> </td>
706
<td></td><td><code> [related]</code></td>
711
<dl><dt><b>Parameters:</b></dt><dd>
712
<table class="params">
713
<tr><td class="paramname">lhs</td><td>The left-hand side </td></tr>
714
<tr><td class="paramname">rhs</td><td>The right-hand side </td></tr>
718
<dl class="return"><dt><b>Returns:</b></dt><dd>The result </dd></dl>
722
<a class="anchor" id="ae7352d5986918d60055ffec688285606"></a><!-- doxytag: member="Gdk::Region::operator==" ref="ae7352d5986918d60055ffec688285606" args="(const Region &lhs, const Region &rhs)" -->
723
<div class="memitem">
724
<div class="memproto">
725
<table class="memname">
727
<td class="memname">bool operator== </td>
729
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
730
<td class="paramname"><em>lhs</em>, </td>
733
<td class="paramkey"></td>
735
<td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>& </td>
736
<td class="paramname"><em>rhs</em> </td>
741
<td></td><td><code> [related]</code></td>
746
<dl><dt><b>Parameters:</b></dt><dd>
747
<table class="params">
748
<tr><td class="paramname">lhs</td><td>The left-hand side </td></tr>
749
<tr><td class="paramname">rhs</td><td>The right-hand side </td></tr>
753
<dl class="return"><dt><b>Returns:</b></dt><dd>The result </dd></dl>
757
<a class="anchor" id="a984fe93ad98e4caa2765c67380425bfb"></a><!-- doxytag: member="Gdk::Region::wrap" ref="a984fe93ad98e4caa2765c67380425bfb" args="(GdkRegion *object, bool take_copy=false)" -->
758
<div class="memitem">
759
<div class="memproto">
760
<table class="memname">
762
<td class="memname"><a class="el" href="classGdk_1_1Region.html">Gdk::Region</a> wrap </td>
764
<td class="paramtype">GdkRegion * </td>
765
<td class="paramname"><em>object</em>, </td>
768
<td class="paramkey"></td>
770
<td class="paramtype">bool </td>
771
<td class="paramname"><em>take_copy</em> = <code>false</code> </td>
776
<td></td><td><code> [related]</code></td>
782
<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
783
<dl><dt><b>Parameters:</b></dt><dd>
784
<table class="params">
785
<tr><td class="paramname">object</td><td>The C instance. </td></tr>
786
<tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
790
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
794
<hr/><h2>Member Data Documentation</h2>
795
<a class="anchor" id="aa848e0e9212789e21ac405d96baad62b"></a><!-- doxytag: member="Gdk::Region::gobject_" ref="aa848e0e9212789e21ac405d96baad62b" args="" -->
796
<div class="memitem">
797
<div class="memproto">
798
<table class="memname">
800
<td class="memname">GdkRegion* <a class="el" href="classGdk_1_1Region.html#aa848e0e9212789e21ac405d96baad62b">Gdk::Region::gobject_</a><code> [protected]</code></td>
808
<hr/>The documentation for this class was generated from the following file:<ul>
809
<li>gdkmm/region.h</li>
812
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 8 2011 13:31:44 for gtkmm by 
813
<a href="http://www.doxygen.org/index.html">
814
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>