<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>My Project: SDL_mouse.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">My Project </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div><!-- top --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">SDL_mouse.h</div> </div> </div><!--header--> <div class="contents"> <a href="SDL__mouse_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Simple DirectMedia Layer</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org></span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> This software is provided 'as-is', without any express or implied</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> warranty. In no event will the authors be held liable for any damages</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> arising from the use of this software.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> Permission is granted to anyone to use this software for any purpose,</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> including commercial applications, and to alter it and redistribute it</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> freely, subject to the following restrictions:</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> 1. The origin of this software must not be misrepresented; you must not</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> claim that you wrote the original software. If you use this software</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> in a product, an acknowledgment in the product documentation would be</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> appreciated but is not required.</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> 2. Altered source versions must be plainly marked as such, and must not be</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> misrepresented as being the original software.</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> 3. This notice may not be removed or altered from any source distribution.</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">*/</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#ifndef _SDL_mouse_h</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#define _SDL_mouse_h</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="SDL__stdinc_8h.html">SDL_stdinc.h</a>"</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="SDL__error_8h.html">SDL_error.h</a>"</span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="SDL__video_8h.html">SDL_video.h</a>"</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="begin__code_8h.html">begin_code.h</a>"</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">/* Set up for C function definitions, even when using C++ */</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>SDL_Cursor SDL_Cursor; <span class="comment">/* Implementation dependent */</span></div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732"> 46</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div> <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a0ea5055b7ef96598a39570abf365b9f9"> 48</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a0ea5055b7ef96598a39570abf365b9f9">SDL_SYSTEM_CURSOR_ARROW</a>, </div> <div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a5f3b85170a85ffb62aa477f9c31987fb"> 49</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a5f3b85170a85ffb62aa477f9c31987fb">SDL_SYSTEM_CURSOR_IBEAM</a>, </div> <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a8ce5ae38a754042575234c8da72417e6"> 50</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a8ce5ae38a754042575234c8da72417e6">SDL_SYSTEM_CURSOR_WAIT</a>, </div> <div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732ae18ee52eb9724301950db552c953e48e"> 51</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732ae18ee52eb9724301950db552c953e48e">SDL_SYSTEM_CURSOR_CROSSHAIR</a>, </div> <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a71fe25cd68c411ca52370bacc40b2764"> 52</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a71fe25cd68c411ca52370bacc40b2764">SDL_SYSTEM_CURSOR_WAITARROW</a>, </div> <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a0eb8a498162417265c0ec79c1eacb30e"> 53</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a0eb8a498162417265c0ec79c1eacb30e">SDL_SYSTEM_CURSOR_SIZENWSE</a>, </div> <div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a5b70e5fee565ccf9a6a99f92c571b4ed"> 54</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a5b70e5fee565ccf9a6a99f92c571b4ed">SDL_SYSTEM_CURSOR_SIZENESW</a>, </div> <div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732aa2f663333ca851ce0f40f8f8d2c2a731"> 55</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732aa2f663333ca851ce0f40f8f8d2c2a731">SDL_SYSTEM_CURSOR_SIZEWE</a>, </div> <div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a04d6abe3f01b1c4b8d77af1b2ef5e4e9"> 56</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a04d6abe3f01b1c4b8d77af1b2ef5e4e9">SDL_SYSTEM_CURSOR_SIZENS</a>, </div> <div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a88849f7320ea2bf629e05a06c6ff8e20"> 57</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a88849f7320ea2bf629e05a06c6ff8e20">SDL_SYSTEM_CURSOR_SIZEALL</a>, </div> <div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a70a8b0dec44a0f63d7af72e649de3b62"> 58</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a70a8b0dec44a0f63d7af72e649de3b62">SDL_SYSTEM_CURSOR_NO</a>, </div> <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a09cd11742bffaafbd1073afeea03f7bc"> 59</a></span>  <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a09cd11742bffaafbd1073afeea03f7bc">SDL_SYSTEM_CURSOR_HAND</a>, </div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  SDL_NUM_SYSTEM_CURSORS</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> } <a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732">SDL_SystemCursor</a>;</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">/* Function prototypes */</span></div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="SDL__video_8h.html#a55a196c7d3b8497538632c79ae1e6392">SDL_Window</a> * SDLCALL <a class="code" href="SDL__mouse_8h.html#af30def76b002152366831b21e3d95066">SDL_GetMouseFocus</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="SDL__stdinc_8h.html#add440eff171ea5f55cb00c4a9ab8672d">Uint32</a> SDLCALL <a class="code" href="SDL__mouse_8h.html#a1561f413546c0e4f5f44a8f094926575">SDL_GetMouseState</a>(<span class="keywordtype">int</span> *x, <span class="keywordtype">int</span> *y);</div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">extern</span> DECLSPEC <a class="code" href="SDL__stdinc_8h.html#add440eff171ea5f55cb00c4a9ab8672d">Uint32</a> SDLCALL <a class="code" href="SDL__mouse_8h.html#a8cf9b519050e3e871f5e59f03b38b6e1">SDL_GetRelativeMouseState</a>(<span class="keywordtype">int</span> *x, <span class="keywordtype">int</span> *y);</div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="SDL__mouse_8h.html#a2f2259cdf30272b3c4cc1e3236cb8071">SDL_WarpMouseInWindow</a>(<a class="code" href="SDL__video_8h.html#a55a196c7d3b8497538632c79ae1e6392">SDL_Window</a> * window,</div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__mouse_8h.html#ad7b3533784e0aa34cdf1c5f232817206">SDL_SetRelativeMouseMode</a>(SDL_bool enabled);</div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="keyword">extern</span> DECLSPEC SDL_bool SDLCALL <a class="code" href="SDL__mouse_8h.html#ae97aaf1682b3a6b62214dda1dda9b212">SDL_GetRelativeMouseMode</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">extern</span> DECLSPEC SDL_Cursor *SDLCALL <a class="code" href="SDL__mouse_8h.html#a4331ebf38e2f75f6cde88ce668e5650f">SDL_CreateCursor</a>(<span class="keyword">const</span> <a class="code" href="SDL__stdinc_8h.html#a2944638813a090aa23e62f4da842c3e2">Uint8</a> * data,</div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">const</span> <a class="code" href="SDL__stdinc_8h.html#a2944638813a090aa23e62f4da842c3e2">Uint8</a> * mask,</div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> hot_x,</div> <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordtype">int</span> hot_y);</div> <div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">extern</span> DECLSPEC SDL_Cursor *SDLCALL <a class="code" href="SDL__mouse_8h.html#a964bab3503f74f92a5504b4cd166b400">SDL_CreateColorCursor</a>(<a class="code" href="structSDL__Surface.html">SDL_Surface</a> *surface,</div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">int</span> hot_x,</div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">int</span> hot_y);</div> <div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="keyword">extern</span> DECLSPEC SDL_Cursor *SDLCALL <a class="code" href="SDL__mouse_8h.html#a217c89743b3da84b9656304f8e4ca51e">SDL_CreateSystemCursor</a>(<a class="code" href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732">SDL_SystemCursor</a> <span class="keywordtype">id</span>);</div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div> <div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="SDL__mouse_8h.html#a7c2971901f9a772be22152420aee275c">SDL_SetCursor</a>(SDL_Cursor * cursor);</div> <div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="keyword">extern</span> DECLSPEC SDL_Cursor *SDLCALL <a class="code" href="SDL__mouse_8h.html#a427ee5473e9ce3f4ad7a58035d7a6ffd">SDL_GetCursor</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div> <div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="keyword">extern</span> DECLSPEC SDL_Cursor *SDLCALL <a class="code" href="SDL__mouse_8h.html#a9b4d0726a2fa9aba7cf4f4286cf61257">SDL_GetDefaultCursor</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div> <div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="SDL__mouse_8h.html#ac17a8282f93d9d31e8e087236f0ecdd8">SDL_FreeCursor</a>(SDL_Cursor * cursor);</div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="SDL__mouse_8h.html#a00286ec15cd56dee1fd71ed4e6e7a585">SDL_ShowCursor</a>(<span class="keywordtype">int</span> toggle);</div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div> <div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="SDL__mouse_8h.html#af1bb0dead027146b766e4e319e22ea7b"> 203</a></span> <span class="preprocessor">#define SDL_BUTTON(X) (1 << ((X)-1))</span></div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="preprocessor">#define SDL_BUTTON_LEFT 1</span></div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="preprocessor">#define SDL_BUTTON_MIDDLE 2</span></div> <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="preprocessor">#define SDL_BUTTON_RIGHT 3</span></div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="preprocessor">#define SDL_BUTTON_X1 4</span></div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="preprocessor">#define SDL_BUTTON_X2 5</span></div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="preprocessor">#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)</span></div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor">#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)</span></div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="preprocessor">#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)</span></div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor">#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)</span></div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor">#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)</span></div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment">/* Ends C function definitions when using C++ */</span></div> <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> }</div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="preprocessor">#include "<a class="code" href="close__code_8h.html">close_code.h</a>"</span></div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="preprocessor">#endif </span><span class="comment">/* _SDL_mouse_h */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment">/* vi: set ts=4 sw=4 expandtab: */</span></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a5b70e5fee565ccf9a6a99f92c571b4ed"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a5b70e5fee565ccf9a6a99f92c571b4ed">SDL_SYSTEM_CURSOR_SIZENESW</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:54</div></div> <div class="ttc" id="SDL__stdinc_8h_html_a2944638813a090aa23e62f4da842c3e2"><div class="ttname"><a href="SDL__stdinc_8h.html#a2944638813a090aa23e62f4da842c3e2">Uint8</a></div><div class="ttdeci">uint8_t Uint8</div><div class="ttdoc">An unsigned 8-bit integer type. </div><div class="ttdef"><b>Definition:</b> SDL_stdinc.h:139</div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a5f3b85170a85ffb62aa477f9c31987fb"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a5f3b85170a85ffb62aa477f9c31987fb">SDL_SYSTEM_CURSOR_IBEAM</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:49</div></div> <div class="ttc" id="SDL__video_8h_html_a55a196c7d3b8497538632c79ae1e6392"><div class="ttname"><a href="SDL__video_8h.html#a55a196c7d3b8497538632c79ae1e6392">SDL_Window</a></div><div class="ttdeci">struct SDL_Window SDL_Window</div><div class="ttdoc">The type used to identify a window. </div><div class="ttdef"><b>Definition:</b> SDL_video.h:89</div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a0ea5055b7ef96598a39570abf365b9f9"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a0ea5055b7ef96598a39570abf365b9f9">SDL_SYSTEM_CURSOR_ARROW</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:48</div></div> <div class="ttc" id="SDL__stdinc_8h_html_add440eff171ea5f55cb00c4a9ab8672d"><div class="ttname"><a href="SDL__stdinc_8h.html#add440eff171ea5f55cb00c4a9ab8672d">Uint32</a></div><div class="ttdeci">uint32_t Uint32</div><div class="ttdoc">An unsigned 32-bit integer type. </div><div class="ttdef"><b>Definition:</b> SDL_stdinc.h:155</div></div> <div class="ttc" id="SDL__video_8h_html"><div class="ttname"><a href="SDL__video_8h.html">SDL_video.h</a></div></div> <div class="ttc" id="SDL__mouse_8h_html_a4331ebf38e2f75f6cde88ce668e5650f"><div class="ttname"><a href="SDL__mouse_8h.html#a4331ebf38e2f75f6cde88ce668e5650f">SDL_CreateCursor</a></div><div class="ttdeci">DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor(const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)</div><div class="ttdoc">Create a cursor, using the specified bitmap data and mask (in MSB format). </div></div> <div class="ttc" id="SDL__mouse_8h_html_a217c89743b3da84b9656304f8e4ca51e"><div class="ttname"><a href="SDL__mouse_8h.html#a217c89743b3da84b9656304f8e4ca51e">SDL_CreateSystemCursor</a></div><div class="ttdeci">DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id)</div><div class="ttdoc">Create a system cursor. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a8ce5ae38a754042575234c8da72417e6"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a8ce5ae38a754042575234c8da72417e6">SDL_SYSTEM_CURSOR_WAIT</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:50</div></div> <div class="ttc" id="SDL__mouse_8h_html_ae97aaf1682b3a6b62214dda1dda9b212"><div class="ttname"><a href="SDL__mouse_8h.html#ae97aaf1682b3a6b62214dda1dda9b212">SDL_GetRelativeMouseMode</a></div><div class="ttdeci">DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void)</div><div class="ttdoc">Query whether relative mouse mode is enabled. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a09cd11742bffaafbd1073afeea03f7bc"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a09cd11742bffaafbd1073afeea03f7bc">SDL_SYSTEM_CURSOR_HAND</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:59</div></div> <div class="ttc" id="SDL__mouse_8h_html_a2f2259cdf30272b3c4cc1e3236cb8071"><div class="ttname"><a href="SDL__mouse_8h.html#a2f2259cdf30272b3c4cc1e3236cb8071">SDL_WarpMouseInWindow</a></div><div class="ttdeci">DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_Window *window, int x, int y)</div><div class="ttdoc">Moves the mouse to the given position within the window. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732ae18ee52eb9724301950db552c953e48e"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732ae18ee52eb9724301950db552c953e48e">SDL_SYSTEM_CURSOR_CROSSHAIR</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:51</div></div> <div class="ttc" id="begin__code_8h_html"><div class="ttname"><a href="begin__code_8h.html">begin_code.h</a></div></div> <div class="ttc" id="SDL__mouse_8h_html_a1561f413546c0e4f5f44a8f094926575"><div class="ttname"><a href="SDL__mouse_8h.html#a1561f413546c0e4f5f44a8f094926575">SDL_GetMouseState</a></div><div class="ttdeci">DECLSPEC Uint32 SDLCALL SDL_GetMouseState(int *x, int *y)</div><div class="ttdoc">Retrieve the current state of the mouse. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a0eb8a498162417265c0ec79c1eacb30e"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a0eb8a498162417265c0ec79c1eacb30e">SDL_SYSTEM_CURSOR_SIZENWSE</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:53</div></div> <div class="ttc" id="SDL__mouse_8h_html_af30def76b002152366831b21e3d95066"><div class="ttname"><a href="SDL__mouse_8h.html#af30def76b002152366831b21e3d95066">SDL_GetMouseFocus</a></div><div class="ttdeci">DECLSPEC SDL_Window *SDLCALL SDL_GetMouseFocus(void)</div><div class="ttdoc">Get the window which currently has mouse focus. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a8cf9b519050e3e871f5e59f03b38b6e1"><div class="ttname"><a href="SDL__mouse_8h.html#a8cf9b519050e3e871f5e59f03b38b6e1">SDL_GetRelativeMouseState</a></div><div class="ttdeci">DECLSPEC Uint32 SDLCALL SDL_GetRelativeMouseState(int *x, int *y)</div><div class="ttdoc">Retrieve the relative state of the mouse. </div></div> <div class="ttc" id="SDL__stdinc_8h_html"><div class="ttname"><a href="SDL__stdinc_8h.html">SDL_stdinc.h</a></div></div> <div class="ttc" id="structSDL__Surface_html"><div class="ttname"><a href="structSDL__Surface.html">SDL_Surface</a></div><div class="ttdoc">A collection of pixels used in software blitting. </div><div class="ttdef"><b>Definition:</b> SDL_surface.h:69</div></div> <div class="ttc" id="SDL__mouse_8h_html_a00286ec15cd56dee1fd71ed4e6e7a585"><div class="ttname"><a href="SDL__mouse_8h.html#a00286ec15cd56dee1fd71ed4e6e7a585">SDL_ShowCursor</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_ShowCursor(int toggle)</div><div class="ttdoc">Toggle whether or not the cursor is shown. </div></div> <div class="ttc" id="close__code_8h_html"><div class="ttname"><a href="close__code_8h.html">close_code.h</a></div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a71fe25cd68c411ca52370bacc40b2764"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a71fe25cd68c411ca52370bacc40b2764">SDL_SYSTEM_CURSOR_WAITARROW</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:52</div></div> <div class="ttc" id="SDL__error_8h_html"><div class="ttname"><a href="SDL__error_8h.html">SDL_error.h</a></div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732">SDL_SystemCursor</a></div><div class="ttdeci">SDL_SystemCursor</div><div class="ttdoc">Cursor types for SDL_CreateSystemCursor. </div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:46</div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a88849f7320ea2bf629e05a06c6ff8e20"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a88849f7320ea2bf629e05a06c6ff8e20">SDL_SYSTEM_CURSOR_SIZEALL</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:57</div></div> <div class="ttc" id="SDL__mouse_8h_html_a9b4d0726a2fa9aba7cf4f4286cf61257"><div class="ttname"><a href="SDL__mouse_8h.html#a9b4d0726a2fa9aba7cf4f4286cf61257">SDL_GetDefaultCursor</a></div><div class="ttdeci">DECLSPEC SDL_Cursor *SDLCALL SDL_GetDefaultCursor(void)</div><div class="ttdoc">Return the default cursor. </div></div> <div class="ttc" id="SDL__mouse_8h_html_ac17a8282f93d9d31e8e087236f0ecdd8"><div class="ttname"><a href="SDL__mouse_8h.html#ac17a8282f93d9d31e8e087236f0ecdd8">SDL_FreeCursor</a></div><div class="ttdeci">DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor *cursor)</div><div class="ttdoc">Frees a cursor created with SDL_CreateCursor(). </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a70a8b0dec44a0f63d7af72e649de3b62"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a70a8b0dec44a0f63d7af72e649de3b62">SDL_SYSTEM_CURSOR_NO</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:58</div></div> <div class="ttc" id="SDL__mouse_8h_html_a7c2971901f9a772be22152420aee275c"><div class="ttname"><a href="SDL__mouse_8h.html#a7c2971901f9a772be22152420aee275c">SDL_SetCursor</a></div><div class="ttdeci">DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor *cursor)</div><div class="ttdoc">Set the active cursor. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a964bab3503f74f92a5504b4cd166b400"><div class="ttname"><a href="SDL__mouse_8h.html#a964bab3503f74f92a5504b4cd166b400">SDL_CreateColorCursor</a></div><div class="ttdeci">DECLSPEC SDL_Cursor *SDLCALL SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)</div><div class="ttdoc">Create a color cursor. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732a04d6abe3f01b1c4b8d77af1b2ef5e4e9"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732a04d6abe3f01b1c4b8d77af1b2ef5e4e9">SDL_SYSTEM_CURSOR_SIZENS</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:56</div></div> <div class="ttc" id="SDL__mouse_8h_html_ad7b3533784e0aa34cdf1c5f232817206"><div class="ttname"><a href="SDL__mouse_8h.html#ad7b3533784e0aa34cdf1c5f232817206">SDL_SetRelativeMouseMode</a></div><div class="ttdeci">DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled)</div><div class="ttdoc">Set relative mouse mode. </div></div> <div class="ttc" id="SDL__mouse_8h_html_a3e8083d1d8ce4c5a1ba76bfc2be8e732aa2f663333ca851ce0f40f8f8d2c2a731"><div class="ttname"><a href="SDL__mouse_8h.html#a3e8083d1d8ce4c5a1ba76bfc2be8e732aa2f663333ca851ce0f40f8f8d2c2a731">SDL_SYSTEM_CURSOR_SIZEWE</a></div><div class="ttdef"><b>Definition:</b> SDL_mouse.h:55</div></div> <div class="ttc" id="SDL__mouse_8h_html_a427ee5473e9ce3f4ad7a58035d7a6ffd"><div class="ttname"><a href="SDL__mouse_8h.html#a427ee5473e9ce3f4ad7a58035d7a6ffd">SDL_GetCursor</a></div><div class="ttdeci">DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void)</div><div class="ttdoc">Return the active cursor. </div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu Oct 16 2014 16:33:08 for My Project by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.8 </small></address> </body> </html>