⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classwgui_1_1cmousemessage.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
字号:
<!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>wGui::CMouseMessage class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; </center><hr><h1>wGui::CMouseMessage Class Reference</h1>Any messages generated from mouse input. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="wg__message_8h-source.html">wg_message.h</a>&gt;</code><p><p>Inheritance diagram for wGui::CMouseMessage:<p><center><img src="classwGui_1_1CMouseMessage.png" usemap="#wGui::CMouseMessage_map" border="0" alt=""></center><map name="wGui::CMouseMessage_map"><area href="classwGui_1_1CMessage.html" alt="wGui::CMessage" shape="rect" coords="0,0,144,24"></map><h2>Public Types</h2><ul><li>enum <a class="el" href="classwGui_1_1CMouseMessage.html#s6">EMouseButton</a> { <br>&nbsp;&nbsp;<a class="el" href="classwGui_1_1CMouseMessage.html#s6s0">NONE</a> =  0, <a class="el" href="classwGui_1_1CMouseMessage.html#s6s1">LEFT</a> =  1, <a class="el" href="classwGui_1_1CMouseMessage.html#s6s2">RIGHT</a> =  2, <a class="el" href="classwGui_1_1CMouseMessage.html#s6s3">MIDDLE</a> =  4, <br>&nbsp;&nbsp;<a class="el" href="classwGui_1_1CMouseMessage.html#s6s4">WHEELUP</a> =  8, <a class="el" href="classwGui_1_1CMouseMessage.html#s6s5">WHEELDOWN</a> =  16<br> }<dl class="el"><dd><font size=-1><em>Constants for all the mouse buttons, these values can be ORed together for more than one button.</em> <a href="#s6">More...</a><em><br><br></em></font></dl></ul><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CMouseMessage.html#a0">CMouseMessage</a> (const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> MessageType, const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *pDestination, const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *pSource, <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> <a class="el" href="classwGui_1_1CMouseMessage.html#m0">Point</a>, <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> <a class="el" href="classwGui_1_1CMouseMessage.html#m1">Relative</a>, unsigned int <a class="el" href="classwGui_1_1CMouseMessage.html#m2">Button</a>)</ul><h2>Static Public Methods</h2><ul><li><a name="d0" doxytag="wGui::CMouseMessage::TranslateSDLButton"></a>unsigned int <a class="el" href="classwGui_1_1CMouseMessage.html#d0">TranslateSDLButton</a> (Uint8 SDLButton)<dl class="el"><dd><font size=-1><em>Converst an SDLButton value into an EMouseButton value.<br><br></em></font></dl><li><a name="d1" doxytag="wGui::CMouseMessage::TranslateSDLButtonState"></a>unsigned int <a class="el" href="classwGui_1_1CMouseMessage.html#d1">TranslateSDLButtonState</a> (Uint8 SDLButtonState)<dl class="el"><dd><font size=-1><em>Converts an SDLButtonState value into an ORing of EMouseButton values.<br><br></em></font></dl></ul><h2>Data Fields</h2><ul><li><a name="m0" doxytag="wGui::CMouseMessage::Point"></a><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> <a class="el" href="classwGui_1_1CMouseMessage.html#m0">Point</a><dl class="el"><dd><font size=-1><em>The point where the mouse cursor was at the time of the message.<br><br></em></font></dl><li><a name="m1" doxytag="wGui::CMouseMessage::Relative"></a><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> <a class="el" href="classwGui_1_1CMouseMessage.html#m1">Relative</a><dl class="el"><dd><font size=-1><em>The relative movement of the cursor (only valid for MOUSE_MOVE messages).<br><br></em></font></dl><li><a name="m2" doxytag="wGui::CMouseMessage::Button"></a>unsigned int <a class="el" href="classwGui_1_1CMouseMessage.html#m2">Button</a><dl class="el"><dd><font size=-1><em>Any mouse buttons pressed.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Any messages generated from mouse input.<p><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00126">126</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<hr><h2>Member Enumeration Documentation</h2><a name="s6" doxytag="wGui::CMouseMessage::EMouseButton"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> enum wGui::CMouseMessage::EMouseButton      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constants for all the mouse buttons, these values can be ORed together for more than one button.<p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s6s0" doxytag="NONE"></a><em>NONE</em></em>&nbsp;</td><td>No mouse button.</td></tr><tr><td valign=top><em><a name="s6s1" doxytag="LEFT"></a><em>LEFT</em></em>&nbsp;</td><td>The left mouse button.</td></tr><tr><td valign=top><em><a name="s6s2" doxytag="RIGHT"></a><em>RIGHT</em></em>&nbsp;</td><td>The right mouse button.</td></tr><tr><td valign=top><em><a name="s6s3" doxytag="MIDDLE"></a><em>MIDDLE</em></em>&nbsp;</td><td>The middle mouse button.</td></tr><tr><td valign=top><em><a name="s6s4" doxytag="WHEELUP"></a><em>WHEELUP</em></em>&nbsp;</td><td>The mouse wheel moved up.</td></tr><tr><td valign=top><em><a name="s6s5" doxytag="WHEELDOWN"></a><em>WHEELDOWN</em></em>&nbsp;</td><td>The mouse wheel moved down.</td></tr></table></dl><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00130">130</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="wGui::CMouseMessage::CMouseMessage"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> wGui::CMouseMessage::CMouseMessage </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>MessageType</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pDestination</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pSource</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classwGui_1_1CPoint.html">CPoint</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Point</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classwGui_1_1CPoint.html">CPoint</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Relative</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Button</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Construct a new mouse message <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>MessageType</em>&nbsp;</td><td>The type of message being created </td></tr><tr><td valign=top><em>pDestination</em>&nbsp;</td><td>A pointer to the window that the message is destined for (0 for no specific destination, or to broadcast to all) </td></tr><tr><td valign=top><em>pSource</em>&nbsp;</td><td>A pointer to the window that created the message </td></tr><tr><td valign=top><em>Point</em>&nbsp;</td><td>The location of the mouse cursor </td></tr><tr><td valign=top><em>Relative</em>&nbsp;</td><td>The relative movement of the cursor (only valid for MOUSE_MOVE messages) </td></tr><tr><td valign=top><em>Button</em>&nbsp;</td><td>An OR of all the EMouseButton values indicating which mouse buttons are pressed </td></tr></table></dl><p>Definition at line <a class="el" href="wg__message_8cpp-source.html#l00053">53</a> of file <a class="el" href="wg__message_8cpp-source.html">wg_message.cpp</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__message_8h-source.html">wg_message.h</a><li><a class="el" href="wg__message_8cpp-source.html">wg_message.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:28 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -