group__event.html 29.1 KB
Newer Older
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 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
<!-- HTML header for doxygen 1.8.8-->
<!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="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.13"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>libinput: Accessing and destruction of events</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link href="libinputdoxygen.css" rel="stylesheet" type="text/css"/>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="doxy-boot.js"></script>
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">libinput 1.10.7</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Accessing and destruction of events</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibinput__event.html">libinput_event</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The base event type.  <a href="structlibinput__event.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibinput__event__device__notify.html">libinput_event_device_notify</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An event notifying the caller of a device being added or removed.  <a href="structlibinput__event__device__notify.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga1df956c16e26cbbd911e553ec081022a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga1df956c16e26cbbd911e553ec081022a">libinput_event_destroy</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga1df956c16e26cbbd911e553ec081022a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy the event, freeing all associated resources.  <a href="#ga1df956c16e26cbbd911e553ec081022a">More...</a><br /></td></tr>
<tr class="separator:ga1df956c16e26cbbd911e553ec081022a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga430a3a7369afd6c5ff722179327df79a"><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="group__base.html#gac30276a06e8b1434b959f2c8dde74f7c">libinput_event_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga430a3a7369afd6c5ff722179327df79a">libinput_event_get_type</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga430a3a7369afd6c5ff722179327df79a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the type of the event.  <a href="#ga430a3a7369afd6c5ff722179327df79a">More...</a><br /></td></tr>
<tr class="separator:ga430a3a7369afd6c5ff722179327df79a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga28557ae0295f61c45f9b6e4ff7f86632"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput.html">libinput</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga28557ae0295f61c45f9b6e4ff7f86632">libinput_event_get_context</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga28557ae0295f61c45f9b6e4ff7f86632"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the libinput context from the event.  <a href="#ga28557ae0295f61c45f9b6e4ff7f86632">More...</a><br /></td></tr>
<tr class="separator:ga28557ae0295f61c45f9b6e4ff7f86632"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8a49a089181960f7536344f7637ea777"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__device.html">libinput_device</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga8a49a089181960f7536344f7637ea777">libinput_event_get_device</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga8a49a089181960f7536344f7637ea777"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the device associated with this event.  <a href="#ga8a49a089181960f7536344f7637ea777">More...</a><br /></td></tr>
<tr class="separator:ga8a49a089181960f7536344f7637ea777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga52acdc3afcf75efeb8153f50eef20615"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__pointer.html">libinput_event_pointer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga52acdc3afcf75efeb8153f50eef20615">libinput_event_get_pointer_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga52acdc3afcf75efeb8153f50eef20615"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the pointer event that is this input event.  <a href="#ga52acdc3afcf75efeb8153f50eef20615">More...</a><br /></td></tr>
<tr class="separator:ga52acdc3afcf75efeb8153f50eef20615"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8378f8fdd01e8afbcea8ddbb5411570d"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__keyboard.html">libinput_event_keyboard</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga8378f8fdd01e8afbcea8ddbb5411570d">libinput_event_get_keyboard_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga8378f8fdd01e8afbcea8ddbb5411570d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the keyboard event that is this input event.  <a href="#ga8378f8fdd01e8afbcea8ddbb5411570d">More...</a><br /></td></tr>
<tr class="separator:ga8378f8fdd01e8afbcea8ddbb5411570d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad2cba8252024bdcc341499bedd3d0be7"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__touch.html">libinput_event_touch</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#gad2cba8252024bdcc341499bedd3d0be7">libinput_event_get_touch_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:gad2cba8252024bdcc341499bedd3d0be7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the touch event that is this input event.  <a href="#gad2cba8252024bdcc341499bedd3d0be7">More...</a><br /></td></tr>
<tr class="separator:gad2cba8252024bdcc341499bedd3d0be7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae173f30b70c265036bbdc9557f3115c4"><td class="memItemLeft" align="right" valign="top">struct libinput_event_gesture *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#gae173f30b70c265036bbdc9557f3115c4">libinput_event_get_gesture_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:gae173f30b70c265036bbdc9557f3115c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the gesture event that is this input event.  <a href="#gae173f30b70c265036bbdc9557f3115c4">More...</a><br /></td></tr>
<tr class="separator:gae173f30b70c265036bbdc9557f3115c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadfd7d9f1c3210f394faa60928f3c187f"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__tablet__tool.html">libinput_event_tablet_tool</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#gadfd7d9f1c3210f394faa60928f3c187f">libinput_event_get_tablet_tool_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:gadfd7d9f1c3210f394faa60928f3c187f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the tablet tool event that is this input event.  <a href="#gadfd7d9f1c3210f394faa60928f3c187f">More...</a><br /></td></tr>
<tr class="separator:gadfd7d9f1c3210f394faa60928f3c187f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5677182e32138bda352cc37b03dec07"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__tablet__pad.html">libinput_event_tablet_pad</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#gaf5677182e32138bda352cc37b03dec07">libinput_event_get_tablet_pad_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:gaf5677182e32138bda352cc37b03dec07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the tablet pad event that is this input event.  <a href="#gaf5677182e32138bda352cc37b03dec07">More...</a><br /></td></tr>
<tr class="separator:gaf5677182e32138bda352cc37b03dec07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3b892e5862564ce83efdfe78ba78e2e"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__switch.html">libinput_event_switch</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#gad3b892e5862564ce83efdfe78ba78e2e">libinput_event_get_switch_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:gad3b892e5862564ce83efdfe78ba78e2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the switch event that is this input event.  <a href="#gad3b892e5862564ce83efdfe78ba78e2e">More...</a><br /></td></tr>
<tr class="separator:gad3b892e5862564ce83efdfe78ba78e2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2bbc1391a3397d57d37ae3e2f8175abc"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event__device__notify.html">libinput_event_device_notify</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga2bbc1391a3397d57d37ae3e2f8175abc">libinput_event_get_device_notify_event</a> (struct <a class="el" href="structlibinput__event.html">libinput_event</a> *event)</td></tr>
<tr class="memdesc:ga2bbc1391a3397d57d37ae3e2f8175abc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the device event that is this input event.  <a href="#ga2bbc1391a3397d57d37ae3e2f8175abc">More...</a><br /></td></tr>
<tr class="separator:ga2bbc1391a3397d57d37ae3e2f8175abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga19d329b7685c3a994718cec3845db1a0"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__event.html#ga19d329b7685c3a994718cec3845db1a0">libinput_event_device_notify_get_base_event</a> (struct <a class="el" href="structlibinput__event__device__notify.html">libinput_event_device_notify</a> *event)</td></tr>
<tr class="separator:ga19d329b7685c3a994718cec3845db1a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga1df956c16e26cbbd911e553ec081022a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1df956c16e26cbbd911e553ec081022a">&#9670;&nbsp;</a></span>libinput_event_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libinput_event_destroy </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy the event, freeing all associated resources. </p>
<p>Resources obtained from this event must be considered invalid after this call.</p>
<dl class="section warning"><dt>Warning</dt><dd>Unlike other structs events are considered transient and <b>not</b> refcounted. Calling <a class="el" href="group__event.html#ga1df956c16e26cbbd911e553ec081022a" title="Destroy the event, freeing all associated resources. ">libinput_event_destroy()</a> <b>will</b> destroy the event.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>An event retrieved by <a class="el" href="group__base.html#gacead6670eaecf7c807659e2b6c725630" title="Retrieve the next event from libinput&#39;s internal event queue. ">libinput_get_event()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga19d329b7685c3a994718cec3845db1a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19d329b7685c3a994718cec3845db1a0">&#9670;&nbsp;</a></span>libinput_event_device_notify_get_base_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event.html">libinput_event</a>* libinput_event_device_notify_get_base_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event__device__notify.html">libinput_event_device_notify</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The generic <a class="el" href="structlibinput__event.html" title="The base event type. ">libinput_event</a> of this event </dd></dl>

</div>
</div>
<a id="ga28557ae0295f61c45f9b6e4ff7f86632"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga28557ae0295f61c45f9b6e4ff7f86632">&#9670;&nbsp;</a></span>libinput_event_get_context()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput.html">libinput</a>* libinput_event_get_context </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the libinput context from the event. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>The libinput event </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The libinput context for this event. </dd></dl>

</div>
</div>
<a id="ga8a49a089181960f7536344f7637ea777"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8a49a089181960f7536344f7637ea777">&#9670;&nbsp;</a></span>libinput_event_get_device()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__device.html">libinput_device</a>* libinput_event_get_device </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the device associated with this event. </p>
<p>For device added/removed events this is the device added or removed. For all other device events, this is the device that generated the event.</p>
<p>This device is not refcounted and its lifetime is that of the event. Use <a class="el" href="group__device.html#ga3335d55a50f0c2fb0c5f496a3105d467" title="Increase the refcount of the input device. ">libinput_device_ref()</a> before using the device outside of this scope.</p>
<dl class="section return"><dt>Returns</dt><dd>The device associated with this event </dd></dl>

</div>
</div>
<a id="ga2bbc1391a3397d57d37ae3e2f8175abc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2bbc1391a3397d57d37ae3e2f8175abc">&#9670;&nbsp;</a></span>libinput_event_get_device_notify_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__device__notify.html">libinput_event_device_notify</a>* libinput_event_get_device_notify_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the device event that is this input event. </p>
<p>If the event type does not match the device event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event.html#ga19d329b7685c3a994718cec3845db1a0">libinput_event_device_notify_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A device event, or NULL for other events </dd></dl>

</div>
</div>
<a id="gae173f30b70c265036bbdc9557f3115c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae173f30b70c265036bbdc9557f3115c4">&#9670;&nbsp;</a></span>libinput_event_get_gesture_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct libinput_event_gesture* libinput_event_get_gesture_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the gesture event that is this input event. </p>
<p>If the event type does not match the gesture event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__gesture.html#gab46fd1f8b4d5e12bc4d365e3599dfc94">libinput_event_gesture_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A gesture event, or NULL for other events </dd></dl>

</div>
</div>
<a id="ga8378f8fdd01e8afbcea8ddbb5411570d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8378f8fdd01e8afbcea8ddbb5411570d">&#9670;&nbsp;</a></span>libinput_event_get_keyboard_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__keyboard.html">libinput_event_keyboard</a>* libinput_event_get_keyboard_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the keyboard event that is this input event. </p>
<p>If the event type does not match the keyboard event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__keyboard.html#gae5a3b7e12e7e8b213b3da92a13adb88d">libinput_event_keyboard_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A keyboard event, or NULL for other events </dd></dl>

</div>
</div>
<a id="ga52acdc3afcf75efeb8153f50eef20615"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga52acdc3afcf75efeb8153f50eef20615">&#9670;&nbsp;</a></span>libinput_event_get_pointer_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__pointer.html">libinput_event_pointer</a>* libinput_event_get_pointer_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the pointer event that is this input event. </p>
<p>If the event type does not match the pointer event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__pointer.html#ga4d4f75669001c323dcdc3cc9aec1574a">libinput_event_pointer_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A pointer event, or NULL for other events </dd></dl>

</div>
</div>
<a id="gad3b892e5862564ce83efdfe78ba78e2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad3b892e5862564ce83efdfe78ba78e2e">&#9670;&nbsp;</a></span>libinput_event_get_switch_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__switch.html">libinput_event_switch</a>* libinput_event_get_switch_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the switch event that is this input event. </p>
<p>If the event type does not match the switch event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__switch.html#gad8a54ce7fe7556be2db0ce3e52c91f71">libinput_event_switch_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A switch event, or NULL for other events </dd></dl>

</div>
</div>
<a id="gaf5677182e32138bda352cc37b03dec07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf5677182e32138bda352cc37b03dec07">&#9670;&nbsp;</a></span>libinput_event_get_tablet_pad_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__tablet__pad.html">libinput_event_tablet_pad</a>* libinput_event_get_tablet_pad_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the tablet pad event that is this input event. </p>
<p>If the event type does not match the tablet pad event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__tablet__pad.html#ga33eb585eb7da3f35c083084a1f4e5586">libinput_event_tablet_pad_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A tablet pad event, or NULL for other events </dd></dl>

</div>
</div>
<a id="gadfd7d9f1c3210f394faa60928f3c187f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadfd7d9f1c3210f394faa60928f3c187f">&#9670;&nbsp;</a></span>libinput_event_get_tablet_tool_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__tablet__tool.html">libinput_event_tablet_tool</a>* libinput_event_get_tablet_tool_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the tablet tool event that is this input event. </p>
<p>If the event type does not match the tablet tool event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__tablet.html#ga90299b56480264cf775c871e52526bb9">libinput_event_tablet_tool_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A tablet tool event, or NULL for other events </dd></dl>

</div>
</div>
<a id="gad2cba8252024bdcc341499bedd3d0be7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad2cba8252024bdcc341499bedd3d0be7">&#9670;&nbsp;</a></span>libinput_event_get_touch_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibinput__event__touch.html">libinput_event_touch</a>* libinput_event_get_touch_event </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the touch event that is this input event. </p>
<p>If the event type does not match the touch event types, this function returns NULL.</p>
<p>The inverse of this function is <a class="el" href="group__event__touch.html#gacb2cd144a719c9873cd4621db278e92c">libinput_event_touch_get_base_event()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>A touch event, or NULL for other events </dd></dl>

</div>
</div>
<a id="ga430a3a7369afd6c5ff722179327df79a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga430a3a7369afd6c5ff722179327df79a">&#9670;&nbsp;</a></span>libinput_event_get_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__base.html#gac30276a06e8b1434b959f2c8dde74f7c">libinput_event_type</a> libinput_event_get_type </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlibinput__event.html">libinput_event</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the type of the event. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>An event retrieved by <a class="el" href="group__base.html#gacead6670eaecf7c807659e2b6c725630" title="Retrieve the next event from libinput&#39;s internal event queue. ">libinput_get_event()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>