<!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> <title>SFML - Simple and Fast Multimedia Library</title> <meta http-equiv="Content-Type" content="text/html;"/> <meta charset="utf-8"/> <!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>--> <link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> </head> <body> <div id="banner-container"> <div id="banner"> <span id="sfml">SFML 2.5.1</span> </div> </div> <div id="content"> <!-- Generated by Doxygen 1.8.14 --> <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="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>sf</b></li><li class="navelem"><a class="el" href="classsf_1_1Event.html">Event</a></li><li class="navelem"><a class="el" href="structsf_1_1Event_1_1MouseButtonEvent.html">MouseButtonEvent</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-attribs">Public Attributes</a> | <a href="structsf_1_1Event_1_1MouseButtonEvent-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">sf::Event::MouseButtonEvent Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="classsf_1_1Mouse.html" title="Give access to the real-time state of the mouse. ">Mouse</a> buttons events parameters (MouseButtonPressed, MouseButtonReleased) <a href="structsf_1_1Event_1_1MouseButtonEvent.html#details">More...</a></p> <p><code>#include <<a class="el" href="Event_8hpp_source.html">Event.hpp</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr class="memitem:a5f53725aa7b647705486eeb95f723024"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Mouse.html#a4fb128be433f9aafe66bc0c605daaa90">Mouse::Button</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structsf_1_1Event_1_1MouseButtonEvent.html#a5f53725aa7b647705486eeb95f723024">button</a></td></tr> <tr class="memdesc:a5f53725aa7b647705486eeb95f723024"><td class="mdescLeft"> </td><td class="mdescRight">Code of the button that has been pressed. <a href="#a5f53725aa7b647705486eeb95f723024">More...</a><br /></td></tr> <tr class="separator:a5f53725aa7b647705486eeb95f723024"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a49b937b311729174950787781aafcdc7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structsf_1_1Event_1_1MouseButtonEvent.html#a49b937b311729174950787781aafcdc7">x</a></td></tr> <tr class="memdesc:a49b937b311729174950787781aafcdc7"><td class="mdescLeft"> </td><td class="mdescRight">X position of the mouse pointer, relative to the left of the owner window. <a href="#a49b937b311729174950787781aafcdc7">More...</a><br /></td></tr> <tr class="separator:a49b937b311729174950787781aafcdc7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aae4735071868d4411d1782bf67619d64"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structsf_1_1Event_1_1MouseButtonEvent.html#aae4735071868d4411d1782bf67619d64">y</a></td></tr> <tr class="memdesc:aae4735071868d4411d1782bf67619d64"><td class="mdescLeft"> </td><td class="mdescRight">Y position of the mouse pointer, relative to the top of the owner window. <a href="#aae4735071868d4411d1782bf67619d64">More...</a><br /></td></tr> <tr class="separator:aae4735071868d4411d1782bf67619d64"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><a class="el" href="classsf_1_1Mouse.html" title="Give access to the real-time state of the mouse. ">Mouse</a> buttons events parameters (MouseButtonPressed, MouseButtonReleased) </p> <p class="definition">Definition at line <a class="el" href="Event_8hpp_source.html#l00095">95</a> of file <a class="el" href="Event_8hpp_source.html">Event.hpp</a>.</p> </div><h2 class="groupheader">Member Data Documentation</h2> <a id="a5f53725aa7b647705486eeb95f723024"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5f53725aa7b647705486eeb95f723024">◆ </a></span>button</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classsf_1_1Mouse.html#a4fb128be433f9aafe66bc0c605daaa90">Mouse::Button</a> sf::Event::MouseButtonEvent::button</td> </tr> </table> </div><div class="memdoc"> <p>Code of the button that has been pressed. </p> <p class="definition">Definition at line <a class="el" href="Event_8hpp_source.html#l00097">97</a> of file <a class="el" href="Event_8hpp_source.html">Event.hpp</a>.</p> </div> </div> <a id="a49b937b311729174950787781aafcdc7"></a> <h2 class="memtitle"><span class="permalink"><a href="#a49b937b311729174950787781aafcdc7">◆ </a></span>x</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int sf::Event::MouseButtonEvent::x</td> </tr> </table> </div><div class="memdoc"> <p>X position of the mouse pointer, relative to the left of the owner window. </p> <p class="definition">Definition at line <a class="el" href="Event_8hpp_source.html#l00098">98</a> of file <a class="el" href="Event_8hpp_source.html">Event.hpp</a>.</p> </div> </div> <a id="aae4735071868d4411d1782bf67619d64"></a> <h2 class="memtitle"><span class="permalink"><a href="#aae4735071868d4411d1782bf67619d64">◆ </a></span>y</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int sf::Event::MouseButtonEvent::y</td> </tr> </table> </div><div class="memdoc"> <p>Y position of the mouse pointer, relative to the top of the owner window. </p> <p class="definition">Definition at line <a class="el" href="Event_8hpp_source.html#l00099">99</a> of file <a class="el" href="Event_8hpp_source.html">Event.hpp</a>.</p> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="Event_8hpp_source.html">Event.hpp</a></li> </ul> </div><!-- contents --> </div> <div id="footer-container"> <div id="footer"> SFML is licensed under the terms and conditions of the <a href="https://www.sfml-dev.org/license.php">zlib/png license</a>.<br> Copyright © Laurent Gomila :: Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> :: </div> </div> </body> </html>