Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 1433

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: csutil/eventnames.h Source File (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>csutil/eventnames.h</h1><a href="csutil_2eventnames_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">  Crystal Space 3D engine: Event and module naming interface</span>
<a name="l00003"></a>00003 <span class="comment">  (C) 2005 by Adam D. Bradley &lt;artdodge@cs.bu.edu&gt;</span>
<a name="l00004"></a>00004 <span class="comment">  </span>
<a name="l00005"></a>00005 <span class="comment">  This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment">  modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment">  License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment">  version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">  </span>
<a name="l00010"></a>00010 <span class="comment">  This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment">  Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment">  </span>
<a name="l00015"></a>00015 <span class="comment">  You should have received a copy of the GNU Library General Public</span>
<a name="l00016"></a>00016 <span class="comment">  License along with this library; if not, write to the Free</span>
<a name="l00017"></a>00017 <span class="comment">  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __CS_CSUTIL_EVENTNAMES_H__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __CS_CSUTIL_EVENTNAMES_H__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="cssysdef_8h.html" title="This file should be #included before any other Crystal Space header files.">cssysdef.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "csextern.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="scf__implementation_8h.html" title="Crystal Space Shared Class Facility (SCF) - implementation creation support.">csutil/scf_implementation.h</a>"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="iutil_2eventnames_8h.html" title="General event name resolver interface.">iutil/eventnames.h</a>"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="iutil_2objreg_8h.html" title="Object registry interface.">iutil/objreg.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="hash_8h.html" title="A generic hash table.">csutil/hash.h</a>"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="csutil_2strset_8h.html" title="String-to-ID hash table.">csutil/strset.h</a>"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="csstring_8h.html" title="String utility class.">csutil/csstring.h</a>"</span>
<a name="l00031"></a>00031 
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef CSHASHCOMPUTER_EVENTENGINE_IDS</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define CSHASHCOMPUTER_EVENTENGINE_IDS</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="keyword">template</span>&lt;&gt;
<a name="l00042"></a><a class="code" href="classcsHashComputer_3_01const_01csEventID_01_4.html">00042</a> <span class="keyword">class </span><a class="code" href="classcsHashComputer.html" title="Template for hash value computing.">csHashComputer</a>&lt;const <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a>&gt;
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="keyword">public</span>:
<a name="l00045"></a><a class="code" href="classcsHashComputer_3_01const_01csEventID_01_4.html#7feb92b4459e3017284b9ae16a8029cd">00045</a>   <span class="keyword">static</span> <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> <a class="code" href="classcsHashComputer.html#28098b758683db0027dd7fafb900096b" title="Compute a hash value for key.">ComputeHash</a> (<span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> eid) 
<a name="l00046"></a>00046   {
<a name="l00047"></a>00047     <span class="keywordflow">return</span> (<a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a>) eid;
<a name="l00048"></a>00048   }
<a name="l00049"></a>00049 };
<a name="l00050"></a>00050 <span class="preprocessor">#endif // CSHASHCOMPUTER_EVENTENGINE_IDS</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052 
<a name="l00063"></a><a class="code" href="classcsEventNameRegistry.html">00063</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsEventNameRegistry.html" title="The csEventNameRegistry transforms textual event names (e.g., &amp;quot;crystalspace...">csEventNameRegistry</a> :
<a name="l00064"></a>00064   <span class="keyword">public</span> <a class="code" href="classscfImplementation1.html">scfImplementation1</a>&lt;csEventNameRegistry, iEventNameRegistry&gt;
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066  <span class="keyword">private</span>:
<a name="l00072"></a>00072   <a class="code" href="classcsEventNameRegistry.html" title="The csEventNameRegistry transforms textual event names (e.g., &amp;quot;crystalspace...">csEventNameRegistry</a> (<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *);
<a name="l00073"></a>00073  <span class="keyword">public</span>:
<a name="l00074"></a>00074   ~<a class="code" href="classcsEventNameRegistry.html" title="The csEventNameRegistry transforms textual event names (e.g., &amp;quot;crystalspace...">csEventNameRegistry</a> ();
<a name="l00075"></a>00075 
<a name="l00078"></a>00078   <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> GetID (<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
<a name="l00079"></a>00079 
<a name="l00080"></a>00080   <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * GetString (<span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <span class="keywordtype">id</span>);
<a name="l00081"></a>00081   <span class="keyword">static</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * GetString (<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, 
<a name="l00082"></a>00082                                                  <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <span class="keywordtype">id</span>);
<a name="l00083"></a>00083   <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> GetParentID (<span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <span class="keywordtype">id</span>);
<a name="l00084"></a>00084   <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <span class="keywordtype">bool</span> IsImmediateChildOf (<span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> child, 
<a name="l00085"></a>00085                                            <span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> parent);
<a name="l00086"></a>00086   <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <span class="keywordtype">bool</span> IsKindOf (<span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> child, 
<a name="l00087"></a>00087                                  <span class="keyword">const</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> parent);
<a name="l00094"></a>00094   <span class="keyword">static</span> <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iEventNameRegistry&gt;</a> GetRegistry(<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg);
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classcsEventNameRegistry.html#10bde97b8027839d81e8431f10b55360">00096</a>   <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> GetID (<a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *name_reg,
<a name="l00097"></a>00097                                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name) 
<a name="l00098"></a>00098   {
<a name="l00099"></a>00099     <span class="keywordflow">if</span> (name_reg != 0)
<a name="l00100"></a>00100       <span class="keywordflow">return</span> name_reg-&gt;<a class="code" href="structiEventNameRegistry.html#f33928398843a0a1039f678bd356fafc" title="Get the csEventID for an event name string (e.g., &amp;quot;crystalspace.input.keyboard...">GetID</a> (name);
<a name="l00101"></a>00101     <span class="keywordflow">else</span>
<a name="l00102"></a>00102       <span class="keywordflow">return</span> <a class="code" href="group__event__handling.html#g4179e548ef7784bec7313c2baebcd683">CS_EVENT_INVALID</a>;
<a name="l00103"></a>00103   }
<a name="l00104"></a><a class="code" href="classcsEventNameRegistry.html#3c34e6c6d9f713d2dff33e97cc3f1bf5">00104</a>   <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> GetID (<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, 
<a name="l00105"></a>00105                                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name)
<a name="l00106"></a>00106   {
<a name="l00107"></a>00107     <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iEventNameRegistry&gt;</a> nameRegistry = 
<a name="l00108"></a>00108       csQueryRegistry&lt;iEventNameRegistry&gt; (object_reg);
<a name="l00109"></a>00109     <a class="code" href="cssysdef_8h.html#c380bd47888ecfe73e7b7a40b6f827a1" title="Assertion.">CS_ASSERT</a> (nameRegistry);
<a name="l00110"></a>00110     <span class="keywordflow">return</span> nameRegistry-&gt;GetID (name);
<a name="l00111"></a>00111   };
<a name="l00112"></a>00112 
<a name="l00113"></a><a class="code" href="classcsEventNameRegistry.html#747be21392e36d3843a81c314cde80aa">00113</a>   <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> IsKindOf (<a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *name_reg,
<a name="l00114"></a>00114                                <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> name1, <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> name2) 
<a name="l00115"></a>00115   {
<a name="l00116"></a>00116     <span class="keywordflow">if</span> (name_reg != 0)
<a name="l00117"></a>00117       <span class="keywordflow">return</span> name_reg-&gt;<a class="code" href="structiEventNameRegistry.html#0dcf8d2375db1a8f3905b775cfac0814" title="Determine whether the name of the first csEventID is equivalent to or a child of...">IsKindOf</a>(name1, name2);
<a name="l00118"></a>00118     <span class="keywordflow">else</span>
<a name="l00119"></a>00119       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00120"></a>00120   }
<a name="l00121"></a><a class="code" href="classcsEventNameRegistry.html#d973d9716e35112ffc73f36410f97acb">00121</a>   <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> IsKindOf (<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, 
<a name="l00122"></a>00122                                <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> name1, <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> name2)
<a name="l00123"></a>00123   {
<a name="l00124"></a>00124     <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iEventNameRegistry&gt;</a> nameRegistry =
<a name="l00125"></a>00125       csQueryRegistry&lt;iEventNameRegistry&gt; (object_reg);
<a name="l00126"></a>00126     <a class="code" href="cssysdef_8h.html#c380bd47888ecfe73e7b7a40b6f827a1" title="Assertion.">CS_ASSERT</a>(nameRegistry);
<a name="l00127"></a>00127     <span class="keywordflow">return</span> nameRegistry-&gt;IsKindOf (name1, name2);
<a name="l00128"></a>00128   };
<a name="l00129"></a>00129 
<a name="l00130"></a>00130  <span class="keyword">private</span>:
<a name="l00131"></a>00131   <a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg;
<a name="l00132"></a>00132   <a class="code" href="classcsHash.html" title="A generic hash table class, which grows dynamically and whose buckets are unsorted...">csHash&lt;csEventID,csEventID&gt;</a> parentage;
<a name="l00133"></a>00133   <a class="code" href="classcsStringSet.html" title="The string set is a collection of unique strings.">csStringSet</a> names;
<a name="l00134"></a>00134 };
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 
<a name="l00153"></a><a class="code" href="group__event__handling.html#g7539e7012b65a80ee001edf381af93c5">00153</a> <span class="preprocessor">#define csevAllEvents(reg)            \</span>
<a name="l00154"></a>00154 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), ""))</span>
<a name="l00155"></a>00155 <span class="preprocessor"></span>
<a name="l00161"></a><a class="code" href="group__event__handling.html#gb6d197b308f4c78c8690de6a1c252d04">00161</a> <span class="preprocessor">#define csevFrame(reg)                \</span>
<a name="l00162"></a>00162 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.frame"))</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00167"></a><a class="code" href="group__event__handling.html#gaf911fd154450599e865868db937dbe9">00167</a> <span class="preprocessor">#define csevInput(reg)                \</span>
<a name="l00168"></a>00168 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.input"))</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span>
<a name="l00174"></a><a class="code" href="group__event__handling.html#g0385e2999e453091f80f2a5c529a79a3">00174</a> <span class="preprocessor">#define csevKeyboardEvent(reg)        \</span>
<a name="l00175"></a>00175 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.input.keyboard"))</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span>
<a name="l00178"></a><a class="code" href="group__event__handling.html#g6207c49bfbab0ce73319c9bfdc8d52c7">00178</a> <span class="preprocessor">#define csevKeyboardDown(reg)         \</span>
<a name="l00179"></a>00179 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.input.keyboard.down"))</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span>
<a name="l00182"></a><a class="code" href="group__event__handling.html#gfe259b3848491725047a9dc97ae88e81">00182</a> <span class="preprocessor">#define csevKeyboardUp(reg)           \</span>
<a name="l00183"></a>00183 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.input.keyboard.up"))</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00186"></a><a class="code" href="group__event__handling.html#g332ef1a3d1a63b791553df1ab720e043">00186</a> <span class="preprocessor">#define csevMouseEvent(reg)           \</span>
<a name="l00187"></a>00187 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.input.mouse"))</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span>
<a name="l00189"></a><a class="code" href="group__event__handling.html#g18cbcf1836948ff839a67a749e9aef23">00189</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g18cbcf1836948ff839a67a749e9aef23" title="Check if an event is any input event.">csevMouse</a> (
<a name="l00190"></a>00190   <a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *name_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x)
<a name="l00191"></a>00191 {
<a name="l00192"></a>00192   <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> name (<span class="stringliteral">"crystalspace.input.mouse."</span>);
<a name="l00193"></a>00193   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (x);
<a name="l00194"></a>00194   <span class="keywordflow">return</span> name_reg-&gt;<a class="code" href="structiEventNameRegistry.html#f33928398843a0a1039f678bd356fafc" title="Get the csEventID for an event name string (e.g., &amp;quot;crystalspace.input.keyboard...">GetID</a>(name);
<a name="l00195"></a>00195 }
<a name="l00196"></a>00196 
<a name="l00197"></a><a class="code" href="group__event__handling.html#g1e3f76e80230e5513f355b2f54e71d09">00197</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g18cbcf1836948ff839a67a749e9aef23" title="Check if an event is any input event.">csevMouse</a>(
<a name="l00198"></a>00198   <a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x) 
<a name="l00199"></a>00199 {
<a name="l00200"></a>00200   <span class="keywordflow">return</span> <a class="code" href="group__event__handling.html#g18cbcf1836948ff839a67a749e9aef23" title="Check if an event is any input event.">csevMouse</a>(<a class="code" href="classcsEventNameRegistry.html#0617080f5f4626f72ce93449e0d88dbd" title="Return the singleton iEventNameRegistry object registered in the iObjectRegistry...">csEventNameRegistry::GetRegistry</a>(object_reg), x);
<a name="l00201"></a>00201 }
<a name="l00202"></a>00202 
<a name="l00203"></a><a class="code" href="group__event__handling.html#gf130738dd2b8bb4ae10096305529f723">00203</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#gf130738dd2b8bb4ae10096305529f723" title="Check if an event is any input event.">csevMouseOp</a>(
<a name="l00204"></a>00204   <a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *name_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x, <span class="keyword">const</span> <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> &amp;y)
<a name="l00205"></a>00205 {
<a name="l00206"></a>00206   <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> name (<span class="stringliteral">"crystalspace.input.mouse."</span>);
<a name="l00207"></a>00207   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (x);
<a name="l00208"></a>00208   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (<span class="stringliteral">"."</span>);
<a name="l00209"></a>00209   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (y);
<a name="l00210"></a>00210   <span class="keywordflow">return</span> name_reg-&gt;<a class="code" href="structiEventNameRegistry.html#f33928398843a0a1039f678bd356fafc" title="Get the csEventID for an event name string (e.g., &amp;quot;crystalspace.input.keyboard...">GetID</a>(name);
<a name="l00211"></a>00211 }
<a name="l00212"></a>00212 
<a name="l00213"></a><a class="code" href="group__event__handling.html#gad0b7bf03105028bffbc28c7624fc7ca">00213</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#gf130738dd2b8bb4ae10096305529f723" title="Check if an event is any input event.">csevMouseOp</a>(
<a name="l00214"></a>00214   <a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x, <span class="keyword">const</span> <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> &amp;y) 
<a name="l00215"></a>00215 {
<a name="l00216"></a>00216   <span class="keywordflow">return</span> <a class="code" href="group__event__handling.html#gf130738dd2b8bb4ae10096305529f723" title="Check if an event is any input event.">csevMouseOp</a>(<a class="code" href="classcsEventNameRegistry.html#0617080f5f4626f72ce93449e0d88dbd" title="Return the singleton iEventNameRegistry object registered in the iObjectRegistry...">csEventNameRegistry::GetRegistry</a>(object_reg), x, y);
<a name="l00217"></a>00217 }
<a name="l00218"></a>00218 
<a name="l00223"></a><a class="code" href="group__event__handling.html#g09ebcf100f26e3217fb5d9e18ef71070">00223</a> <span class="preprocessor">#define csevMouseButton(reg,x)        \</span>
<a name="l00224"></a>00224 <span class="preprocessor">  csevMouseOp ((reg), (x), "button")</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span>
<a name="l00229"></a><a class="code" href="group__event__handling.html#ga2180bc37008b73623bad5f3807b463e">00229</a> <span class="preprocessor">#define csevMouseDown(reg,x)          \</span>
<a name="l00230"></a>00230 <span class="preprocessor">  csevMouseOp ((reg), (x), "button.down")</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span>
<a name="l00235"></a><a class="code" href="group__event__handling.html#g00373027f54de134871e14bf7ba56507">00235</a> <span class="preprocessor">#define csevMouseUp(reg,x)            \</span>
<a name="l00236"></a>00236 <span class="preprocessor">  csevMouseOp ((reg), (x), "button.up")</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span>
<a name="l00241"></a><a class="code" href="group__event__handling.html#gd11a4eefec36ccadc0e89159294cfeab">00241</a> <span class="preprocessor">#define csevMouseClick(reg,x)         \</span>
<a name="l00242"></a>00242 <span class="preprocessor">  csevMouseOp ((reg), (x), "button.click")</span>
<a name="l00243"></a>00243 <span class="preprocessor"></span>
<a name="l00247"></a><a class="code" href="group__event__handling.html#gb5a5d82a745038123d96b63a24bdf87f">00247</a> <span class="preprocessor">#define csevMouseDoubleClick(reg,x)   \</span>
<a name="l00248"></a>00248 <span class="preprocessor">  csevMouseOp((reg), (x), "button.doubleclick")</span>
<a name="l00249"></a>00249 <span class="preprocessor"></span>
<a name="l00253"></a><a class="code" href="group__event__handling.html#g825f363a5858fd454bcb833871980f57">00253</a> <span class="preprocessor">#define csevMouseMove(reg,x)          \</span>
<a name="l00254"></a>00254 <span class="preprocessor">  csevMouseOp((reg), (x), "move")</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span>
<a name="l00260"></a><a class="code" href="group__event__handling.html#g64570881cf9552061295e49d50063c57">00260</a> <span class="preprocessor">#define csevJoystickEvent(reg)        \</span>
<a name="l00261"></a>00261 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.input.joystick"))</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span>
<a name="l00263"></a><a class="code" href="group__event__handling.html#g0c4ce187aa25d5dad94163d46a5417d8">00263</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g0c4ce187aa25d5dad94163d46a5417d8" title="Check if an event is any input event.">csevJoystick</a> (
<a name="l00264"></a>00264   <a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *name_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x) 
<a name="l00265"></a>00265 {
<a name="l00266"></a>00266   <span class="keywordtype">char</span> buffer[64];
<a name="l00267"></a>00267   <a class="code" href="group__util.html#gb1da56117bc82aa18efd07d4de43cb17" title="Portable implementation of snprintf().">cs_snprintf</a>(buffer, <span class="keyword">sizeof</span> (buffer) - 1, <span class="stringliteral">"crystalspace.input.joystick.%d"</span>, 
<a name="l00268"></a>00268     x);
<a name="l00269"></a>00269   <span class="keywordflow">return</span> name_reg-&gt;<a class="code" href="structiEventNameRegistry.html#f33928398843a0a1039f678bd356fafc" title="Get the csEventID for an event name string (e.g., &amp;quot;crystalspace.input.keyboard...">GetID</a>(buffer);
<a name="l00270"></a>00270 }
<a name="l00271"></a>00271 
<a name="l00272"></a><a class="code" href="group__event__handling.html#g6fdbf21d5b26a6e6651b7bc53824ef4a">00272</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g0c4ce187aa25d5dad94163d46a5417d8" title="Check if an event is any input event.">csevJoystick</a> (
<a name="l00273"></a>00273   <a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x)
<a name="l00274"></a>00274 {
<a name="l00275"></a>00275   <span class="keywordflow">return</span> <a class="code" href="group__event__handling.html#g0c4ce187aa25d5dad94163d46a5417d8" title="Check if an event is any input event.">csevJoystick</a>(<a class="code" href="classcsEventNameRegistry.html#0617080f5f4626f72ce93449e0d88dbd" title="Return the singleton iEventNameRegistry object registered in the iObjectRegistry...">csEventNameRegistry::GetRegistry</a>(object_reg), x);
<a name="l00276"></a>00276 }
<a name="l00277"></a>00277 
<a name="l00278"></a><a class="code" href="group__event__handling.html#g3c29fec51982552d0d4baab91958075c">00278</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g3c29fec51982552d0d4baab91958075c" title="Check if an event is any input event.">csevJoystickOp</a> (
<a name="l00279"></a>00279   <a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *name_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x, <span class="keyword">const</span> <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> &amp;y) 
<a name="l00280"></a>00280 {
<a name="l00281"></a>00281   <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> name (<span class="stringliteral">"crystalspace.input.joystick."</span>);
<a name="l00282"></a>00282   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (x);
<a name="l00283"></a>00283   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (<span class="stringliteral">"."</span>);
<a name="l00284"></a>00284   name.<a class="code" href="classcsStringBase.html#9b78c60659ea1e5bea610d4d2eb29016" title="Append a null-terminated C-string to this one.">Append</a> (y);
<a name="l00285"></a>00285   <span class="keywordflow">return</span> name_reg-&gt;<a class="code" href="structiEventNameRegistry.html#f33928398843a0a1039f678bd356fafc" title="Get the csEventID for an event name string (e.g., &amp;quot;crystalspace.input.keyboard...">GetID</a>(name);
<a name="l00286"></a>00286 }
<a name="l00287"></a>00287 
<a name="l00288"></a><a class="code" href="group__event__handling.html#g82be44b0bb8622b8c5a319b45bdc21f5">00288</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g3c29fec51982552d0d4baab91958075c" title="Check if an event is any input event.">csevJoystickOp</a> (
<a name="l00289"></a>00289   <a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> x, <span class="keyword">const</span> <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> &amp;y)
<a name="l00290"></a>00290 {
<a name="l00291"></a>00291   <span class="keywordflow">return</span> <a class="code" href="group__event__handling.html#g3c29fec51982552d0d4baab91958075c" title="Check if an event is any input event.">csevJoystickOp</a> (<a class="code" href="classcsEventNameRegistry.html#0617080f5f4626f72ce93449e0d88dbd" title="Return the singleton iEventNameRegistry object registered in the iObjectRegistry...">csEventNameRegistry::GetRegistry</a>(object_reg), x, y);
<a name="l00292"></a>00292 }
<a name="l00293"></a>00293 
<a name="l00299"></a><a class="code" href="group__event__handling.html#g59ecd4ba0fca843a15bd181a2394681e">00299</a> <span class="preprocessor">#define csevJoystickButton(reg,x)     \</span>
<a name="l00300"></a>00300 <span class="preprocessor">  csevJoystickOp((reg),(x),"button")</span>
<a name="l00301"></a>00301 <span class="preprocessor"></span>
<a name="l00303"></a><a class="code" href="group__event__handling.html#g1da735acde98e4fb6654d87f4bdda7c9">00303</a> <span class="preprocessor">#define csevJoystickDown(reg,x)       \</span>
<a name="l00304"></a>00304 <span class="preprocessor">  csevJoystickOp((reg),(x),"button.down")</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span>
<a name="l00307"></a><a class="code" href="group__event__handling.html#g05c6817322b8908313dc52304d09c8da">00307</a> <span class="preprocessor">#define csevJoystickUp(reg,x)         \</span>
<a name="l00308"></a>00308 <span class="preprocessor">  csevJoystickOp((reg),(x),"button.up")</span>
<a name="l00309"></a>00309 <span class="preprocessor"></span>
<a name="l00311"></a><a class="code" href="group__event__handling.html#gbfc32cacbd94f8962ce21ff86e9fb5b0">00311</a> <span class="preprocessor">#define csevJoystickMove(reg,x)       \</span>
<a name="l00312"></a>00312 <span class="preprocessor">  csevJoystickOp((reg),(x),"move")</span>
<a name="l00313"></a>00313 <span class="preprocessor"></span>
<a name="l00315"></a><a class="code" href="group__event__handling.html#g23bee8bd59fcfe48a61572b215cd4962">00315</a> <span class="preprocessor">#define CS_IS_KEYBOARD_EVENT(reg,e)   \</span>
<a name="l00316"></a>00316 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevKeyboardEvent(reg))</span>
<a name="l00317"></a>00317 <span class="preprocessor"></span>
<a name="l00319"></a><a class="code" href="group__event__handling.html#g2b5d14734c6ae94cae9a722f017dd2c4">00319</a> <span class="preprocessor">#define CS_IS_MOUSE_EVENT(reg,e)      \</span>
<a name="l00320"></a>00320 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevMouseEvent(reg))</span>
<a name="l00321"></a>00321 <span class="preprocessor"></span>
<a name="l00323"></a><a class="code" href="group__event__handling.html#g60c3cfef564152816f5eee98d775ac39">00323</a> <span class="preprocessor">#define CS_IS_MOUSE_BUTTON_EVENT(reg,e,n) \</span>
<a name="l00324"></a>00324 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevMouseButton((reg),n))</span>
<a name="l00325"></a>00325 <span class="preprocessor"></span>
<a name="l00327"></a><a class="code" href="group__event__handling.html#g4bd651d4ebcc3b86fc959a772d7b801b">00327</a> <span class="preprocessor">#define CS_IS_MOUSE_MOVE_EVENT(reg,e,n) \</span>
<a name="l00328"></a>00328 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevMouseMove((reg),n))</span>
<a name="l00329"></a>00329 <span class="preprocessor"></span>
<a name="l00331"></a><a class="code" href="group__event__handling.html#gf24052ac30ad56d8819750657bc19466">00331</a> <span class="preprocessor">#define CS_IS_JOYSTICK_EVENT(reg,e)   \</span>
<a name="l00332"></a>00332 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevJoystickEvent(reg))</span>
<a name="l00333"></a>00333 <span class="preprocessor"></span>
<a name="l00335"></a><a class="code" href="group__event__handling.html#g2e99a8dea5aced5fd6deacd338276f70">00335</a> <span class="preprocessor">#define CS_IS_JOYSTICK_BUTTON_EVENT(reg,e,n) \</span>
<a name="l00336"></a>00336 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevJoystickButton((reg),n))</span>
<a name="l00337"></a>00337 <span class="preprocessor"></span>
<a name="l00339"></a><a class="code" href="group__event__handling.html#g1df2036231b2050bf8b25a93ea0d7ef6">00339</a> <span class="preprocessor">#define CS_IS_JOYSTICK_MOVE_EVENT(reg,e,n) \</span>
<a name="l00340"></a>00340 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevJoystickMove((reg),n))</span>
<a name="l00341"></a>00341 <span class="preprocessor"></span>
<a name="l00343"></a><a class="code" href="group__event__handling.html#g77fd5f9a7d0da5ab2687eb9ba8f31448">00343</a> <span class="preprocessor">#define CS_IS_INPUT_EVENT(reg,e)      \</span>
<a name="l00344"></a>00344 <span class="preprocessor">  csEventNameRegistry::IsKindOf((reg), ((e).Name), csevInput(reg))</span>
<a name="l00345"></a>00345 <span class="preprocessor"></span>
<a name="l00354"></a><a class="code" href="group__event__handling.html#g81e4bc87464dd23f0bc15856bc7d1572">00354</a> <span class="preprocessor">#define csevQuit(reg)                 \</span>
<a name="l00355"></a>00355 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.quit"))</span>
<a name="l00356"></a>00356 <span class="preprocessor"></span>
<a name="l00361"></a><a class="code" href="group__event__handling.html#gfdde83e5cbddefff983a4131142e4426">00361</a> <span class="preprocessor">#define csevFocusChanged(reg)         \</span>
<a name="l00362"></a>00362 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.focus"))</span>
<a name="l00363"></a>00363 <span class="preprocessor"></span>
<a name="l00369"></a><a class="code" href="group__event__handling.html#g57ed3ce5b16e1d714c963b61c71ad76f">00369</a> <span class="preprocessor">#define csevFocusGained(reg)          \</span>
<a name="l00370"></a>00370 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.focus.gained"))</span>
<a name="l00371"></a>00371 <span class="preprocessor"></span>
<a name="l00377"></a><a class="code" href="group__event__handling.html#ge47bd7e8dcb5b73aba89b9cf9d44d13b">00377</a> <span class="preprocessor">#define csevFocusLost(reg)            \</span>
<a name="l00378"></a>00378 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.focus.lost"))</span>
<a name="l00379"></a>00379 <span class="preprocessor"></span>
<a name="l00390"></a><a class="code" href="group__event__handling.html#g5a1a4767025847fc9ddcfc3fb0007f16">00390</a> <span class="preprocessor">#define csevSystemOpen(reg)           \</span>
<a name="l00391"></a>00391 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.open"))</span>
<a name="l00392"></a>00392 <span class="preprocessor"></span>
<a name="l00397"></a><a class="code" href="group__event__handling.html#g2565d47183cdf5e0d72181dee8b79f34">00397</a> <span class="preprocessor">#define csevSystemClose(reg)          \</span>
<a name="l00398"></a>00398 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.close"))</span>
<a name="l00399"></a>00399 <span class="preprocessor"></span>
<a name="l00400"></a>00400 <span class="keyword">struct </span><a class="code" href="structiGraphics2D.html" title="This is the interface for 2D renderer.">iGraphics2D</a>;
<a name="l00401"></a>00401 
<a name="l00402"></a>00402 CS_CRYSTALSPACE_EXPORT
<a name="l00403"></a>00403 <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#gb6e53765d448ea46f36cfc2aa5c6d8c6" title="Check if an event is any input event.">csevCanvasOp</a> (<a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iEventNameRegistry&gt;</a>&amp; reg, 
<a name="l00404"></a>00404                                         <span class="keyword">const</span> <a class="code" href="structiGraphics2D.html" title="This is the interface for 2D renderer.">iGraphics2D</a>* g2d, 
<a name="l00405"></a>00405                                         <span class="keyword">const</span> <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> &amp;y);
<a name="l00406"></a><a class="code" href="group__event__handling.html#gfa0278a662491fc68c66f7225878333c">00406</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="cssysdef_8h.html#66bba4b4bdb4b6dadd37563abc499d48" title="Use the CS_CONST_METHOD macro in front of method declarations to indicate that they...">CS_CONST_METHOD</a> <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#gb6e53765d448ea46f36cfc2aa5c6d8c6" title="Check if an event is any input event.">csevCanvasOp</a> (
<a name="l00407"></a>00407   <a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *object_reg, <span class="keyword">const</span> <a class="code" href="structiGraphics2D.html" title="This is the interface for 2D renderer.">iGraphics2D</a>* g2d, <span class="keyword">const</span> <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> &amp;y)
<a name="l00408"></a>00408 {
<a name="l00409"></a>00409   <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iEventNameRegistry&gt;</a> name_reg = <a class="code" href="classcsEventNameRegistry.html#0617080f5f4626f72ce93449e0d88dbd" title="Return the singleton iEventNameRegistry object registered in the iObjectRegistry...">csEventNameRegistry::GetRegistry</a> (object_reg);
<a name="l00410"></a>00410   <span class="keywordflow">return</span> <a class="code" href="group__event__handling.html#gb6e53765d448ea46f36cfc2aa5c6d8c6" title="Check if an event is any input event.">csevCanvasOp</a>(name_reg, g2d, y);
<a name="l00411"></a>00411 }
<a name="l00412"></a>00412 
<a name="l00413"></a>00413 
<a name="l00421"></a><a class="code" href="group__event__handling.html#gb7d7f41a14eade4cae7ba1345abb476b">00421</a> <span class="preprocessor">#define csevCanvasResize(reg, g2d)      \</span>
<a name="l00422"></a>00422 <span class="preprocessor">  csevCanvasOp((reg), (g2d), "resize")</span>
<a name="l00423"></a>00423 <span class="preprocessor"></span>
<a name="l00434"></a><a class="code" href="group__event__handling.html#gb128211a9a53aa527fd93a221af44ed1">00434</a> <span class="preprocessor">#define csevCanvasClose(reg, g2d)             \</span>
<a name="l00435"></a>00435 <span class="preprocessor">  csevCanvasOp((reg), (g2d), "close")</span>
<a name="l00436"></a>00436 <span class="preprocessor"></span>
<a name="l00442"></a><a class="code" href="group__event__handling.html#g9281995a5705a62098960364ea3da212">00442</a> <span class="preprocessor">#define csevCanvasHidden(reg, g2d)      \</span>
<a name="l00443"></a>00443 <span class="preprocessor">  csevCanvasOp((reg), (g2d), "hidden")</span>
<a name="l00444"></a>00444 <span class="preprocessor"></span>
<a name="l00449"></a><a class="code" href="group__event__handling.html#gd623c4bef8d9d69ce0678fa0d2169b1d">00449</a> <span class="preprocessor">#define csevCanvasExposed(reg, g2d)     \</span>
<a name="l00450"></a>00450 <span class="preprocessor">  csevCanvasOp((reg), (g2d), "exposed")</span>
<a name="l00451"></a>00451 <span class="preprocessor"></span>
<a name="l00461"></a><a class="code" href="group__event__handling.html#g977aed0ba09a2ddfe491e814af149d3f">00461</a> <span class="preprocessor">#define csevCommandLineHelp(reg)      \</span>
<a name="l00462"></a>00462 <span class="preprocessor">  (csEventNameRegistry::GetID((reg), "crystalspace.application.commandlinehelp"))</span>
<a name="l00463"></a>00463 <span class="preprocessor"></span>
<a name="l00471"></a>00471 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g1bdda0c2fc8caf7464d62da58bc91392" title="Broadcasted before csevProcess on every frame.">csevPreProcess</a>(<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *reg);
<a name="l00472"></a>00472 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g1bdda0c2fc8caf7464d62da58bc91392" title="Broadcasted before csevProcess on every frame.">csevPreProcess</a>(<a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *reg);
<a name="l00473"></a>00473 
<a name="l00478"></a>00478 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g977bd4a5cac5fcf27ed0660837e629b3" title="Broadcasted every frame.">csevProcess</a>(<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *reg);
<a name="l00479"></a>00479 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g977bd4a5cac5fcf27ed0660837e629b3" title="Broadcasted every frame.">csevProcess</a>(<a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *reg);
<a name="l00480"></a>00480 
<a name="l00488"></a>00488 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g8d2570a797520f02ee1dbd449875e1e0" title="Broadcasted after csevProcess on every frame.">csevPostProcess</a>(<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *reg);
<a name="l00489"></a>00489 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g8d2570a797520f02ee1dbd449875e1e0" title="Broadcasted after csevProcess on every frame.">csevPostProcess</a>(<a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *reg);
<a name="l00490"></a>00490 
<a name="l00498"></a>00498 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g059d7292b19ba5ebb7b2c5ba3fdb0f67" title="Broadcasted after csevPostProcess on every frame.">csevFinalProcess</a>(<a class="code" href="structiObjectRegistry.html" title="This interface serves as a registry of other objects.">iObjectRegistry</a> *reg);
<a name="l00499"></a>00499 CS_CRYSTALSPACE_EXPORT <a class="code" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757" title="A csEventID is a handle for a string representing an event&amp;#39;s hierarchical name...">csEventID</a> <a class="code" href="group__event__handling.html#g059d7292b19ba5ebb7b2c5ba3fdb0f67" title="Broadcasted after csevPostProcess on every frame.">csevFinalProcess</a>(<a class="code" href="structiEventNameRegistry.html" title="This interface represents a general event name resolver.">iEventNameRegistry</a> *reg);
<a name="l00500"></a>00500 
<a name="l00503"></a><a class="code" href="group__event__handling.html#g65135ddc0fbc0f93e268d6e1130f9525">00503</a> <span class="preprocessor">#define CS_DECLARE_SYSTEM_EVENT_SHORTCUTS                       \</span>
<a name="l00504"></a>00504 <span class="preprocessor">  csEventID SystemOpen;                                         \</span>
<a name="l00505"></a>00505 <span class="preprocessor">  csEventID SystemClose</span>
<a name="l00506"></a>00506 <span class="preprocessor"></span>
<a name="l00507"></a><a class="code" href="group__event__handling.html#g3d079fa37a1b0a6d60075c2d7ff1b473">00507</a> <span class="preprocessor">#define CS_DECLARE_FRAME_EVENT_SHORTCUTS                        \</span>
<a name="l00508"></a>00508 <span class="preprocessor">  csEventID Frame;                                              \</span>
<a name="l00509"></a>00509 <span class="preprocessor">  csEventID PreProcess;                                         \</span>
<a name="l00510"></a>00510 <span class="preprocessor">  csEventID Process;                                            \</span>
<a name="l00511"></a>00511 <span class="preprocessor">  csEventID PostProcess;                                        \</span>
<a name="l00512"></a>00512 <span class="preprocessor">  csEventID FinalProcess</span>
<a name="l00513"></a>00513 <span class="preprocessor"></span>
<a name="l00514"></a><a class="code" href="group__event__handling.html#ge7c559dd3119047a21de473c2eff7623">00514</a> <span class="preprocessor">#define CS_DECLARE_INPUT_EVENT_SHORTCUTS                        \</span>
<a name="l00515"></a>00515 <span class="preprocessor">  csEventID KeyboardEvent;                                      \</span>
<a name="l00516"></a>00516 <span class="preprocessor">  csEventID MouseEvent;                                         \</span>
<a name="l00517"></a>00517 <span class="preprocessor">  csEventID JoystickEvent</span>
<a name="l00518"></a>00518 <span class="preprocessor"></span>
<a name="l00524"></a><a class="code" href="group__event__handling.html#g9e06efa3802cf2bb855e54669349b77c">00524</a> <span class="preprocessor">#define CS_DECLARE_EVENT_SHORTCUTS                              \</span>
<a name="l00525"></a>00525 <span class="preprocessor">  CS_DECLARE_SYSTEM_EVENT_SHORTCUTS;                            \</span>
<a name="l00526"></a>00526 <span class="preprocessor">  CS_DECLARE_FRAME_EVENT_SHORTCUTS;                             \</span>
<a name="l00527"></a>00527 <span class="preprocessor">  CS_DECLARE_INPUT_EVENT_SHORTCUTS</span>
<a name="l00528"></a>00528 <span class="preprocessor"></span>
<a name="l00529"></a><a class="code" href="group__event__handling.html#ge1a844893cb98664fc2c11689afaa3f6">00529</a> <span class="preprocessor">#define CS_INITIALIZE_SYSTEM_EVENT_SHORTCUTS(object_reg) do {   \</span>
<a name="l00530"></a>00530 <span class="preprocessor">    SystemOpen = csevSystemOpen ((object_reg));                 \</span>
<a name="l00531"></a>00531 <span class="preprocessor">    SystemClose = csevSystemClose ((object_reg));               \</span>
<a name="l00532"></a>00532 <span class="preprocessor">  } while (0)</span>
<a name="l00533"></a>00533 <span class="preprocessor"></span>
<a name="l00534"></a><a class="code" href="group__event__handling.html#ge4e3450580c0a8f206e81ebe05ebfabe">00534</a> <span class="preprocessor">#define CS_INITIALIZE_FRAME_EVENT_SHORTCUTS(object_reg) do {    \</span>
<a name="l00535"></a>00535 <span class="preprocessor">    Frame = csevFrame ((object_reg));                           \</span>
<a name="l00536"></a>00536 <span class="preprocessor">    PreProcess = csevPreProcess ((object_reg));                 \</span>
<a name="l00537"></a>00537 <span class="preprocessor">    Process = csevProcess ((object_reg));                       \</span>
<a name="l00538"></a>00538 <span class="preprocessor">    PostProcess = csevPostProcess ((object_reg));               \</span>
<a name="l00539"></a>00539 <span class="preprocessor">    FinalProcess = csevFinalProcess ((object_reg));             \</span>
<a name="l00540"></a>00540 <span class="preprocessor">  } while (0)</span>
<a name="l00541"></a>00541 <span class="preprocessor"></span>
<a name="l00542"></a><a class="code" href="group__event__handling.html#g1279124beda5c4770fa9f13c6894e24d">00542</a> <span class="preprocessor">#define CS_INITIALIZE_INPUT_EVENT_SHORTCUTS(object_reg) do {    \</span>
<a name="l00543"></a>00543 <span class="preprocessor">    KeyboardEvent = csevKeyboardEvent ((object_reg));           \</span>
<a name="l00544"></a>00544 <span class="preprocessor">    MouseEvent = csevMouseEvent ((object_reg));                 \</span>
<a name="l00545"></a>00545 <span class="preprocessor">    JoystickEvent = csevJoystickEvent ((object_reg));           \</span>
<a name="l00546"></a>00546 <span class="preprocessor">  } while (0)</span>
<a name="l00547"></a>00547 <span class="preprocessor"></span>
<a name="l00553"></a><a class="code" href="group__event__handling.html#g1f17fc1929d4424fd9769850b3e846c5">00553</a> <span class="preprocessor">#define CS_INITIALIZE_EVENT_SHORTCUTS(object_reg) do {  \</span>
<a name="l00554"></a>00554 <span class="preprocessor">    CS_INITIALIZE_SYSTEM_EVENT_SHORTCUTS (object_reg);  \</span>
<a name="l00555"></a>00555 <span class="preprocessor">    CS_INITIALIZE_FRAME_EVENT_SHORTCUTS (object_reg);   \</span>
<a name="l00556"></a>00556 <span class="preprocessor">    CS_INITIALIZE_INPUT_EVENT_SHORTCUTS (object_reg);   \</span>
<a name="l00557"></a>00557 <span class="preprocessor">  } while (0)</span>
<a name="l00558"></a>00558 <span class="preprocessor"></span>
<a name="l00561"></a>00561 <span class="preprocessor">#endif // __CS_CSUTIL_EVENTNAMES_H__</span>
</pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>