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

📄 wg__message_8h-source.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>wg_message.h Source File</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>wg_message.h</h1><div class="fragment"><pre>00001 <span class="comment">// wg_message.h</span>00002 <span class="comment">//</span>00003 <span class="comment">// CMessage interface</span>00004 <span class="comment">//</span>00005 <span class="comment">//</span>00006 <span class="comment">// Copyright (c) 2002 Rob Wiskow</span>00007 <span class="comment">// rob-dev@boxedchaos.com</span>00008 <span class="comment">//</span>00009 <span class="comment">// This library is free software; you can redistribute it and/or</span>00010 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>00011 <span class="comment">// License as published by the Free Software Foundation; either</span>00012 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>00013 <span class="comment">//</span>00014 <span class="comment">// This library is distributed in the hope that it will be useful,</span>00015 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>00016 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>00017 <span class="comment">// Lesser General Public License for more details.</span>00018 <span class="comment">//</span>00019 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>00020 <span class="comment">// License along with this library; if not, write to the Free Software</span>00021 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>00022 <span class="comment">//</span>00023 00024 00025 <span class="preprocessor">#ifndef _WG_MESSAGE_H_</span>00026 <span class="preprocessor"></span><span class="preprocessor">#define _WG_MESSAGE_H_</span>00027 <span class="preprocessor"></span>00028 <span class="preprocessor">#include "wg_point.h"</span>00029 <span class="preprocessor">#include "wg_rect.h"</span>00030 <span class="preprocessor">#include "SDL.h"</span>00031 <span class="preprocessor">#include &lt;string&gt;</span>00032 00033 00034 <span class="keyword">namespace </span>wGui00035 {00036 <span class="comment">// Forward declarations</span>00037 <span class="keyword">class </span>CMessageClient;00038 00040 00043 <a name="l00044"></a><a class="code" href="classwGui_1_1CMessage.html">00044</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1CMessage.html">CMessage</a>00045 {00046 <span class="keyword">public</span>:<a name="l00048"></a><a class="code" href="classwGui_1_1CMessage.html#s16">00048</a>      <span class="keyword">enum</span> <a class="code" href="classwGui_1_1CMessage.html#s16">EMessageType</a>00049      {00050           <a class="code" href="classwGui_1_1CMessage.html#s16s0">UNKNOWN</a> = 0,  00051           <a class="code" href="classwGui_1_1CMessage.html#s16s1">KEYBOARD_KEYDOWN</a>,  00052           <a class="code" href="classwGui_1_1CMessage.html#s16s2">KEYBOARD_KEYUP</a>,  00053           <a class="code" href="classwGui_1_1CMessage.html#s16s3">MOUSE_BUTTONDOWN</a>,  00054           <a class="code" href="classwGui_1_1CMessage.html#s16s4">MOUSE_BUTTONUP</a>,  00055           <a class="code" href="classwGui_1_1CMessage.html#s16s5">MOUSE_MOVE</a>,  00056           <a class="code" href="classwGui_1_1CMessage.html#s16s6">CTRL_LCLICK</a>,  00057           <a class="code" href="classwGui_1_1CMessage.html#s16s7">CTRL_RCLICK</a>,  00058           <a class="code" href="classwGui_1_1CMessage.html#s16s8">CTRL_MCLICK</a>,  00059           <a class="code" href="classwGui_1_1CMessage.html#s16s9">CTRL_VALUECHANGE</a>,  00060           <a class="code" href="classwGui_1_1CMessage.html#s16s10">CTRL_VALUECHANGING</a>,  00061           <a class="code" href="classwGui_1_1CMessage.html#s16s11">CTRL_RESIZE</a>,  00062           <a class="code" href="classwGui_1_1CMessage.html#s16s12">CTRL_TIMER</a>,    00063           <a class="code" href="classwGui_1_1CMessage.html#s16s13">APP_PAINT</a>,  00064           <a class="code" href="classwGui_1_1CMessage.html#s16s14">APP_EXIT</a>,  00065           <a class="code" href="classwGui_1_1CMessage.html#s16s15">USER</a>  00066      };00067 00072      <a class="code" href="classwGui_1_1CMessage.html#a0">CMessage</a>(<span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessage.html#s16">EMessageType</a> <a class="code" href="classwGui_1_1CMessage.html#a2">MessageType</a>, <span class="keyword">const</span> CMessageClient* pDestination, <span class="keyword">const</span> CMessageClient* pSource);00073 <a name="l00075"></a><a class="code" href="classwGui_1_1CMessage.html#a1">00075</a>      <span class="keyword">virtual</span> <a class="code" href="classwGui_1_1CMessage.html#a1">~CMessage</a>(<span class="keywordtype">void</span>) { }00076 <a name="l00078"></a><a class="code" href="classwGui_1_1CMessage.html#a2">00078</a>      <span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessage.html#s16">EMessageType</a> <a class="code" href="classwGui_1_1CMessage.html#a2">MessageType</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <a class="code" href="classwGui_1_1CMessage.html#n0">m_MessageType</a>; }00079 <a name="l00081"></a><a class="code" href="classwGui_1_1CMessage.html#a3">00081</a>      <span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessageClient.html">CMessageClient</a>* <a class="code" href="classwGui_1_1CMessage.html#a3">Destination</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <a class="code" href="classwGui_1_1CMessage.html#n1">m_pDestination</a>; }00082 <a name="l00084"></a><a class="code" href="classwGui_1_1CMessage.html#a4">00084</a>      <span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessageClient.html">CMessageClient</a>* <a class="code" href="classwGui_1_1CMessage.html#a4">Source</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <a class="code" href="classwGui_1_1CMessage.html#n2">m_pSource</a>; }00085 00086 <span class="keyword">protected</span>:<a name="l00088"></a><a class="code" href="classwGui_1_1CMessage.html#n0">00088</a>      <span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessage.html#s16">EMessageType</a> <a class="code" href="classwGui_1_1CMessage.html#n0">m_MessageType</a>;00089 <a name="l00091"></a><a class="code" href="classwGui_1_1CMessage.html#n1">00091</a>      <span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessageClient.html">CMessageClient</a>* <a class="code" href="classwGui_1_1CMessage.html#n1">m_pDestination</a>;00092 <a name="l00094"></a><a class="code" href="classwGui_1_1CMessage.html#n2">00094</a>      <span class="keyword">const</span> <a class="code" href="classwGui_1_1CMessageClient.html">CMessageClient</a>* <a class="code" href="classwGui_1_1CMessage.html#n2">m_pSource</a>;

⌨️ 快捷键说明

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