File: class_ipe_layer.html

package info (click to toggle)
ipe 6.0pre30-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,100 kB
  • ctags: 5,419
  • sloc: cpp: 30,430; ansic: 1,045; xml: 845; makefile: 78; sh: 5
file content (313 lines) | stat: -rw-r--r-- 11,910 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Ipelib: IpeLayer Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<h1>IpeLayer Class Reference<br>
<small>
[<a class="el" href="group__doc.html">Ipe Document</a>]</small>
</h1><!-- doxytag: class="IpeLayer" -->A layer of an <a class="el" href="class_ipe_page.html">IpePage</a>.  
<a href="#_details">More...</a>
<p>
<a href="class_ipe_layer-members.html">List of all members.</a><h2>Public Types</h2>
<ul>
<li>enum { <b>EDim</b> =  0x01, 
<b>ELocked</b> =  0x02, 
<b>ENoSnapping</b> =  0x04
 }
</ul>
<h2>Public Member Functions</h2>
<ul>
<li><a class="el" href="class_ipe_layer.html#f5a25b6fab6ecf9c16230d9ff84c3bf1">IpeLayer</a> (<a class="el" href="class_ipe_string.html">IpeString</a> name)
<li><a class="el" href="class_ipe_layer.html#3998c1c89c9fa72997b0eeecd61cefa2">IpeLayer</a> (const <a class="el" href="class_ipe_xml_attributes.html">IpeXmlAttributes</a> &amp;attr)
<li>void <a class="el" href="class_ipe_layer.html#46655eb24164ab5e5f47c28bf3b236a9">SaveAsXml</a> (<a class="el" href="class_ipe_stream.html">IpeStream</a> &amp;stream) const
<li><a class="el" href="class_ipe_string.html">IpeString</a> <a class="el" href="class_ipe_layer.html#5ec425cafd968e828709dd6562211a09">Name</a> () const
<li>void <a class="el" href="class_ipe_layer.html#f8a03f3f6bfe115c5a6a0597142fbc2f">SetName</a> (const <a class="el" href="class_ipe_string.html">IpeString</a> &amp;name)
<li>bool <a class="el" href="class_ipe_layer.html#4366b9d45f27898e8f154ce336ed82ef">IsDimmed</a> () const
<li>bool <a class="el" href="class_ipe_layer.html#b7104917671a64507f9b8d496a4afdd4">IsLocked</a> () const
<li>bool <a class="el" href="class_ipe_layer.html#a4dbcecbe178291e0e1ebba3e3fcc156">IsSnapping</a> () const
<li>void <a class="el" href="class_ipe_layer.html#2fb7ea1abd20a187b24c4c654d9df1a8">SetDimmed</a> (bool flag)
<li>void <a class="el" href="class_ipe_layer.html#dc009f18fea7fc4422f9a78b67ba9dcc">SetLocked</a> (bool flag)
<li>void <a class="el" href="class_ipe_layer.html#ef35d7caf66176d4402a7525be31f1c3">SetSnapping</a> (bool flag)
</ul>
<h2>Public Attributes</h2>
<ul>
<li><a class="anchor" name="3c964625ff7711ba42580bb9f6e50c1a"></a><!-- doxytag: member="IpeLayer::iName" ref="3c964625ff7711ba42580bb9f6e50c1a" args="" -->
<a class="el" href="class_ipe_string.html">IpeString</a> <b>iName</b>
<li><a class="anchor" name="4e889a9e55690a5cc9d3e1a604c07d04"></a><!-- doxytag: member="IpeLayer::iFlags" ref="4e889a9e55690a5cc9d3e1a604c07d04" args="" -->
int <b>iFlags</b>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A layer of an <a class="el" href="class_ipe_page.html">IpePage</a>. 
<p>
Each object on an <a class="el" href="class_ipe_page.html">IpePage</a> belongs to one of the layers of the page. Layers are orthogonal to the back-to-front ordering of objects, so a "layer" is just another attribute of the object.<p>
Layers have several attributes:<p>
<ul>
<li>They may be editable or locked. Objects in a locked layer cannot be selected, and a locked layer cannot be made active in the Ipe UI. This more or less means that the contents of such a layer cannot be modified---but that's a consequence of the UI, Ipelib contains no special handling of locked layers.</li></ul>
<p>
<ul>
<li>A layer may be dimmed (on the screen - no dimming appears on PDF or Postscript output).</li></ul>
<p>
<ul>
<li>A layer may have snapping on or off---objects will behave magnetically only if their layer has snapping on.</li></ul>
<p>
The PDF output generated for an <a class="el" href="class_ipe_page.html">IpePage</a> depends on its <em>views</em>. Each view may list a number of layers to be displayed at that stage. Multiple <em>views</em> may show different subsets of layers. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="f5a25b6fab6ecf9c16230d9ff84c3bf1"></a><!-- doxytag: member="IpeLayer::IpeLayer" ref="f5a25b6fab6ecf9c16230d9ff84c3bf1" args="(IpeString name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IpeLayer::IpeLayer           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_ipe_string.html">IpeString</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct with name. Default attributes. 
<p>

</div>
</div><p>
<a class="anchor" name="3998c1c89c9fa72997b0eeecd61cefa2"></a><!-- doxytag: member="IpeLayer::IpeLayer" ref="3998c1c89c9fa72997b0eeecd61cefa2" args="(const IpeXmlAttributes &amp;attr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IpeLayer::IpeLayer           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ipe_xml_attributes.html">IpeXmlAttributes</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>attr</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct from a single XML tag. 
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="46655eb24164ab5e5f47c28bf3b236a9"></a><!-- doxytag: member="IpeLayer::SaveAsXml" ref="46655eb24164ab5e5f47c28bf3b236a9" args="(IpeStream &amp;stream) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeLayer::SaveAsXml           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_ipe_stream.html">IpeStream</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>stream</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write a single XML tag describing this layer. 
<p>

</div>
</div><p>
<a class="anchor" name="5ec425cafd968e828709dd6562211a09"></a><!-- doxytag: member="IpeLayer::Name" ref="5ec425cafd968e828709dd6562211a09" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_ipe_string.html">IpeString</a> IpeLayer::Name           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return name. 
<p>

</div>
</div><p>
<a class="anchor" name="f8a03f3f6bfe115c5a6a0597142fbc2f"></a><!-- doxytag: member="IpeLayer::SetName" ref="f8a03f3f6bfe115c5a6a0597142fbc2f" args="(const IpeString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeLayer::SetName           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ipe_string.html">IpeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set name. 
<p>

</div>
</div><p>
<a class="anchor" name="4366b9d45f27898e8f154ce336ed82ef"></a><!-- doxytag: member="IpeLayer::IsDimmed" ref="4366b9d45f27898e8f154ce336ed82ef" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool IpeLayer::IsDimmed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Is dimmed? 
<p>

</div>
</div><p>
<a class="anchor" name="b7104917671a64507f9b8d496a4afdd4"></a><!-- doxytag: member="IpeLayer::IsLocked" ref="b7104917671a64507f9b8d496a4afdd4" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool IpeLayer::IsLocked           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Is locked? 
<p>

</div>
</div><p>
<a class="anchor" name="a4dbcecbe178291e0e1ebba3e3fcc156"></a><!-- doxytag: member="IpeLayer::IsSnapping" ref="a4dbcecbe178291e0e1ebba3e3fcc156" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool IpeLayer::IsSnapping           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Is snapping enabled? 
<p>

</div>
</div><p>
<a class="anchor" name="2fb7ea1abd20a187b24c4c654d9df1a8"></a><!-- doxytag: member="IpeLayer::SetDimmed" ref="2fb7ea1abd20a187b24c4c654d9df1a8" args="(bool flag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeLayer::SetDimmed           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>flag</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set dimming. 
<p>

</div>
</div><p>
<a class="anchor" name="dc009f18fea7fc4422f9a78b67ba9dcc"></a><!-- doxytag: member="IpeLayer::SetLocked" ref="dc009f18fea7fc4422f9a78b67ba9dcc" args="(bool flag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeLayer::SetLocked           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>flag</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set locking. 
<p>

</div>
</div><p>
<a class="anchor" name="ef35d7caf66176d4402a7525be31f1c3"></a><!-- doxytag: member="IpeLayer::SetSnapping" ref="ef35d7caf66176d4402a7525be31f1c3" args="(bool flag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeLayer::SetSnapping           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>flag</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set snapping. 
<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li>ipepage.h<li>ipepage.cpp</ul>
<hr>
</body></html>