Debian Codegraph @

doc/reference/libbamf/html/BamfMatcher.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>BamfMatcher: 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="ch01.html" title="Classes">
10 <link rel="next" href="BamfWindow.html" title="BamfWindow">
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="#BamfMatcher.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19 <a href="#BamfMatcher.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_signals">  <span class="dim">|</span> 
20 <a href="#BamfMatcher.signals" class="shortcut">Signals</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="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25 <td><a accesskey="n" href="BamfWindow.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="BamfMatcher"></a><div class="titlepage"></div>
29 <div class="refnamediv"><table width="100%"><tr>
30 <td valign="top">
31 <h2><span class="refentrytitle"><a name="BamfMatcher.top_of_page"></a>BamfMatcher</span></h2>
32 <p>BamfMatcher — The base class for all matchers</p>
33 </td>
34 <td class="gallery_image" valign="top" align="right"></td>
35 </tr></table></div>
36 <div class="refsect1">
37 <a name="BamfMatcher.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 <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="returnvalue">BamfMatcher</span></a> *
47 </td>
48 <td class="function_name">
49 <a class="link" href="BamfMatcher.html#bamf-matcher-get-default" title="bamf_matcher_get_default ()">bamf_matcher_get_default</a> <span class="c_punctuation">()</span>
50 </td>
51 </tr>
52 <tr>
53 <td class="function_type">
54 <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
55 </td>
56 <td class="function_name">
57 <a class="link" href="BamfMatcher.html#bamf-matcher-get-active-application" title="bamf_matcher_get_active_application ()">bamf_matcher_get_active_application</a> <span class="c_punctuation">()</span>
58 </td>
59 </tr>
60 <tr>
61 <td class="function_type">
62 <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="returnvalue">BamfWindow</span></a> *
63 </td>
64 <td class="function_name">
65 <a class="link" href="BamfMatcher.html#bamf-matcher-get-active-window" title="bamf_matcher_get_active_window ()">bamf_matcher_get_active_window</a> <span class="c_punctuation">()</span>
66 </td>
67 </tr>
68 <tr>
69 <td class="function_type">
70 <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="returnvalue">BamfWindow</span></a> *
71 </td>
72 <td class="function_name">
73 <a class="link" href="BamfMatcher.html#bamf-matcher-get-window-for-xid" title="bamf_matcher_get_window_for_xid ()">bamf_matcher_get_window_for_xid</a> <span class="c_punctuation">()</span>
74 </td>
75 </tr>
76 <tr>
77 <td class="function_type">
78 <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
79 </td>
80 <td class="function_name">
81 <a class="link" href="BamfMatcher.html#bamf-matcher-get-application-for-xid" title="bamf_matcher_get_application_for_xid ()">bamf_matcher_get_application_for_xid</a> <span class="c_punctuation">()</span>
82 </td>
83 </tr>
84 <tr>
85 <td class="function_type">
86 <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
87 </td>
88 <td class="function_name">
89 <a class="link" href="BamfMatcher.html#bamf-matcher-get-application-for-window" title="bamf_matcher_get_application_for_window ()">bamf_matcher_get_application_for_window</a> <span class="c_punctuation">()</span>
90 </td>
91 </tr>
92 <tr>
93 <td class="function_type">
94 <span class="returnvalue">gboolean</span>
95 </td>
96 <td class="function_name">
97 <a class="link" href="BamfMatcher.html#bamf-matcher-application-is-running" title="bamf_matcher_application_is_running ()">bamf_matcher_application_is_running</a> <span class="c_punctuation">()</span>
98 </td>
99 </tr>
100 <tr>
101 <td class="function_type">
102 <span class="returnvalue">GList</span> *
103 </td>
104 <td class="function_name">
105 <a class="link" href="BamfMatcher.html#bamf-matcher-get-applications" title="bamf_matcher_get_applications ()">bamf_matcher_get_applications</a> <span class="c_punctuation">()</span>
106 </td>
107 </tr>
108 <tr>
109 <td class="function_type">
110 <span class="returnvalue">void</span>
111 </td>
112 <td class="function_name">
113 <a class="link" href="BamfMatcher.html#bamf-matcher-register-favorites" title="bamf_matcher_register_favorites ()">bamf_matcher_register_favorites</a> <span class="c_punctuation">()</span>
114 </td>
115 </tr>
116 <tr>
117 <td class="function_type">
118 <span class="returnvalue">GList</span> *
119 </td>
120 <td class="function_name">
121 <a class="link" href="BamfMatcher.html#bamf-matcher-get-running-applications" title="bamf_matcher_get_running_applications ()">bamf_matcher_get_running_applications</a> <span class="c_punctuation">()</span>
122 </td>
123 </tr>
124 <tr>
125 <td class="function_type">
126 <span class="returnvalue">GList</span> *
127 </td>
128 <td class="function_name">
129 <a class="link" href="BamfMatcher.html#bamf-matcher-get-tabs" title="bamf_matcher_get_tabs ()">bamf_matcher_get_tabs</a> <span class="c_punctuation">()</span>
130 </td>
131 </tr>
132 <tr>
133 <td class="function_type">
134 <span class="returnvalue">GArray</span> *
135 </td>
136 <td class="function_name">
137 <a class="link" href="BamfMatcher.html#bamf-matcher-get-xids-for-application" title="bamf_matcher_get_xids_for_application ()">bamf_matcher_get_xids_for_application</a> <span class="c_punctuation">()</span>
138 </td>
139 </tr>
140 <tr>
141 <td class="function_type">
142 <span class="returnvalue">GList</span> *
143 </td>
144 <td class="function_name">
145 <a class="link" href="BamfMatcher.html#bamf-matcher-get-windows" title="bamf_matcher_get_windows ()">bamf_matcher_get_windows</a> <span class="c_punctuation">()</span>
146 </td>
147 </tr>
148 <tr>
149 <td class="function_type">
150 <span class="returnvalue">GList</span> *
151 </td>
152 <td class="function_name">
153 <a class="link" href="BamfMatcher.html#bamf-matcher-get-window-stack-for-monitor" title="bamf_matcher_get_window_stack_for_monitor ()">bamf_matcher_get_window_stack_for_monitor</a> <span class="c_punctuation">()</span>
154 </td>
155 </tr>
156 <tr>
157 <td class="function_type">
158 <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
159 </td>
160 <td class="function_name">
161 <a class="link" href="BamfMatcher.html#bamf-matcher-get-application-for-desktop-file" title="bamf_matcher_get_application_for_desktop_file ()">bamf_matcher_get_application_for_desktop_file</a> <span class="c_punctuation">()</span>
162 </td>
163 </tr>
164 </tbody>
165 </table></div>
166 </div>
167 <div class="refsect1">
168 <a name="BamfMatcher.signals"></a><h2>Signals</h2>
169 <div class="informaltable"><table class="informaltable" border="0">
170 <colgroup>
171 <col width="150px" class="signal_proto_type">
172 <col width="300px" class="signal_proto_name">
173 <col width="200px" class="signal_proto_flags">
174 </colgroup>
175 <tbody>
176 <tr>
177 <td class="signal_type"><span class="returnvalue">void</span></td>
178 <td class="signal_name"><a class="link" href="BamfMatcher.html#BamfMatcher-active-application-changed" title="The “active-application-changed” signal">active-application-changed</a></td>
179 <td class="signal_flags"> </td>
180 </tr>
181 <tr>
182 <td class="signal_type"><span class="returnvalue">void</span></td>
183 <td class="signal_name"><a class="link" href="BamfMatcher.html#BamfMatcher-active-window-changed" title="The “active-window-changed” signal">active-window-changed</a></td>
184 <td class="signal_flags"> </td>
185 </tr>
186 <tr>
187 <td class="signal_type"><span class="returnvalue">void</span></td>
188 <td class="signal_name"><a class="link" href="BamfMatcher.html#BamfMatcher-stacking-order-changed" title="The “stacking-order-changed” signal">stacking-order-changed</a></td>
189 <td class="signal_flags"> </td>
190 </tr>
191 <tr>
192 <td class="signal_type"><span class="returnvalue">void</span></td>
193 <td class="signal_name"><a class="link" href="BamfMatcher.html#BamfMatcher-view-closed" title="The “view-closed” signal">view-closed</a></td>
194 <td class="signal_flags"> </td>
195 </tr>
196 <tr>
197 <td class="signal_type"><span class="returnvalue">void</span></td>
198 <td class="signal_name"><a class="link" href="BamfMatcher.html#BamfMatcher-view-opened" title="The “view-opened” signal">view-opened</a></td>
199 <td class="signal_flags"> </td>
200 </tr>
201 </tbody>
202 </table></div>
203 </div>
204 <div class="refsect1">
205 <a name="BamfMatcher.other"></a><h2>Types and Values</h2>
206 <div class="informaltable"><table class="informaltable" width="100%" border="0">
207 <colgroup>
208 <col width="150px" class="other_proto_type">
209 <col class="other_proto_name">
210 </colgroup>
211 <tbody>
212 <tr>
213 <td class="define_keyword">#define</td>
214 <td class="function_name"><a class="link" href="BamfMatcher.html#BAMF-MATCHER-SIGNAL-VIEW-OPENED:CAPS" title="BAMF_MATCHER_SIGNAL_VIEW_OPENED">BAMF_MATCHER_SIGNAL_VIEW_OPENED</a></td>
215 </tr>
216 <tr>
217 <td class="define_keyword">#define</td>
218 <td class="function_name"><a class="link" href="BamfMatcher.html#BAMF-MATCHER-SIGNAL-VIEW-CLOSED:CAPS" title="BAMF_MATCHER_SIGNAL_VIEW_CLOSED">BAMF_MATCHER_SIGNAL_VIEW_CLOSED</a></td>
219 </tr>
220 <tr>
221 <td class="define_keyword">#define</td>
222 <td class="function_name"><a class="link" href="BamfMatcher.html#BAMF-MATCHER-SIGNAL-ACTIVE-APPLICATION-CHANGED:CAPS" title="BAMF_MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED">BAMF_MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED</a></td>
223 </tr>
224 <tr>
225 <td class="define_keyword">#define</td>
226 <td class="function_name"><a class="link" href="BamfMatcher.html#BAMF-MATCHER-SIGNAL-ACTIVE-WINDOW-CHANGED:CAPS" title="BAMF_MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED">BAMF_MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED</a></td>
227 </tr>
228 <tr>
229 <td class="define_keyword">#define</td>
230 <td class="function_name"><a class="link" href="BamfMatcher.html#BAMF-MATCHER-SIGNAL-STACKING-ORDER-CHANGED:CAPS" title="BAMF_MATCHER_SIGNAL_STACKING_ORDER_CHANGED">BAMF_MATCHER_SIGNAL_STACKING_ORDER_CHANGED</a></td>
231 </tr>
232 </tbody>
233 </table></div>
234 </div>
235 <div class="refsect1">
236 <a name="BamfMatcher.object-hierarchy"></a><h2>Object Hierarchy</h2>
237 <pre class="screen"> GObject
238 <span class="lineart">╰──</span> BamfMatcher
239 </pre>
240 </div>
241 <div class="refsect1">
242 <a name="BamfMatcher.description"></a><h2>Description</h2>
243 <p><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> is the base class that all matchers need to derive from.</p>
244 </div>
245 <div class="refsect1">
246 <a name="BamfMatcher.functions_details"></a><h2>Functions</h2>
247 <div class="refsect2">
248 <a name="bamf-matcher-get-default"></a><h3>bamf_matcher_get_default ()</h3>
249 <pre class="programlisting"><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="returnvalue">BamfMatcher</span></a> *
250 bamf_matcher_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
251 <p>Returns the default matcher. This matcher is owned by bamf and shared between other callers.</p>
252 <div class="refsect3">
253 <a name="bamf-matcher-get-default.returns"></a><h4>Returns</h4>
254 <p>A new <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a>. </p>
255 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
256 </div>
257 </div>
258 <hr>
259 <div class="refsect2">
260 <a name="bamf-matcher-get-active-application"></a><h3>bamf_matcher_get_active_application ()</h3>
261 <pre class="programlisting"><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
262 bamf_matcher_get_active_application (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>);</pre>
263 <p>Used to fetch the active <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>.</p>
264 <div class="refsect3">
265 <a name="bamf-matcher-get-active-application.parameters"></a><h4>Parameters</h4>
266 <div class="informaltable"><table class="informaltable" width="100%" border="0">
267 <colgroup>
268 <col width="150px" class="parameters_name">
269 <col class="parameters_description">
270 <col width="200px" class="parameters_annotations">
271 </colgroup>
272 <tbody><tr>
273 <td class="parameter_name"><p>matcher</p></td>
274 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
275 <td class="parameter_annotations"> </td>
276 </tr></tbody>
277 </table></div>
278 </div>
279 <div class="refsect3">
280 <a name="bamf-matcher-get-active-application.returns"></a><h4>Returns</h4>
281 <p>The active <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>. </p>
282 <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>
283 </div>
284 </div>
285 <hr>
286 <div class="refsect2">
287 <a name="bamf-matcher-get-active-window"></a><h3>bamf_matcher_get_active_window ()</h3>
288 <pre class="programlisting"><a class="link" href="BamfWindow.html" title="BamfWindow"><span class="returnvalue">BamfWindow</span></a> *
289 bamf_matcher_get_active_window (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>);</pre>
290 <p>Used to fetch the active <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>.</p>
291 <div class="refsect3">
292 <a name="bamf-matcher-get-active-window.parameters"></a><h4>Parameters</h4>
293 <div class="informaltable"><table class="informaltable" width="100%" border="0">
294 <colgroup>
295 <col width="150px" class="parameters_name">
296 <col class="parameters_description">
297 <col width="200px" class="parameters_annotations">
298 </colgroup>
299 <tbody><tr>
300 <td class="parameter_name"><p>matcher</p></td>
301 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
302 <td class="parameter_annotations"> </td>
303 </tr></tbody>
304 </table></div>
305 </div>
306 <div class="refsect3">
307 <a name="bamf-matcher-get-active-window.returns"></a><h4>Returns</h4>
308 <p>The active <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>. </p>
309 <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>
310 </div>
311 </div>
312 <hr>
313 <div class="refsect2">
314 <a name="bamf-matcher-get-window-for-xid"></a><h3>bamf_matcher_get_window_for_xid ()</h3>
315 <pre class="programlisting"><a class="link" href="BamfWindow.html" title="BamfWindow"><span class="returnvalue">BamfWindow</span></a> *
316 bamf_matcher_get_window_for_xid (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
317 <em class="parameter"><code><span class="type">guint32</span> xid</code></em>);</pre>
318 <p>Used to fetch the <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> that wraps the given <em class="parameter"><code>window</code></em>
319 .</p>
320 <div class="refsect3">
321 <a name="bamf-matcher-get-window-for-xid.parameters"></a><h4>Parameters</h4>
322 <div class="informaltable"><table class="informaltable" width="100%" border="0">
323 <colgroup>
324 <col width="150px" class="parameters_name">
325 <col class="parameters_description">
326 <col width="200px" class="parameters_annotations">
327 </colgroup>
328 <tbody>
329 <tr>
330 <td class="parameter_name"><p>matcher</p></td>
331 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
332 <td class="parameter_annotations"> </td>
333 </tr>
334 <tr>
335 <td class="parameter_name"><p>xid</p></td>
336 <td class="parameter_description"><p>The X11 Window ID to search for</p></td>
337 <td class="parameter_annotations"> </td>
338 </tr>
339 </tbody>
340 </table></div>
341 </div>
342 <div class="refsect3">
343 <a name="bamf-matcher-get-window-for-xid.returns"></a><h4>Returns</h4>
344 <p>The <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> representing the xid passed, or NULL if none exists. </p>
345 <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>
346 </div>
347 </div>
348 <hr>
349 <div class="refsect2">
350 <a name="bamf-matcher-get-application-for-xid"></a><h3>bamf_matcher_get_application_for_xid ()</h3>
351 <pre class="programlisting"><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
352 bamf_matcher_get_application_for_xid (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
353 <em class="parameter"><code><span class="type">guint32</span> xid</code></em>);</pre>
354 <p>Used to fetch the <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> containing the passed xid.</p>
355 <div class="refsect3">
356 <a name="bamf-matcher-get-application-for-xid.parameters"></a><h4>Parameters</h4>
357 <div class="informaltable"><table class="informaltable" width="100%" border="0">
358 <colgroup>
359 <col width="150px" class="parameters_name">
360 <col class="parameters_description">
361 <col width="200px" class="parameters_annotations">
362 </colgroup>
363 <tbody>
364 <tr>
365 <td class="parameter_name"><p>matcher</p></td>
366 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
367 <td class="parameter_annotations"> </td>
368 </tr>
369 <tr>
370 <td class="parameter_name"><p>xid</p></td>
371 <td class="parameter_description"><p>The XID to search for</p></td>
372 <td class="parameter_annotations"> </td>
373 </tr>
374 </tbody>
375 </table></div>
376 </div>
377 <div class="refsect3">
378 <a name="bamf-matcher-get-application-for-xid.returns"></a><h4>Returns</h4>
379 <p>The <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> representing the xid passed, or NULL if none exists. </p>
380 <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>
381 </div>
382 </div>
383 <hr>
384 <div class="refsect2">
385 <a name="bamf-matcher-get-application-for-window"></a><h3>bamf_matcher_get_application_for_window ()</h3>
386 <pre class="programlisting"><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
387 bamf_matcher_get_application_for_window
388 (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
389 <em class="parameter"><code><a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> *window</code></em>);</pre>
390 <p>Used to fetch the <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> containing the passed window.</p>
391 <div class="refsect3">
392 <a name="bamf-matcher-get-application-for-window.parameters"></a><h4>Parameters</h4>
393 <div class="informaltable"><table class="informaltable" width="100%" border="0">
394 <colgroup>
395 <col width="150px" class="parameters_name">
396 <col class="parameters_description">
397 <col width="200px" class="parameters_annotations">
398 </colgroup>
399 <tbody>
400 <tr>
401 <td class="parameter_name"><p>matcher</p></td>
402 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
403 <td class="parameter_annotations"> </td>
404 </tr>
405 <tr>
406 <td class="parameter_name"><p>window</p></td>
407 <td class="parameter_description"><p>The window to look for</p></td>
408 <td class="parameter_annotations"> </td>
409 </tr>
410 </tbody>
411 </table></div>
412 </div>
413 <div class="refsect3">
414 <a name="bamf-matcher-get-application-for-window.returns"></a><h4>Returns</h4>
415 <p>The <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> representing the xid passed, or NULL if none exists. </p>
416 <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>
417 </div>
418 </div>
419 <hr>
420 <div class="refsect2">
421 <a name="bamf-matcher-application-is-running"></a><h3>bamf_matcher_application_is_running ()</h3>
422 <pre class="programlisting"><span class="returnvalue">gboolean</span>
423 bamf_matcher_application_is_running (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
424 <em class="parameter"><code>const <span class="type">gchar</span> *desktop_file</code></em>);</pre>
425 </div>
426 <hr>
427 <div class="refsect2">
428 <a name="bamf-matcher-get-applications"></a><h3>bamf_matcher_get_applications ()</h3>
429 <pre class="programlisting"><span class="returnvalue">GList</span> *
430 bamf_matcher_get_applications (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>);</pre>
431 <p>Used to fetch all <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>'s running or not. Application authors who wish to only
432 see running applications should use bamf_matcher_get_running_applications instead. The reason
433 this method is needed is bamf will occasionally track applications which are not currently
434 running for nefarious purposes.</p>
435 <div class="refsect3">
436 <a name="bamf-matcher-get-applications.parameters"></a><h4>Parameters</h4>
437 <div class="informaltable"><table class="informaltable" width="100%" border="0">
438 <colgroup>
439 <col width="150px" class="parameters_name">
440 <col class="parameters_description">
441 <col width="200px" class="parameters_annotations">
442 </colgroup>
443 <tbody><tr>
444 <td class="parameter_name"><p>matcher</p></td>
445 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
446 <td class="parameter_annotations"> </td>
447 </tr></tbody>
448 </table></div>
449 </div>
450 <div class="refsect3">
451 <a name="bamf-matcher-get-applications.returns"></a><h4>Returns</h4>
452 <p>A list of <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>'s. </p>
453 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Bamf.Application][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
454 </div>
455 </div>
456 <hr>
457 <div class="refsect2">
458 <a name="bamf-matcher-register-favorites"></a><h3>bamf_matcher_register_favorites ()</h3>
459 <pre class="programlisting"><span class="returnvalue">void</span>
460 bamf_matcher_register_favorites (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
461 <em class="parameter"><code>const <span class="type">gchar</span> **favorites</code></em>);</pre>
462 <p>Used to effect how bamf performs matching. Desktop files passed to this method will
463 be prefered by bamf to system desktop files.</p>
464 <div class="refsect3">
465 <a name="bamf-matcher-register-favorites.parameters"></a><h4>Parameters</h4>
466 <div class="informaltable"><table class="informaltable" width="100%" border="0">
467 <colgroup>
468 <col width="150px" class="parameters_name">
469 <col class="parameters_description">
470 <col width="200px" class="parameters_annotations">
471 </colgroup>
472 <tbody>
473 <tr>
474 <td class="parameter_name"><p>matcher</p></td>
475 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
476 <td class="parameter_annotations"> </td>
477 </tr>
478 <tr>
479 <td class="parameter_name"><p>favorites</p></td>
480 <td class="parameter_description"><p>an array of strings, each containing an absolute path to a .desktop file. </p></td>
481 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>]</span></td>
482 </tr>
483 </tbody>
484 </table></div>
485 </div>
486 </div>
487 <hr>
488 <div class="refsect2">
489 <a name="bamf-matcher-get-running-applications"></a><h3>bamf_matcher_get_running_applications ()</h3>
490 <pre class="programlisting"><span class="returnvalue">GList</span> *
491 bamf_matcher_get_running_applications (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>);</pre>
492 <p>Used to fetch all <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>'s which are running.</p>
493 <div class="refsect3">
494 <a name="bamf-matcher-get-running-applications.parameters"></a><h4>Parameters</h4>
495 <div class="informaltable"><table class="informaltable" width="100%" border="0">
496 <colgroup>
497 <col width="150px" class="parameters_name">
498 <col class="parameters_description">
499 <col width="200px" class="parameters_annotations">
500 </colgroup>
501 <tbody><tr>
502 <td class="parameter_name"><p>matcher</p></td>
503 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
504 <td class="parameter_annotations"> </td>
505 </tr></tbody>
506 </table></div>
507 </div>
508 <div class="refsect3">
509 <a name="bamf-matcher-get-running-applications.returns"></a><h4>Returns</h4>
510 <p>A list of <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>'s. </p>
511 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Bamf.Application][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
512 </div>
513 </div>
514 <hr>
515 <div class="refsect2">
516 <a name="bamf-matcher-get-tabs"></a><h3>bamf_matcher_get_tabs ()</h3>
517 <pre class="programlisting"><span class="returnvalue">GList</span> *
518 bamf_matcher_get_tabs (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>);</pre>
519 <p>Used to fetch all <a class="link" href="BamfView.html" title="BamfView"><span class="type">BamfView</span></a>'s representing tabs. Currently unused.</p>
520 <div class="refsect3">
521 <a name="bamf-matcher-get-tabs.parameters"></a><h4>Parameters</h4>
522 <div class="informaltable"><table class="informaltable" width="100%" border="0">
523 <colgroup>
524 <col width="150px" class="parameters_name">
525 <col class="parameters_description">
526 <col width="200px" class="parameters_annotations">
527 </colgroup>
528 <tbody><tr>
529 <td class="parameter_name"><p>matcher</p></td>
530 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
531 <td class="parameter_annotations"> </td>
532 </tr></tbody>
533 </table></div>
534 </div>
535 <div class="refsect3">
536 <a name="bamf-matcher-get-tabs.returns"></a><h4>Returns</h4>
537 <p>A list of <a class="link" href="BamfTab.html" title="BamfTab"><span class="type">BamfTab</span></a>'s. </p>
538 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Bamf.Tab][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
539 </div>
540 </div>
541 <hr>
542 <div class="refsect2">
543 <a name="bamf-matcher-get-xids-for-application"></a><h3>bamf_matcher_get_xids_for_application ()</h3>
544 <pre class="programlisting"><span class="returnvalue">GArray</span> *
545 bamf_matcher_get_xids_for_application (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
546 <em class="parameter"><code>const <span class="type">gchar</span> *desktop_file</code></em>);</pre>
547 <p>Used to fetch all xid's associated with an application. Useful for performing window</p>
548 <div class="refsect3">
549 <a name="bamf-matcher-get-xids-for-application.parameters"></a><h4>Parameters</h4>
550 <div class="informaltable"><table class="informaltable" width="100%" border="0">
551 <colgroup>
552 <col width="150px" class="parameters_name">
553 <col class="parameters_description">
554 <col width="200px" class="parameters_annotations">
555 </colgroup>
556 <tbody><tr>
557 <td class="parameter_name"><p>matcher</p></td>
558 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
559 <td class="parameter_annotations"> </td>
560 </tr></tbody>
561 </table></div>
562 </div>
563 <div class="refsect3">
564 <a name="bamf-matcher-get-xids-for-application.returns"></a><h4>Returns</h4>
565 <p>A list of xids. </p>
566 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint32][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
567 </div>
568 </div>
569 <hr>
570 <div class="refsect2">
571 <a name="bamf-matcher-get-windows"></a><h3>bamf_matcher_get_windows ()</h3>
572 <pre class="programlisting"><span class="returnvalue">GList</span> *
573 bamf_matcher_get_windows (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>);</pre>
574 <p>Used to fetch all windows that BAMF knows about.</p>
575 <div class="refsect3">
576 <a name="bamf-matcher-get-windows.parameters"></a><h4>Parameters</h4>
577 <div class="informaltable"><table class="informaltable" width="100%" border="0">
578 <colgroup>
579 <col width="150px" class="parameters_name">
580 <col class="parameters_description">
581 <col width="200px" class="parameters_annotations">
582 </colgroup>
583 <tbody><tr>
584 <td class="parameter_name"><p>matcher</p></td>
585 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
586 <td class="parameter_annotations"> </td>
587 </tr></tbody>
588 </table></div>
589 </div>
590 <div class="refsect3">
591 <a name="bamf-matcher-get-windows.returns"></a><h4>Returns</h4>
592 <p>A list of <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>'s. </p>
593 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Bamf.Window][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
594 </div>
595 </div>
596 <hr>
597 <div class="refsect2">
598 <a name="bamf-matcher-get-window-stack-for-monitor"></a><h3>bamf_matcher_get_window_stack_for_monitor ()</h3>
599 <pre class="programlisting"><span class="returnvalue">GList</span> *
600 bamf_matcher_get_window_stack_for_monitor
601 (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
602 <em class="parameter"><code><span class="type">gint</span> monitor</code></em>);</pre>
603 <p>Used to fetch all windows that BAMF knows about in the requested screen,
604 in stacking bottom-to-top order. If the <em class="parameter"><code>monitor</code></em>
605 is set to a negative value,
606 then it fetches all the available windows in all monitors.</p>
607 <div class="refsect3">
608 <a name="bamf-matcher-get-window-stack-for-monitor.parameters"></a><h4>Parameters</h4>
609 <div class="informaltable"><table class="informaltable" width="100%" border="0">
610 <colgroup>
611 <col width="150px" class="parameters_name">
612 <col class="parameters_description">
613 <col width="200px" class="parameters_annotations">
614 </colgroup>
615 <tbody>
616 <tr>
617 <td class="parameter_name"><p>matcher</p></td>
618 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
619 <td class="parameter_annotations"> </td>
620 </tr>
621 <tr>
622 <td class="parameter_name"><p>monitor</p></td>
623 <td class="parameter_description"><p>the monitor you want the stack from, negative value to get all</p></td>
624 <td class="parameter_annotations"> </td>
625 </tr>
626 </tbody>
627 </table></div>
628 </div>
629 <div class="refsect3">
630 <a name="bamf-matcher-get-window-stack-for-monitor.returns"></a><h4>Returns</h4>
631 <p>A list of <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>'s. </p>
632 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Bamf.Window][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
633 </div>
634 </div>
635 <hr>
636 <div class="refsect2">
637 <a name="bamf-matcher-get-application-for-desktop-file"></a><h3>bamf_matcher_get_application_for_desktop_file ()</h3>
638 <pre class="programlisting"><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="returnvalue">BamfApplication</span></a> *
639 bamf_matcher_get_application_for_desktop_file
640 (<em class="parameter"><code><a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *matcher</code></em>,
641 <em class="parameter"><code>const <span class="type">gchar</span> *desktop_file_path</code></em>,
642 <em class="parameter"><code><span class="type">gboolean</span> create_if_not_found</code></em>);</pre>
643 <div class="refsect3">
644 <a name="bamf-matcher-get-application-for-desktop-file.parameters"></a><h4>Parameters</h4>
645 <div class="informaltable"><table class="informaltable" width="100%" border="0">
646 <colgroup>
647 <col width="150px" class="parameters_name">
648 <col class="parameters_description">
649 <col width="200px" class="parameters_annotations">
650 </colgroup>
651 <tbody>
652 <tr>
653 <td class="parameter_name"><p>matcher</p></td>
654 <td class="parameter_description"><p>a <a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a></p></td>
655 <td class="parameter_annotations"> </td>
656 </tr>
657 <tr>
658 <td class="parameter_name"><p>desktop_file_path</p></td>
659 <td class="parameter_description"><p>Path to the desktop file</p></td>
660 <td class="parameter_annotations"> </td>
661 </tr>
662 <tr>
663 <td class="parameter_name"><p>create_if_not_found</p></td>
664 <td class="parameter_description"><p>Create a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> if one isn't found</p></td>
665 <td class="parameter_annotations"> </td>
666 </tr>
667 </tbody>
668 </table></div>
669 </div>
670 <div class="refsect3">
671 <a name="bamf-matcher-get-application-for-desktop-file.returns"></a><h4>Returns</h4>
672 <p>A <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> for given desktop file. </p>
673 <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>
674 </div>
675 </div>
676 </div>
677 <div class="refsect1">
678 <a name="BamfMatcher.other_details"></a><h2>Types and Values</h2>
679 <div class="refsect2">
680 <a name="BAMF-MATCHER-SIGNAL-VIEW-OPENED:CAPS"></a><h3>BAMF_MATCHER_SIGNAL_VIEW_OPENED</h3>
681 <pre class="programlisting">#define BAMF_MATCHER_SIGNAL_VIEW_OPENED "view-opened"
682 </pre>
683 </div>
684 <hr>
685 <div class="refsect2">
686 <a name="BAMF-MATCHER-SIGNAL-VIEW-CLOSED:CAPS"></a><h3>BAMF_MATCHER_SIGNAL_VIEW_CLOSED</h3>
687 <pre class="programlisting">#define BAMF_MATCHER_SIGNAL_VIEW_CLOSED "view-closed"
688 </pre>
689 </div>
690 <hr>
691 <div class="refsect2">
692 <a name="BAMF-MATCHER-SIGNAL-ACTIVE-APPLICATION-CHANGED:CAPS"></a><h3>BAMF_MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED</h3>
693 <pre class="programlisting">#define BAMF_MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED "active-application-changed"
694 </pre>
695 </div>
696 <hr>
697 <div class="refsect2">
698 <a name="BAMF-MATCHER-SIGNAL-ACTIVE-WINDOW-CHANGED:CAPS"></a><h3>BAMF_MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED</h3>
699 <pre class="programlisting">#define BAMF_MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED "active-window-changed"
700 </pre>
701 </div>
702 <hr>
703 <div class="refsect2">
704 <a name="BAMF-MATCHER-SIGNAL-STACKING-ORDER-CHANGED:CAPS"></a><h3>BAMF_MATCHER_SIGNAL_STACKING_ORDER_CHANGED</h3>
705 <pre class="programlisting">#define BAMF_MATCHER_SIGNAL_STACKING_ORDER_CHANGED "stacking-order-changed"
706 </pre>
707 </div>
708 </div>
709 <div class="refsect1">
710 <a name="BamfMatcher.signal-details"></a><h2>Signal Details</h2>
711 <div class="refsect2">
712 <a name="BamfMatcher-active-application-changed"></a><h3>The <code class="literal">“active-application-changed”</code> signal</h3>
713 <pre class="programlisting"><span class="returnvalue">void</span>
714 user_function (<a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *bamfmatcher,
715 <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *arg1,
716 <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *arg2,
717 <span class="type">gpointer</span> user_data)</pre>
718 </div>
719 <hr>
720 <div class="refsect2">
721 <a name="BamfMatcher-active-window-changed"></a><h3>The <code class="literal">“active-window-changed”</code> signal</h3>
722 <pre class="programlisting"><span class="returnvalue">void</span>
723 user_function (<a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *bamfmatcher,
724 <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> *arg1,
725 <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> *arg2,
726 <span class="type">gpointer</span> user_data)</pre>
727 </div>
728 <hr>
729 <div class="refsect2">
730 <a name="BamfMatcher-stacking-order-changed"></a><h3>The <code class="literal">“stacking-order-changed”</code> signal</h3>
731 <pre class="programlisting"><span class="returnvalue">void</span>
732 user_function (<a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *bamfmatcher,
733 <span class="type">gpointer</span> user_data)</pre>
734 </div>
735 <hr>
736 <div class="refsect2">
737 <a name="BamfMatcher-view-closed"></a><h3>The <code class="literal">“view-closed”</code> signal</h3>
738 <pre class="programlisting"><span class="returnvalue">void</span>
739 user_function (<a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *bamfmatcher,
740 <a class="link" href="BamfView.html" title="BamfView"><span class="type">BamfView</span></a> *arg1,
741 <span class="type">gpointer</span> user_data)</pre>
742 </div>
743 <hr>
744 <div class="refsect2">
745 <a name="BamfMatcher-view-opened"></a><h3>The <code class="literal">“view-opened”</code> signal</h3>
746 <pre class="programlisting"><span class="returnvalue">void</span>
747 user_function (<a class="link" href="BamfMatcher.html" title="BamfMatcher"><span class="type">BamfMatcher</span></a> *bamfmatcher,
748 <a class="link" href="BamfView.html" title="BamfView"><span class="type">BamfView</span></a> *arg1,
749 <span class="type">gpointer</span> user_data)</pre>
750 </div>
751 </div>
752 </div>
753 <div class="footer">
754 <hr>Generated by GTK-Doc V1.33.1</div>
755 </body>
756 </html>