Debian Codegraph @

doc/reference/libbamf/html/BamfTab.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>BamfTab: libbamf Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
7 <link rel="home" href="index.html" title="libbamf Reference Manual">
8 <link rel="up" href="ch01.html" title="Classes">
9 <link rel="prev" href="BamfControl.html" title="BamfControl">
10 <link rel="next" href="BamfView.html" title="BamfView">
11 <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18 <a href="#BamfTab.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19 <a href="#BamfTab.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
20 <a href="#BamfTab.properties" class="shortcut">Properties</a></span>
21 </td>
22 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24 <td><a accesskey="p" href="BamfControl.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25 <td><a accesskey="n" href="BamfView.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26 </tr></table>
27 <div class="refentry">
28 <a name="BamfTab"></a><div class="titlepage"></div>
29 <div class="refnamediv"><table width="100%"><tr>
30 <td valign="top">
31 <h2><span class="refentrytitle"><a name="BamfTab.top_of_page"></a>BamfTab</span></h2>
32 <p>BamfTab</p>
33 </td>
34 <td class="gallery_image" valign="top" align="right"></td>
35 </tr></table></div>
36 <div class="refsect1">
37 <a name="BamfTab.functions"></a><h2>Functions</h2>
38 <div class="informaltable"><table class="informaltable" width="100%" border="0">
39 <colgroup>
40 <col width="150px" class="functions_proto_type">
41 <col class="functions_proto_name">
42 </colgroup>
43 <tbody>
44 <tr>
45 <td class="function_type">
46 <span class="returnvalue">void</span>
47 </td>
48 <td class="function_name">
49 <span class="c_punctuation">(</span><a class="link" href="BamfTab.html#BamfTabPreviewReadyCallback" title="BamfTabPreviewReadyCallback ()">*BamfTabPreviewReadyCallback</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
50 </td>
51 </tr>
52 <tr>
53 <td class="function_type">
54 <span class="returnvalue">gboolean</span>
55 </td>
56 <td class="function_name">
57 <a class="link" href="BamfTab.html#bamf-tab-raise" title="bamf_tab_raise ()">bamf_tab_raise</a> <span class="c_punctuation">()</span>
58 </td>
59 </tr>
60 <tr>
61 <td class="function_type">
62 <span class="returnvalue">gboolean</span>
63 </td>
64 <td class="function_name">
65 <a class="link" href="BamfTab.html#bamf-tab-close" title="bamf_tab_close ()">bamf_tab_close</a> <span class="c_punctuation">()</span>
66 </td>
67 </tr>
68 <tr>
69 <td class="function_type">
70 <span class="returnvalue">void</span>
71 </td>
72 <td class="function_name">
73 <a class="link" href="BamfTab.html#bamf-tab-request-preview" title="bamf_tab_request_preview ()">bamf_tab_request_preview</a> <span class="c_punctuation">()</span>
74 </td>
75 </tr>
76 <tr>
77 <td class="function_type">const <span class="returnvalue">gchar</span> *
78 </td>
79 <td class="function_name">
80 <a class="link" href="BamfTab.html#bamf-tab-get-desktop-name" title="bamf_tab_get_desktop_name ()">bamf_tab_get_desktop_name</a> <span class="c_punctuation">()</span>
81 </td>
82 </tr>
83 <tr>
84 <td class="function_type">const <span class="returnvalue">gchar</span> *
85 </td>
86 <td class="function_name">
87 <a class="link" href="BamfTab.html#bamf-tab-get-location" title="bamf_tab_get_location ()">bamf_tab_get_location</a> <span class="c_punctuation">()</span>
88 </td>
89 </tr>
90 <tr>
91 <td class="function_type">
92 <span class="returnvalue">guint64</span>
93 </td>
94 <td class="function_name">
95 <a class="link" href="BamfTab.html#bamf-tab-get-xid" title="bamf_tab_get_xid ()">bamf_tab_get_xid</a> <span class="c_punctuation">()</span>
96 </td>
97 </tr>
98 <tr>
99 <td class="function_type">
100 <span class="returnvalue">gboolean</span>
101 </td>
102 <td class="function_name">
103 <a class="link" href="BamfTab.html#bamf-tab-get-is-foreground-tab" title="bamf_tab_get_is_foreground_tab ()">bamf_tab_get_is_foreground_tab</a> <span class="c_punctuation">()</span>
104 </td>
105 </tr>
106 </tbody>
107 </table></div>
108 </div>
109 <div class="refsect1">
110 <a name="BamfTab.properties"></a><h2>Properties</h2>
111 <div class="informaltable"><table class="informaltable" border="0">
112 <colgroup>
113 <col width="150px" class="properties_type">
114 <col width="300px" class="properties_name">
115 <col width="200px" class="properties_flags">
116 </colgroup>
117 <tbody>
118 <tr>
119 <td class="property_type">
120 <span class="type">char</span> *</td>
121 <td class="property_name"><a class="link" href="BamfTab.html#BamfTab--desktop-id" title="The “desktop-id” property">desktop-id</a></td>
122 <td class="property_flags">Read</td>
123 </tr>
124 <tr>
125 <td class="property_type"><span class="type">gboolean</span></td>
126 <td class="property_name"><a class="link" href="BamfTab.html#BamfTab--is-foreground-tab" title="The “is-foreground-tab” property">is-foreground-tab</a></td>
127 <td class="property_flags">Read</td>
128 </tr>
129 <tr>
130 <td class="property_type">
131 <span class="type">char</span> *</td>
132 <td class="property_name"><a class="link" href="BamfTab.html#BamfTab--location" title="The “location” property">location</a></td>
133 <td class="property_flags">Read</td>
134 </tr>
135 <tr>
136 <td class="property_type"><span class="type">guint64</span></td>
137 <td class="property_name"><a class="link" href="BamfTab.html#BamfTab--xid" title="The “xid” property">xid</a></td>
138 <td class="property_flags">Read</td>
139 </tr>
140 </tbody>
141 </table></div>
142 </div>
143 <div class="refsect1">
144 <a name="BamfTab.other"></a><h2>Types and Values</h2>
145 <div class="informaltable"><table class="informaltable" width="100%" border="0">
146 <colgroup>
147 <col width="150px" class="other_proto_type">
148 <col class="other_proto_name">
149 </colgroup>
150 <tbody>
151 <tr>
152 <td class="define_keyword">#define</td>
153 <td class="function_name"><a class="link" href="BamfTab.html#BAMF-TYPE-TAB:CAPS" title="BAMF_TYPE_TAB">BAMF_TYPE_TAB</a></td>
154 </tr>
155 <tr>
156 <td class="datatype_keyword">struct</td>
157 <td class="function_name"><a class="link" href="BamfTab.html#BamfTabClass" title="struct BamfTabClass">BamfTabClass</a></td>
158 </tr>
159 <tr>
160 <td class="datatype_keyword"> </td>
161 <td class="function_name"><a class="link" href="BamfTab.html#BamfTab-struct" title="BamfTab">BamfTab</a></td>
162 </tr>
163 </tbody>
164 </table></div>
165 </div>
166 <div class="refsect1">
167 <a name="BamfTab.object-hierarchy"></a><h2>Object Hierarchy</h2>
168 <pre class="screen"> GObject
169 <span class="lineart">╰──</span> GInitiallyUnowned
170 <span class="lineart">╰──</span> <a class="link" href="BamfView.html" title="BamfView">BamfView</a>
171 <span class="lineart">╰──</span> BamfTab
172 </pre>
173 </div>
174 <div class="refsect1">
175 <a name="BamfTab.description"></a><h2>Description</h2>
176 </div>
177 <div class="refsect1">
178 <a name="BamfTab.functions_details"></a><h2>Functions</h2>
179 <div class="refsect2">
180 <a name="BamfTabPreviewReadyCallback"></a><h3>BamfTabPreviewReadyCallback ()</h3>
181 <pre class="programlisting"><span class="returnvalue">void</span>
182 <span class="c_punctuation">(</span>*BamfTabPreviewReadyCallback<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>,
183 <em class="parameter"><code>const <span class="type">gchar</span> *preview_data</code></em>,
184 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
185 </div>
186 <hr>
187 <div class="refsect2">
188 <a name="bamf-tab-raise"></a><h3>bamf_tab_raise ()</h3>
189 <pre class="programlisting"><span class="returnvalue">gboolean</span>
190 bamf_tab_raise (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>);</pre>
191 <p>Selects the <em class="parameter"><code>self</code></em>
192 tab in the parent window.</p>
193 <div class="refsect3">
194 <a name="bamf-tab-raise.parameters"></a><h4>Parameters</h4>
195 <div class="informaltable"><table class="informaltable" width="100%" border="0">
196 <colgroup>
197 <col width="150px" class="parameters_name">
198 <col class="parameters_description">
199 <col width="200px" class="parameters_annotations">
200 </colgroup>
201 <tbody><tr>
202 <td class="parameter_name"><p>self</p></td>
203 <td class="parameter_description"><p>A <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a>.</p></td>
204 <td class="parameter_annotations"> </td>
205 </tr></tbody>
206 </table></div>
207 </div>
208 <div class="refsect3">
209 <a name="bamf-tab-raise.returns"></a><h4>Returns</h4>
210 <p> <code class="literal">TRUE</code> if success, <code class="literal">FALSE</code> otherwise.</p>
211 </div>
212 </div>
213 <hr>
214 <div class="refsect2">
215 <a name="bamf-tab-close"></a><h3>bamf_tab_close ()</h3>
216 <pre class="programlisting"><span class="returnvalue">gboolean</span>
217 bamf_tab_close (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>);</pre>
218 <p>Closes the selected <em class="parameter"><code>self</code></em>
219 tab.</p>
220 <div class="refsect3">
221 <a name="bamf-tab-close.parameters"></a><h4>Parameters</h4>
222 <div class="informaltable"><table class="informaltable" width="100%" border="0">
223 <colgroup>
224 <col width="150px" class="parameters_name">
225 <col class="parameters_description">
226 <col width="200px" class="parameters_annotations">
227 </colgroup>
228 <tbody><tr>
229 <td class="parameter_name"><p>self</p></td>
230 <td class="parameter_description"><p>A <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a>.</p></td>
231 <td class="parameter_annotations"> </td>
232 </tr></tbody>
233 </table></div>
234 </div>
235 <div class="refsect3">
236 <a name="bamf-tab-close.returns"></a><h4>Returns</h4>
237 <p> <code class="literal">TRUE</code> if success, <code class="literal">FALSE</code> otherwise.</p>
238 </div>
239 </div>
240 <hr>
241 <div class="refsect2">
242 <a name="bamf-tab-request-preview"></a><h3>bamf_tab_request_preview ()</h3>
243 <pre class="programlisting"><span class="returnvalue">void</span>
244 bamf_tab_request_preview (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>,
245 <em class="parameter"><code><a class="link" href="BamfTab.html#BamfTabPreviewReadyCallback" title="BamfTabPreviewReadyCallback ()"><span class="type">BamfTabPreviewReadyCallback</span></a> callback</code></em>,
246 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
247 <div class="refsect3">
248 <a name="bamf-tab-request-preview.parameters"></a><h4>Parameters</h4>
249 <div class="informaltable"><table class="informaltable" width="100%" border="0">
250 <colgroup>
251 <col width="150px" class="parameters_name">
252 <col class="parameters_description">
253 <col width="200px" class="parameters_annotations">
254 </colgroup>
255 <tbody>
256 <tr>
257 <td class="parameter_name"><p>self</p></td>
258 <td class="parameter_description"><p>a <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a></p></td>
259 <td class="parameter_annotations"> </td>
260 </tr>
261 <tr>
262 <td class="parameter_name"><p>callback</p></td>
263 <td class="parameter_description"><p>a callback function to call when the result is ready. </p></td>
264 <td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>][<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span></td>
265 </tr>
266 <tr>
267 <td class="parameter_name"><p>user_data</p></td>
268 <td class="parameter_description"><p>data to be sent to the callback. </p></td>
269 <td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
270 </tr>
271 </tbody>
272 </table></div>
273 </div>
274 </div>
275 <hr>
276 <div class="refsect2">
277 <a name="bamf-tab-get-desktop-name"></a><h3>bamf_tab_get_desktop_name ()</h3>
278 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
279 bamf_tab_get_desktop_name (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>);</pre>
280 <p>Returns the desktop file for the tab.</p>
281 <div class="refsect3">
282 <a name="bamf-tab-get-desktop-name.parameters"></a><h4>Parameters</h4>
283 <div class="informaltable"><table class="informaltable" width="100%" border="0">
284 <colgroup>
285 <col width="150px" class="parameters_name">
286 <col class="parameters_description">
287 <col width="200px" class="parameters_annotations">
288 </colgroup>
289 <tbody><tr>
290 <td class="parameter_name"><p>self</p></td>
291 <td class="parameter_description"><p>A <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a>.</p></td>
292 <td class="parameter_annotations"> </td>
293 </tr></tbody>
294 </table></div>
295 </div>
296 <div class="refsect3">
297 <a name="bamf-tab-get-desktop-name.returns"></a><h4>Returns</h4>
298 <p>The tab desktop id or <code class="literal">NULL</code> if not set or available. Do not free the returned value, it belongs to <em class="parameter"><code>self</code></em>
299 . </p>
300 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
301 </div>
302 </div>
303 <hr>
304 <div class="refsect2">
305 <a name="bamf-tab-get-location"></a><h3>bamf_tab_get_location ()</h3>
306 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
307 bamf_tab_get_location (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>);</pre>
308 </div>
309 <hr>
310 <div class="refsect2">
311 <a name="bamf-tab-get-xid"></a><h3>bamf_tab_get_xid ()</h3>
312 <pre class="programlisting"><span class="returnvalue">guint64</span>
313 bamf_tab_get_xid (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>);</pre>
314 <p>The desktop file for the tab.</p>
315 <div class="refsect3">
316 <a name="bamf-tab-get-xid.parameters"></a><h4>Parameters</h4>
317 <div class="informaltable"><table class="informaltable" width="100%" border="0">
318 <colgroup>
319 <col width="150px" class="parameters_name">
320 <col class="parameters_description">
321 <col width="200px" class="parameters_annotations">
322 </colgroup>
323 <tbody><tr>
324 <td class="parameter_name"><p>self</p></td>
325 <td class="parameter_description"><p>A <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a>.</p></td>
326 <td class="parameter_annotations"> </td>
327 </tr></tbody>
328 </table></div>
329 </div>
330 <div class="refsect3">
331 <a name="bamf-tab-get-xid.returns"></a><h4>Returns</h4>
332 <p> The tab parent window XID id or 0 if not set or available.</p>
333 </div>
334 </div>
335 <hr>
336 <div class="refsect2">
337 <a name="bamf-tab-get-is-foreground-tab"></a><h3>bamf_tab_get_is_foreground_tab ()</h3>
338 <pre class="programlisting"><span class="returnvalue">gboolean</span>
339 bamf_tab_get_is_foreground_tab (<em class="parameter"><code><a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a> *self</code></em>);</pre>
340 <div class="refsect3">
341 <a name="bamf-tab-get-is-foreground-tab.parameters"></a><h4>Parameters</h4>
342 <div class="informaltable"><table class="informaltable" width="100%" border="0">
343 <colgroup>
344 <col width="150px" class="parameters_name">
345 <col class="parameters_description">
346 <col width="200px" class="parameters_annotations">
347 </colgroup>
348 <tbody><tr>
349 <td class="parameter_name"><p>self</p></td>
350 <td class="parameter_description"><p>A <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a>.</p></td>
351 <td class="parameter_annotations"> </td>
352 </tr></tbody>
353 </table></div>
354 </div>
355 <div class="refsect3">
356 <a name="bamf-tab-get-is-foreground-tab.returns"></a><h4>Returns</h4>
357 <p> <code class="literal">TRUE</code> if the tab is the active one on parent window XID, <code class="literal">FALSE</code> otherwise.</p>
358 </div>
359 </div>
360 </div>
361 <div class="refsect1">
362 <a name="BamfTab.other_details"></a><h2>Types and Values</h2>
363 <div class="refsect2">
364 <a name="BAMF-TYPE-TAB:CAPS"></a><h3>BAMF_TYPE_TAB</h3>
365 <pre class="programlisting">#define BAMF_TYPE_TAB (bamf_tab_get_type ())
366 </pre>
367 </div>
368 <hr>
369 <div class="refsect2">
370 <a name="BamfTabClass"></a><h3>struct BamfTabClass</h3>
371 <pre class="programlisting">struct BamfTabClass {
372 BamfViewClass parent_class;
373
374 const gchar * (*get_desktop_name) (BamfTab *self);
375 const gchar * (*get_location) (BamfTab *self);
376 guint64 (*get_xid) (BamfTab *self);
377 gboolean (*get_is_foreground_tab) (BamfTab *self);
378 };
379 </pre>
380 </div>
381 <hr>
382 <div class="refsect2">
383 <a name="BamfTab-struct"></a><h3>BamfTab</h3>
384 <pre class="programlisting">typedef struct _BamfTab BamfTab;</pre>
385 </div>
386 </div>
387 <div class="refsect1">
388 <a name="BamfTab.property-details"></a><h2>Property Details</h2>
389 <div class="refsect2">
390 <a name="BamfTab--desktop-id"></a><h3>The <code class="literal">“desktop-id”</code> property</h3>
391 <pre class="programlisting"> “desktop-id” <span class="type">char</span> *</pre>
392 <p>The Desktop ID associated with the application hosted in the remote Tab.</p>
393 <p>Owner: BamfTab</p>
394 <p>Flags: Read</p>
395 <p>Default value: NULL</p>
396 </div>
397 <hr>
398 <div class="refsect2">
399 <a name="BamfTab--is-foreground-tab"></a><h3>The <code class="literal">“is-foreground-tab”</code> property</h3>
400 <pre class="programlisting"> “is-foreground-tab” <span class="type">gboolean</span></pre>
401 <p>Whether the tab is the foreground tab in it's toplevel container.</p>
402 <p>Owner: BamfTab</p>
403 <p>Flags: Read</p>
404 <p>Default value: FALSE</p>
405 </div>
406 <hr>
407 <div class="refsect2">
408 <a name="BamfTab--location"></a><h3>The <code class="literal">“location”</code> property</h3>
409 <pre class="programlisting"> “location” <span class="type">char</span> *</pre>
410 <p>The Current location of the remote Tab.</p>
411 <p>Owner: BamfTab</p>
412 <p>Flags: Read</p>
413 <p>Default value: NULL</p>
414 </div>
415 <hr>
416 <div class="refsect2">
417 <a name="BamfTab--xid"></a><h3>The <code class="literal">“xid”</code> property</h3>
418 <pre class="programlisting"> “xid” <span class="type">guint64</span></pre>
419 <p>XID for the toplevel window containing the remote Tab.</p>
420 <p>Owner: BamfTab</p>
421 <p>Flags: Read</p>
422 <p>Default value: 0</p>
423 </div>
424 </div>
425 </div>
426 <div class="footer">
427 <hr>Generated by GTK-Doc V1.33.1</div>
428 </body>
429 </html>