File: classGtk_1_1IconSize.html

package info (click to toggle)
gtkmm2.4 1%3A2.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,860 kB
  • ctags: 20,553
  • sloc: xml: 79,575; sh: 10,120; cpp: 8,347; makefile: 290
file content (372 lines) | stat: -rw-r--r-- 24,533 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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::IconSize Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1IconSize.html">IconSize</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::IconSize Class Reference</h1><!-- doxytag: class="Gtk::IconSize" -->
<p>Represents registered icon sizes. <a href="#_details">More...</a></p>

<p><a href="classGtk_1_1IconSize-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a9980786a8c9b6c74098e7ab20f6c8e51">IconSize</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a8c20145e771b016ea6746eeac47c0505">IconSize</a> (<a class="el" href="group__gtkmmEnums.html#gaeb555deb523560fe697977c2f8adbb76">BuiltinIconSize</a> <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01154.html#ga445a43f417432dd1b9aed90ef239c700">size</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a0c689319928c65b522029abee2d90e15">IconSize</a> (int <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01154.html#ga445a43f417432dd1b9aed90ef239c700">size</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a50a53dddcda41ee2ebf07b64a82dd45d">operator int</a> () const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a93ac90db97f3e164d8698c249b546556">lookup</a> (<a class="el" href="classGtk_1_1IconSize.html">IconSize</a> <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01154.html#ga445a43f417432dd1b9aed90ef239c700">size</a>, int&amp; width, int&amp; height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the pixel size of a semantic icon size, possibly modified by user preferences for the default <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>. <a href="#a93ac90db97f3e164d8698c249b546556"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#adefa53779fe7acd7bfd42f9e07fe98ad">lookup</a> (<a class="el" href="classGtk_1_1IconSize.html">IconSize</a> <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01154.html#ga445a43f417432dd1b9aed90ef239c700">size</a>, int&amp; width, int&amp; height, 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>&lt; <a class="el" href="classGtk_1_1Settings.html">Gtk::Settings</a> &gt;&amp; settings)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>. <a href="#adefa53779fe7acd7bfd42f9e07fe98ad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#aedea29b7b2de8b8d7e54fadd0c8f329a">register_new</a> (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_1ustring.html">Glib::ustring</a>&amp; name, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a new icon size, along the same lines as ICON_SIZE_MENU, etc. <a href="#aedea29b7b2de8b8d7e54fadd0c8f329a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a825d2c90489fd0f94db22113a2a4f514">register_alias</a> (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_1ustring.html">Glib::ustring</a>&amp; alias, <a class="el" href="classGtk_1_1IconSize.html">IconSize</a> target)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers <em>alias</em> as another name for <em>target</em> so calling <a class="el" href="classGtk_1_1IconSize.html#a5218ea776642be58193f111ce236b4e1" title="Looks up the icon size associated with name.">from_name()</a> with <em>alias</em> as argument will return <em>target</em>. <a href="#a825d2c90489fd0f94db22113a2a4f514"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#a5218ea776642be58193f111ce236b4e1">from_name</a> (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_1ustring.html">Glib::ustring</a>&amp; name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Looks up the icon size associated with <em>name</em>. <a href="#a5218ea776642be58193f111ce236b4e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <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_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSize.html#aac6b2fbfd2d1ad3321d8292d64fe1b1d">get_name</a> (<a class="el" href="classGtk_1_1IconSize.html">IconSize</a> <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01154.html#ga445a43f417432dd1b9aed90ef239c700">size</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the canonical name of the given icon size. <a href="#aac6b2fbfd2d1ad3321d8292d64fe1b1d"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Represents registered icon sizes. </p>
<p>You can also use a <a class="el" href="group__gtkmmEnums.html#gaeb555deb523560fe697977c2f8adbb76">Gtk::BuiltinIconSize</a> instead of an <a class="el" href="classGtk_1_1IconSize.html" title="Represents registered icon sizes.">IconSize</a>. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9980786a8c9b6c74098e7ab20f6c8e51"></a><!-- doxytag: member="Gtk::IconSize::IconSize" ref="a9980786a8c9b6c74098e7ab20f6c8e51" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSize::IconSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8c20145e771b016ea6746eeac47c0505"></a><!-- doxytag: member="Gtk::IconSize::IconSize" ref="a8c20145e771b016ea6746eeac47c0505" args="(BuiltinIconSize size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSize::IconSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#gaeb555deb523560fe697977c2f8adbb76">BuiltinIconSize</a>&#160;</td>
          <td class="paramname"> <em>size</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0c689319928c65b522029abee2d90e15"></a><!-- doxytag: member="Gtk::IconSize::IconSize" ref="a0c689319928c65b522029abee2d90e15" args="(int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSize::IconSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>size</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline, explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5218ea776642be58193f111ce236b4e1"></a><!-- doxytag: member="Gtk::IconSize::from_name" ref="a5218ea776642be58193f111ce236b4e1" args="(const Glib::ustring &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGtk_1_1IconSize.html">IconSize</a> Gtk::IconSize::from_name </td>
          <td>(</td>
          <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_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Looks up the icon size associated with <em>name</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&#160;</td><td>the name to look up. result The icon size with the given name. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aac6b2fbfd2d1ad3321d8292d64fe1b1d"></a><!-- doxytag: member="Gtk::IconSize::get_name" ref="aac6b2fbfd2d1ad3321d8292d64fe1b1d" args="(IconSize size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <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_1ustring.html">Glib::ustring</a> Gtk::IconSize::get_name </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td>
          <td class="paramname"> <em>size</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the canonical name of the given icon size. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>size</em>&#160;</td><td>size AnIconSize. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The name of the given icon size. </dd></dl>

</div>
</div>
<a class="anchor" id="adefa53779fe7acd7bfd42f9e07fe98ad"></a><!-- doxytag: member="Gtk::IconSize::lookup" ref="adefa53779fe7acd7bfd42f9e07fe98ad" args="(IconSize size, int &amp;width, int &amp;height, const Glib::RefPtr&lt; Gtk::Settings &gt; &amp;settings)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool Gtk::IconSize::lookup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td>
          <td class="paramname"> <em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <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>&lt; <a class="el" href="classGtk_1_1Settings.html">Gtk::Settings</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>settings</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>. </p>
<p>Normally size would be <a class="el" href="group__gtkmmEnums.html#ggaeb555deb523560fe697977c2f8adbb76a064c0c6ccd4f08be6868df8be08e20c3">Gtk::ICON_SIZE_MENU</a>, <a class="el" href="group__gtkmmEnums.html#ggaeb555deb523560fe697977c2f8adbb76a8113df5ffa8864974c723c7f80a6c073">Gtk::ICON_SIZE_BUTTON</a>, etc. This function isn't normally needed because <a class="el" href="classGtk_1_1Widget.html#a91efd1b5aed7c184506ddd5721710584" title="A convenience function that uses the theme engine and RC file settings for the widget...">Gtk::Widget::render_icon()</a> is the usual way to get an icon for rendering - then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by <a class="el" href="classGtk_1_1IconSize.html#a93ac90db97f3e164d8698c249b546556" title="Obtains the pixel size of a semantic icon size, possibly modified by user preferences...">IconSize::lookup()</a>, because themes are free to render the pixbuf however they like, including changing the usual size.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>size</em>&#160;</td><td>An icon size. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&#160;</td><td>Location to store icon width. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&#160;</td><td>Location to store icon height. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>settings</em>&#160;</td><td>A <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a> object, used to determine which set of user preferences to used. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if size was a valid size.</dd></dl>
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000057">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a93ac90db97f3e164d8698c249b546556"></a><!-- doxytag: member="Gtk::IconSize::lookup" ref="a93ac90db97f3e164d8698c249b546556" args="(IconSize size, int &amp;width, int &amp;height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool Gtk::IconSize::lookup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td>
          <td class="paramname"> <em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"> <em>height</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Obtains the pixel size of a semantic icon size, possibly modified by user preferences for the default <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>. </p>
<p>Normally size would be <a class="el" href="group__gtkmmEnums.html#ggaeb555deb523560fe697977c2f8adbb76a064c0c6ccd4f08be6868df8be08e20c3">Gtk::ICON_SIZE_MENU</a>, <a class="el" href="group__gtkmmEnums.html#ggaeb555deb523560fe697977c2f8adbb76a8113df5ffa8864974c723c7f80a6c073">Gtk::ICON_SIZE_BUTTON</a>, etc. This function isn't normally needed because <a class="el" href="classGtk_1_1Widget.html#a91efd1b5aed7c184506ddd5721710584" title="A convenience function that uses the theme engine and RC file settings for the widget...">Gtk::Widget::render_icon()</a> is the usual way to get an icon for rendering - then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by <a class="el" href="classGtk_1_1IconSize.html#a93ac90db97f3e164d8698c249b546556" title="Obtains the pixel size of a semantic icon size, possibly modified by user preferences...">IconSize::lookup()</a>, because themes are free to render the pixbuf however they like, including changing the usual size.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>size</em>&#160;</td><td>An icon size. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&#160;</td><td>Location to store icon width. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&#160;</td><td>Location to store icon height. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if size was a valid size. </dd></dl>

</div>
</div>
<a class="anchor" id="a50a53dddcda41ee2ebf07b64a82dd45d"></a><!-- doxytag: member="Gtk::IconSize::operator int" ref="a50a53dddcda41ee2ebf07b64a82dd45d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSize::operator int </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a825d2c90489fd0f94db22113a2a4f514"></a><!-- doxytag: member="Gtk::IconSize::register_alias" ref="a825d2c90489fd0f94db22113a2a4f514" args="(const Glib::ustring &amp;alias, IconSize target)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::IconSize::register_alias </td>
          <td>(</td>
          <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_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>alias</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td>
          <td class="paramname"> <em>target</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Registers <em>alias</em> as another name for <em>target</em> so calling <a class="el" href="classGtk_1_1IconSize.html#a5218ea776642be58193f111ce236b4e1" title="Looks up the icon size associated with name.">from_name()</a> with <em>alias</em> as argument will return <em>target</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>alias</em>&#160;</td><td>An alias for target. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>target</em>&#160;</td><td>An existing icon size. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aedea29b7b2de8b8d7e54fadd0c8f329a"></a><!-- doxytag: member="Gtk::IconSize::register_new" ref="aedea29b7b2de8b8d7e54fadd0c8f329a" args="(const Glib::ustring &amp;name, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGtk_1_1IconSize.html">IconSize</a> Gtk::IconSize::register_new </td>
          <td>(</td>
          <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_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>height</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Registers a new icon size, along the same lines as ICON_SIZE_MENU, etc. </p>
<p>Returns the integer value for the size.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&#160;</td><td>Name of the icon size. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&#160;</td><td>The icon width. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&#160;</td><td>The icon height. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Integer value representing the size. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/enums.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:51 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>