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::Cairo Namespace 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">3.0.1</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 class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
29
<li><a href="annotated.html"><span>Classes</span></a></li>
32
<div id="navrow2" class="tabs2">
34
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
35
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
38
<div id="nav-path" class="navpath">
40
<li class="navelem"><a class="el" href="namespaceGdk.html">Gdk</a> </li>
41
<li class="navelem"><a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> </li>
47
<a href="#func-members">Functions</a> </div>
48
<div class="headertitle">
49
<h1>Gdk::Cairo Namespace Reference</h1> </div>
51
<div class="contents">
52
<table class="memberdecls">
53
<tr><td colspan="2"><h2><a name="func-members"></a>
54
Functions</h2></td></tr>
55
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGdk_1_1Cairo.html#a756dfe9de49bc8cc860ccae52713e290">set_source_color</a> (const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> >& context, const <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>& color)</td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the specified <a class="el" href="classGdk_1_1Color.html" title="Gdk::Color is used to describe an allocated or unallocated color.">Gdk::Color</a> as the source color of the <a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> context. <a href="#a756dfe9de49bc8cc860ccae52713e290"></a><br/></td></tr>
57
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGdk_1_1Cairo.html#a0f592f448c610fa191d3de1fbf1899e3">set_source_rgba</a> (const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> >& context, const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& color)</td></tr>
58
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the specified <a class="el" href="classGdk_1_1RGBA.html" title="An RGBA Color.">Gdk::RGBA</a> as the source color of the <a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> context. <a href="#a0f592f448c610fa191d3de1fbf1899e3"></a><br/></td></tr>
59
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGdk_1_1Cairo.html#a91e890136c8188a3b3044f653b55f5d1">set_source_pixbuf</a> (const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> >& context, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> >& pixbuf, double pixbuf_x=0, double pixbuf_y=0)</td></tr>
60
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the given pixbuf as the source pattern for the <a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> context. <a href="#a91e890136c8188a3b3044f653b55f5d1"></a><br/></td></tr>
61
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGdk_1_1Cairo.html#a6ea2e5e747df1326ca23215e39616a78">add_rectangle_to_path</a> (const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> >& context, const <a class="el" href="classGdk_1_1Rectangle.html">Gdk::Rectangle</a>& rectangle)</td></tr>
62
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds the given rectangle to the current path of the context. <a href="#a6ea2e5e747df1326ca23215e39616a78"></a><br/></td></tr>
63
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGdk_1_1Cairo.html#a217bdd97cd08f473eb56c191f091419e">add_region_to_path</a> (const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> >& context, const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Region.html">Cairo::Region</a> >& region)</td></tr>
64
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds the given region to the current path of the context. <a href="#a217bdd97cd08f473eb56c191f091419e"></a><br/></td></tr>
66
<hr/><h2>Function Documentation</h2>
67
<a class="anchor" id="a6ea2e5e747df1326ca23215e39616a78"></a><!-- doxytag: member="Gdk::Cairo::add_rectangle_to_path" ref="a6ea2e5e747df1326ca23215e39616a78" args="(const ::Cairo::RefPtr< ::Cairo::Context > &context, const Gdk::Rectangle &rectangle)" -->
69
<div class="memproto">
70
<table class="memname">
72
<td class="memname">void Gdk::Cairo::add_rectangle_to_path </td>
74
<td class="paramtype">const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> > & </td>
75
<td class="paramname"><em>context</em>, </td>
78
<td class="paramkey"></td>
80
<td class="paramtype">const <a class="el" href="classGdk_1_1Rectangle.html">Gdk::Rectangle</a>& </td>
81
<td class="paramname"><em>rectangle</em> </td>
92
<p>Adds the given rectangle to the current path of the context. </p>
93
<dl><dt><b>Parameters:</b></dt><dd>
94
<table class="params">
95
<tr><td class="paramname">context</td><td>A cairo context. </td></tr>
96
<tr><td class="paramname">rectangle</td><td>A rectangle to add to the path of the context.</td></tr>
100
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000018">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
104
<a class="anchor" id="a217bdd97cd08f473eb56c191f091419e"></a><!-- doxytag: member="Gdk::Cairo::add_region_to_path" ref="a217bdd97cd08f473eb56c191f091419e" args="(const ::Cairo::RefPtr< ::Cairo::Context > &context, const ::Cairo::RefPtr< ::Cairo::Region > &region)" -->
105
<div class="memitem">
106
<div class="memproto">
107
<table class="memname">
109
<td class="memname">void Gdk::Cairo::add_region_to_path </td>
111
<td class="paramtype">const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> > & </td>
112
<td class="paramname"><em>context</em>, </td>
115
<td class="paramkey"></td>
117
<td class="paramtype">const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Region.html">Cairo::Region</a> > & </td>
118
<td class="paramname"><em>region</em> </td>
129
<p>Adds the given region to the current path of the context. </p>
130
<dl><dt><b>Parameters:</b></dt><dd>
131
<table class="params">
132
<tr><td class="paramname">context</td><td>A cairo context. </td></tr>
133
<tr><td class="paramname">region</td><td>A region to add to the path of the context.</td></tr>
137
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000019">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
141
<a class="anchor" id="a756dfe9de49bc8cc860ccae52713e290"></a><!-- doxytag: member="Gdk::Cairo::set_source_color" ref="a756dfe9de49bc8cc860ccae52713e290" args="(const ::Cairo::RefPtr< ::Cairo::Context > &context, const Gdk::Color &color)" -->
142
<div class="memitem">
143
<div class="memproto">
144
<table class="memname">
146
<td class="memname">void Gdk::Cairo::set_source_color </td>
148
<td class="paramtype">const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> > & </td>
149
<td class="paramname"><em>context</em>, </td>
152
<td class="paramkey"></td>
154
<td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>& </td>
155
<td class="paramname"><em>color</em> </td>
166
<p>Sets the specified <a class="el" href="classGdk_1_1Color.html" title="Gdk::Color is used to describe an allocated or unallocated color.">Gdk::Color</a> as the source color of the <a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> context. </p>
167
<dl><dt><b>Parameters:</b></dt><dd>
168
<table class="params">
169
<tr><td class="paramname">@context</td><td>The cairo context. </td></tr>
170
<tr><td class="paramname">color</td><td>The color to use as the source color.</td></tr>
174
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000016">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
178
<a class="anchor" id="a91e890136c8188a3b3044f653b55f5d1"></a><!-- doxytag: member="Gdk::Cairo::set_source_pixbuf" ref="a91e890136c8188a3b3044f653b55f5d1" args="(const ::Cairo::RefPtr< ::Cairo::Context > &context, const Glib::RefPtr< Gdk::Pixbuf > &pixbuf, double pixbuf_x=0, double pixbuf_y=0)" -->
179
<div class="memitem">
180
<div class="memproto">
181
<table class="memname">
183
<td class="memname">void Gdk::Cairo::set_source_pixbuf </td>
185
<td class="paramtype">const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> > & </td>
186
<td class="paramname"><em>context</em>, </td>
189
<td class="paramkey"></td>
191
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> >& </td>
192
<td class="paramname"><em>pixbuf</em>, </td>
195
<td class="paramkey"></td>
197
<td class="paramtype">double </td>
198
<td class="paramname"><em>pixbuf_x</em> = <code>0</code>, </td>
201
<td class="paramkey"></td>
203
<td class="paramtype">double </td>
204
<td class="paramname"><em>pixbuf_y</em> = <code>0</code> </td>
215
<p>Sets the given pixbuf as the source pattern for the <a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> context. </p>
216
<p>The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned so that the origin of pixbuf is pixbuf_x, pixbuf_y. </p>
217
<dl><dt><b>Parameters:</b></dt><dd>
218
<table class="params">
219
<tr><td class="paramname">@context</td><td>The cairo context. </td></tr>
220
<tr><td class="paramname">pixbuf</td><td>A <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> </td></tr>
221
<tr><td class="paramname">pixbuf_x</td><td>X coordinate of location to place upper left corner of pixbuf. </td></tr>
222
<tr><td class="paramname">pixbuf_y</td><td>Y coordinate of location to place upper left corner of pixbuf.</td></tr>
226
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000017">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
230
<a class="anchor" id="a0f592f448c610fa191d3de1fbf1899e3"></a><!-- doxytag: member="Gdk::Cairo::set_source_rgba" ref="a0f592f448c610fa191d3de1fbf1899e3" args="(const ::Cairo::RefPtr< ::Cairo::Context > &context, const Gdk::RGBA &color)" -->
231
<div class="memitem">
232
<div class="memproto">
233
<table class="memname">
235
<td class="memname">void Gdk::Cairo::set_source_rgba </td>
237
<td class="paramtype">const ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1RefPtr.html">Cairo::RefPtr</a>< ::<a class="elRef" doxygen="cairomm-1.0.tag:http://www.cairographics.org/documentation/cairomm/reference/" href="http://www.cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html">Cairo::Context</a> > & </td>
238
<td class="paramname"><em>context</em>, </td>
241
<td class="paramkey"></td>
243
<td class="paramtype">const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& </td>
244
<td class="paramname"><em>color</em> </td>
255
<p>Sets the specified <a class="el" href="classGdk_1_1RGBA.html" title="An RGBA Color.">Gdk::RGBA</a> as the source color of the <a class="el" href="namespaceGdk_1_1Cairo.html">Cairo</a> context. </p>
256
<dl><dt><b>Parameters:</b></dt><dd>
257
<table class="params">
258
<tr><td class="paramname">@context</td><td>The cairo context. </td></tr>
259
<tr><td class="paramname">color</td><td>The color to use as the source color.</td></tr>
263
<dl class="since_3_0"><dt><b><a class="el" href="since_3_0.html#_since_3_0000002">Since gtkmm 3.0:</a></b></dt><dd></dd></dl>
268
<hr class="footer"/><address class="footer"><small>Generated on Mon May 9 2011 10:20:07 for gtkmm by 
269
<a href="http://www.doxygen.org/index.html">
270
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>