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

📄 wg__resources_8h-source.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>wg_resources.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_resources.h</h1><div class="fragment"><pre>00001 <span class="comment">// wg_resources.h</span>00002 <span class="comment">//</span>00003 <span class="comment">// wgui resources</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_RESOURCES_H_</span>00026 <span class="preprocessor"></span><span class="preprocessor">#define _WG_RESOURCES_H_</span>00027 <span class="preprocessor"></span>00028 <span class="preprocessor">#include "SDL.h"</span>00029 <span class="preprocessor">#include "wg_resource_handle.h"</span>00030 <span class="preprocessor">#include "wg_color.h"</span>00031 00032 00033 <span class="keyword">namespace </span>wGui00034 {00035 00037 <span class="keyword">enum</span> EwgResourceId {00038 <span class="comment">// Bitmaps</span>00039      WGRES_UP_ARROW_BITMAP = 1,00040      WGRES_DOWN_ARROW_BITMAP,00041      WGRES_LEFT_ARROW_BITMAP,00042      WGRES_RIGHT_ARROW_BITMAP,00043      WGRES_X_BITMAP,00044      WGRES_MAXIMIZE_UNMAXED_BITMAP,00045      WGRES_MAXIMIZE_MAXED_BITMAP,00046      WGRES_MINIMIZE_BITMAP,00047 00048 <span class="comment">// Strings</span>00049      WGRES_WGUI_STRING,00050      WGRES_VERSION_STRING,00051 00052 <span class="comment">// Cursors</span>00053      WGRES_POINTER_CURSOR,00054      WGRES_IBEAM_CURSOR,00055      WGRES_WAIT_CURSOR00056 };00057 00058 00059 <span class="comment">// Since the internal resources will probably be used fairly frequently,</span>00060 <span class="comment">// we cheat a little and keep a clone of any that have been instantiated for the lifetime for the program</span>00061 <span class="comment">//static std::set&lt;CResourceHandle&gt; wgInternalResourcePool;</span>00062 00063 00065 <a name="l00066"></a><a class="code" href="classwGui_1_1CwgBitmapResourceHandle.html">00066</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1CwgBitmapResourceHandle.html">CwgBitmapResourceHandle</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1CBitmapResourceHandle.html">CBitmapResourceHandle</a>00067 {00068 <span class="keyword">public</span>:00071      <a class="code" href="classwGui_1_1CwgBitmapResourceHandle.html#a0">CwgBitmapResourceHandle</a>(EwgResourceId resId);00072 00073 <span class="keyword">private</span>:00074      SDL_Surface* DrawBitmap(<a class="code" href="classwGui_1_1CRGBColor.html">CRGBColor</a> Data[], <span class="keywordtype">int</span> iDataLength, <span class="keywordtype">int</span> iWidth, <span class="keywordtype">int</span> iHeight) <span class="keyword">const</span>;00075 };00076 00077 00079 <a name="l00080"></a><a class="code" href="classwGui_1_1CwgStringResourceHandle.html">00080</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1CwgStringResourceHandle.html">CwgStringResourceHandle</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1CStringResourceHandle.html">CStringResourceHandle</a>00081 {00082 <span class="keyword">public</span>:00085      <a class="code" href="classwGui_1_1CwgStringResourceHandle.html#a0">CwgStringResourceHandle</a>(EwgResourceId resId);00086 };00087 00088 00090 <a name="l00091"></a><a class="code" href="classwGui_1_1CwgCursorResourceHandle.html">00091</a> <span class="keyword">class </span><a class="code" href="classwGui_1_1CwgCursorResourceHandle.html">CwgCursorResourceHandle</a> : <span class="keyword">public</span> <a class="code" href="classwGui_1_1CCursorResourceHandle.html">CCursorResourceHandle</a>00092 {00093 <span class="keyword">public</span>:00096      <a class="code" href="classwGui_1_1CwgCursorResourceHandle.html#a0">CwgCursorResourceHandle</a>(EwgResourceId resId);00097 00098 <span class="keyword">private</span>:00099      <span class="keyword">enum</span> ECursorDataMask {00100           O, <span class="comment">// empty</span>00101           M, <span class="comment">// masked</span>00102           D, <span class="comment">// data</span>00103           X <span class="comment">// data and mask</span>00104      };00105 00106      SDL_Cursor* CreateCursor(<span class="keyword">const</span> <span class="keywordtype">char</span> DataIn[], <span class="keywordtype">int</span> iDataLength, <span class="keywordtype">int</span> iWidth, <span class="keywordtype">int</span> iHeight, <span class="keywordtype">int</span> iXHotSpot, <span class="keywordtype">int</span> iYHotSpot) <span class="keyword">const</span>;00107 };00108 00109 }00110 00111 <span class="preprocessor">#endif  // _WG_RESOURCES_H_</span>00112 <span class="preprocessor"></span></pre></div><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:25 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 + -