gosu 0.7.13 → 0.7.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.txt +4 -2
- data/Gosu/Audio.hpp +8 -5
- data/Gosu/Font.hpp +5 -3
- data/Gosu/Gosu.hpp +6 -0
- data/Gosu/Graphics.hpp +6 -13
- data/Gosu/GraphicsBase.hpp +14 -3
- data/Gosu/IO.hpp +259 -255
- data/Gosu/Image.hpp +12 -12
- data/Gosu/ImageData.hpp +3 -0
- data/Gosu/Input.hpp +14 -2
- data/Gosu/Math.hpp +3 -2
- data/Gosu/RotFlip.hpp +125 -116
- data/Gosu/Sockets.hpp +139 -129
- data/Gosu/Text.hpp +4 -4
- data/Gosu/WinUtility.hpp +1 -1
- data/Gosu/Window.hpp +9 -5
- data/GosuImpl/Graphics/BitmapUtils.cpp +8 -8
- data/GosuImpl/Graphics/DrawOp.hpp +13 -14
- data/GosuImpl/Graphics/Graphics.cpp +3 -2
- data/GosuImpl/Graphics/Image.cpp +8 -8
- data/GosuImpl/Graphics/LargeImageData.cpp +8 -8
- data/GosuImpl/Graphics/Text.cpp +15 -3
- data/GosuImpl/{TextTTFWin.cpp → Graphics/TextTTFWin.cpp} +0 -0
- data/GosuImpl/Graphics/TextWin.cpp +36 -25
- data/GosuImpl/Graphics/Texture.cpp +2 -0
- data/GosuImpl/Iconv.hpp +1 -3
- data/GosuImpl/RubyGosu.swg +19 -10
- data/GosuImpl/RubyGosuStub.mm +40 -8
- data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +126 -0
- data/GosuImpl/RubyGosu_wrap.cxx +1601 -247
- data/GosuImpl/RubyGosu_wrap.h +1 -1
- data/GosuImpl/WindowWin.cpp +18 -6
- data/README.txt +5 -5
- data/Rakefile +27 -7
- data/linux/Makefile.in +1 -1
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +939 -350
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +66 -61
- data/mac/Gosu.xcodeproj/project.pbxproj +474 -92
- data/mac/RubyGosu Template-Info.plist b/data/mac/RubyGosu → App-Info.plist +0 -0
- data/reference/cpp/_audio_8hpp-source.html +171 -0
- data/reference/cpp/_audio_8hpp.html +96 -0
- data/reference/cpp/_auto_link_8hpp-source.html +84 -0
- data/reference/cpp/_auto_link_8hpp.html +83 -0
- data/reference/cpp/_bitmap_8hpp-source.html +130 -0
- data/reference/cpp/_bitmap_8hpp.html +107 -0
- data/reference/{ButtonsMac_8hpp-source.html → cpp/_buttons_mac_8hpp-source.html} +60 -14
- data/reference/cpp/_buttons_mac_8hpp.html +233 -0
- data/reference/cpp/_color_8hpp-source.html +215 -0
- data/reference/cpp/_color_8hpp.html +119 -0
- data/reference/cpp/_directories_8hpp-source.html +88 -0
- data/reference/cpp/_directories_8hpp.html +96 -0
- data/reference/cpp/_font_8hpp-source.html +111 -0
- data/reference/cpp/_font_8hpp.html +87 -0
- data/reference/{Fwd_8hpp-source.html → cpp/_fwd_8hpp-source.html} +59 -13
- data/reference/cpp/_fwd_8hpp.html +83 -0
- data/reference/cpp/_gosu_8hpp-source.html +96 -0
- data/reference/cpp/_gosu_8hpp.html +83 -0
- data/reference/cpp/_graphics_8hpp-source.html +134 -0
- data/reference/cpp/_graphics_8hpp.html +94 -0
- data/reference/cpp/_graphics_base_8hpp-source.html +115 -0
- data/reference/cpp/_graphics_base_8hpp.html +120 -0
- data/reference/cpp/_i_o_8hpp-source.html +301 -0
- data/reference/cpp/_i_o_8hpp.html +122 -0
- data/reference/cpp/_image_8hpp-source.html +172 -0
- data/reference/cpp/_image_8hpp.html +96 -0
- data/reference/cpp/_image_data_8hpp-source.html +108 -0
- data/reference/cpp/_image_data_8hpp.html +90 -0
- data/reference/cpp/_input_8hpp-source.html +182 -0
- data/reference/cpp/_input_8hpp.html +102 -0
- data/reference/cpp/_math_8hpp-source.html +147 -0
- data/reference/cpp/_math_8hpp.html +139 -0
- data/reference/{Platform_8hpp-source.html → cpp/_platform_8hpp-source.html} +61 -15
- data/reference/cpp/_platform_8hpp.html +136 -0
- data/reference/cpp/_rot_flip_8hpp-source.html +184 -0
- data/reference/cpp/_rot_flip_8hpp.html +123 -0
- data/reference/cpp/_sockets_8hpp-source.html +174 -0
- data/reference/cpp/_sockets_8hpp.html +117 -0
- data/reference/cpp/_text_8hpp-source.html +102 -0
- data/reference/cpp/_text_8hpp.html +99 -0
- data/reference/cpp/_text_input_8hpp-source.html +110 -0
- data/reference/cpp/_text_input_8hpp.html +87 -0
- data/reference/cpp/_timing_8hpp-source.html +82 -0
- data/reference/cpp/_timing_8hpp.html +90 -0
- data/reference/cpp/_utility_8hpp-source.html +89 -0
- data/reference/cpp/_utility_8hpp.html +96 -0
- data/reference/cpp/_win_utility_8hpp-source.html +125 -0
- data/reference/cpp/_win_utility_8hpp.html +116 -0
- data/reference/cpp/_window_8hpp-source.html +157 -0
- data/reference/cpp/_window_8hpp.html +87 -0
- data/reference/cpp/annotated.html +98 -0
- data/reference/cpp/class_gosu_1_1_audio-members.html +74 -0
- data/reference/cpp/class_gosu_1_1_audio.html +132 -0
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_bitmap.html +501 -0
- data/reference/cpp/class_gosu_1_1_buffer-members.html +84 -0
- data/reference/cpp/class_gosu_1_1_buffer.html +346 -0
- data/reference/{classGosu_1_1Buffer.png → cpp/class_gosu_1_1_buffer.png} +0 -0
- data/reference/cpp/class_gosu_1_1_button-members.html +76 -0
- data/reference/cpp/class_gosu_1_1_button.html +195 -0
- data/reference/cpp/class_gosu_1_1_color-members.html +96 -0
- data/reference/cpp/class_gosu_1_1_color.html +758 -0
- data/reference/cpp/class_gosu_1_1_comm_socket-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_comm_socket.html +505 -0
- data/reference/cpp/class_gosu_1_1_file-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_file.html +275 -0
- data/reference/{classGosu_1_1File.png → cpp/class_gosu_1_1_file.png} +0 -0
- data/reference/cpp/class_gosu_1_1_font-members.html +79 -0
- data/reference/{classGosu_1_1Font.html → cpp/class_gosu_1_1_font.html} +207 -66
- data/reference/cpp/class_gosu_1_1_graphics-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_graphics.html +768 -0
- data/reference/cpp/class_gosu_1_1_image-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_image.html +771 -0
- data/reference/cpp/class_gosu_1_1_image_data-members.html +77 -0
- data/reference/cpp/class_gosu_1_1_image_data.html +281 -0
- data/reference/cpp/class_gosu_1_1_input-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_input.html +417 -0
- data/reference/cpp/class_gosu_1_1_listener_socket-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_listener_socket.html +221 -0
- data/reference/cpp/class_gosu_1_1_message_socket-members.html +80 -0
- data/reference/{classGosu_1_1MessageSocket.html → cpp/class_gosu_1_1_message_socket.html} +115 -43
- data/reference/cpp/class_gosu_1_1_reader-members.html +80 -0
- data/reference/cpp/class_gosu_1_1_reader.html +322 -0
- data/reference/cpp/class_gosu_1_1_resource-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_resource.html +305 -0
- data/reference/{classGosu_1_1Resource.png → cpp/class_gosu_1_1_resource.png} +0 -0
- data/reference/cpp/class_gosu_1_1_rot_flip-members.html +83 -0
- data/reference/cpp/class_gosu_1_1_rot_flip.html +347 -0
- data/reference/cpp/class_gosu_1_1_sample-members.html +77 -0
- data/reference/{classGosu_1_1Sample.html → cpp/class_gosu_1_1_sample.html} +99 -32
- data/reference/cpp/class_gosu_1_1_sample_instance-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_sample_instance.html +317 -0
- data/reference/cpp/class_gosu_1_1_song-members.html +86 -0
- data/reference/{classGosu_1_1Song.html → cpp/class_gosu_1_1_song.html} +152 -68
- data/reference/cpp/class_gosu_1_1_text_input-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_text_input.html +227 -0
- data/reference/cpp/class_gosu_1_1_window-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_window.html +533 -0
- data/reference/cpp/class_gosu_1_1_writer-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_writer.html +292 -0
- data/reference/cpp/classes.html +86 -0
- data/reference/cpp/closed.gif +0 -0
- data/reference/cpp/cpp.css +155 -0
- data/reference/{doxygen.png → cpp/doxygen.png} +0 -0
- data/reference/cpp/files.html +97 -0
- data/reference/cpp/functions.html +127 -0
- data/reference/cpp/functions_0x62.html +137 -0
- data/reference/cpp/functions_0x63.html +140 -0
- data/reference/cpp/functions_0x64.html +142 -0
- data/reference/cpp/functions_0x65.html +119 -0
- data/reference/cpp/functions_0x66.html +137 -0
- data/reference/cpp/functions_0x67.html +131 -0
- data/reference/cpp/functions_0x68.html +121 -0
- data/reference/cpp/functions_0x69.html +123 -0
- data/reference/cpp/functions_0x6b.html +115 -0
- data/reference/cpp/functions_0x6c.html +117 -0
- data/reference/cpp/functions_0x6d.html +125 -0
- data/reference/cpp/functions_0x6e.html +117 -0
- data/reference/cpp/functions_0x6f.html +126 -0
- data/reference/cpp/functions_0x70.html +136 -0
- data/reference/cpp/functions_0x72.html +154 -0
- data/reference/cpp/functions_0x73.html +179 -0
- data/reference/cpp/functions_0x74.html +127 -0
- data/reference/cpp/functions_0x75.html +121 -0
- data/reference/cpp/functions_0x76.html +117 -0
- data/reference/cpp/functions_0x77.html +129 -0
- data/reference/cpp/functions_0x78.html +115 -0
- data/reference/cpp/functions_0x79.html +115 -0
- data/reference/cpp/functions_0x7e.html +143 -0
- data/reference/cpp/functions_enum.html +87 -0
- data/reference/cpp/functions_eval.html +89 -0
- data/reference/cpp/functions_func.html +125 -0
- data/reference/cpp/functions_func_0x62.html +133 -0
- data/reference/cpp/functions_func_0x63.html +136 -0
- data/reference/cpp/functions_func_0x64.html +140 -0
- data/reference/cpp/functions_func_0x65.html +117 -0
- data/reference/cpp/functions_func_0x66.html +135 -0
- data/reference/cpp/functions_func_0x67.html +129 -0
- data/reference/cpp/functions_func_0x68.html +119 -0
- data/reference/cpp/functions_func_0x69.html +119 -0
- data/reference/cpp/functions_func_0x6b.html +113 -0
- data/reference/cpp/functions_func_0x6c.html +113 -0
- data/reference/cpp/functions_func_0x6d.html +123 -0
- data/reference/cpp/functions_func_0x6e.html +115 -0
- data/reference/cpp/functions_func_0x6f.html +113 -0
- data/reference/cpp/functions_func_0x70.html +134 -0
- data/reference/cpp/functions_func_0x72.html +150 -0
- data/reference/cpp/functions_func_0x73.html +173 -0
- data/reference/cpp/functions_func_0x74.html +119 -0
- data/reference/cpp/functions_func_0x75.html +119 -0
- data/reference/cpp/functions_func_0x76.html +115 -0
- data/reference/cpp/functions_func_0x77.html +127 -0
- data/reference/cpp/functions_func_0x7e.html +141 -0
- data/reference/cpp/functions_type.html +87 -0
- data/reference/cpp/functions_vars.html +112 -0
- data/reference/cpp/globals.html +84 -0
- data/reference/cpp/globals_defs.html +84 -0
- data/reference/cpp/hierarchy.html +100 -0
- data/reference/cpp/index.html +66 -0
- data/reference/cpp/open.gif +0 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +77 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +185 -0
- data/reference/cpp/struct_gosu_1_1_touch-members.html +75 -0
- data/reference/cpp/struct_gosu_1_1_touch.html +153 -0
- data/reference/{tab_b.gif → cpp/tab_b.gif} +0 -0
- data/reference/{tab_l.gif → cpp/tab_l.gif} +0 -0
- data/reference/{tab_r.gif → cpp/tab_r.gif} +0 -0
- data/reference/{tabs.css → cpp/tabs.css} +5 -2
- data/windows/Gosu.sln +5 -0
- data/windows/Gosu.vcproj +3 -3
- data/windows/RubyGosu.vcproj +103 -1
- metadata +178 -176
- data/reference/Async_8hpp-source.html +0 -70
- data/reference/Audio_8hpp-source.html +0 -125
- data/reference/Audio_8hpp.html +0 -50
- data/reference/AutoLink_8hpp-source.html +0 -38
- data/reference/AutoLink_8hpp.html +0 -34
- data/reference/Bitmap_8hpp-source.html +0 -84
- data/reference/Bitmap_8hpp.html +0 -58
- data/reference/ButtonsWin_8hpp-source.html +0 -159
- data/reference/ButtonsX_8hpp-source.html +0 -160
- data/reference/Color_8hpp-source.html +0 -169
- data/reference/Color_8hpp.html +0 -85
- data/reference/Directories_8hpp-source.html +0 -42
- data/reference/Directories_8hpp.html +0 -46
- data/reference/Font_8hpp-source.html +0 -65
- data/reference/Font_8hpp.html +0 -41
- data/reference/Fwd_8hpp.html +0 -37
- data/reference/Gosu_8hpp-source.html +0 -49
- data/reference/Gosu_8hpp.html +0 -34
- data/reference/GraphicsBase_8hpp-source.html +0 -59
- data/reference/GraphicsBase_8hpp.html +0 -59
- data/reference/Graphics_8hpp-source.html +0 -99
- data/reference/Graphics_8hpp.html +0 -60
- data/reference/IO_8hpp-source.html +0 -255
- data/reference/IO_8hpp.html +0 -74
- data/reference/ImageData_8hpp-source.html +0 -62
- data/reference/ImageData_8hpp.html +0 -43
- data/reference/Image_8hpp-source.html +0 -126
- data/reference/Image_8hpp.html +0 -48
- data/reference/Input_8hpp-source.html +0 -131
- data/reference/Input_8hpp.html +0 -56
- data/reference/Math_8hpp-source.html +0 -101
- data/reference/Math_8hpp.html +0 -78
- data/reference/Platform_8hpp.html +0 -73
- data/reference/RotFlip_8hpp-source.html +0 -138
- data/reference/RotFlip_8hpp.html +0 -77
- data/reference/Sockets_8hpp-source.html +0 -130
- data/reference/Sockets_8hpp.html +0 -66
- data/reference/TextInput_8hpp-source.html +0 -64
- data/reference/TextInput_8hpp.html +0 -41
- data/reference/Text_8hpp-source.html +0 -56
- data/reference/Text_8hpp.html +0 -48
- data/reference/Timing_8hpp-source.html +0 -36
- data/reference/Timing_8hpp.html +0 -42
- data/reference/Utility_8hpp-source.html +0 -43
- data/reference/Utility_8hpp.html +0 -46
- data/reference/WinUtility_8hpp-source.html +0 -79
- data/reference/WinUtility_8hpp.html +0 -64
- data/reference/Window_8hpp-source.html +0 -110
- data/reference/Window_8hpp.html +0 -41
- data/reference/annotated.html +0 -51
- data/reference/classGosu_1_1Audio-members.html +0 -34
- data/reference/classGosu_1_1Audio.html +0 -46
- data/reference/classGosu_1_1Bitmap-members.html +0 -45
- data/reference/classGosu_1_1Bitmap.html +0 -266
- data/reference/classGosu_1_1Buffer-members.html +0 -44
- data/reference/classGosu_1_1Buffer.html +0 -78
- data/reference/classGosu_1_1Button-members.html +0 -36
- data/reference/classGosu_1_1Button.html +0 -143
- data/reference/classGosu_1_1Color-members.html +0 -56
- data/reference/classGosu_1_1Color.html +0 -387
- data/reference/classGosu_1_1File-members.html +0 -41
- data/reference/classGosu_1_1File.html +0 -69
- data/reference/classGosu_1_1Font-members.html +0 -39
- data/reference/classGosu_1_1Graphics-members.html +0 -50
- data/reference/classGosu_1_1Graphics.html +0 -234
- data/reference/classGosu_1_1Image-members.html +0 -45
- data/reference/classGosu_1_1Image.html +0 -518
- data/reference/classGosu_1_1ImageData-members.html +0 -37
- data/reference/classGosu_1_1ImageData.html +0 -60
- data/reference/classGosu_1_1Input-members.html +0 -45
- data/reference/classGosu_1_1Input.html +0 -256
- data/reference/classGosu_1_1MessageSocket-members.html +0 -40
- data/reference/classGosu_1_1Resource-members.html +0 -39
- data/reference/classGosu_1_1Resource.html +0 -116
- data/reference/classGosu_1_1Sample-members.html +0 -37
- data/reference/classGosu_1_1SampleInstance-members.html +0 -41
- data/reference/classGosu_1_1SampleInstance.html +0 -178
- data/reference/classGosu_1_1Song-members.html +0 -46
- data/reference/classGosu_1_1TextInput-members.html +0 -38
- data/reference/classGosu_1_1TextInput.html +0 -121
- data/reference/classGosu_1_1Window-members.html +0 -50
- data/reference/classGosu_1_1Window.html +0 -289
- data/reference/doxyfile +0 -233
- data/reference/doxygen.css +0 -433
- data/reference/files.html +0 -54
- data/reference/functions.html +0 -249
- data/reference/functions_enum.html +0 -45
- data/reference/functions_func.html +0 -240
- data/reference/functions_vars.html +0 -47
- data/reference/hierarchy.html +0 -53
- data/reference/index.html +0 -26
- data/reference/namespaceGosu.html +0 -3363
- data/reference/namespaceGosu_1_1Colors.html +0 -70
- data/reference/namespaceGosu_1_1Win.html +0 -275
- data/reference/namespacemembers.html +0 -229
- data/reference/namespacemembers_enum.html +0 -52
- data/reference/namespacemembers_eval.html +0 -54
- data/reference/namespacemembers_func.html +0 -196
- data/reference/namespacemembers_type.html +0 -46
- data/reference/namespacemembers_vars.html +0 -48
- data/reference/namespaces.html +0 -35
@@ -1,36 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: Timing.hpp Source File</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
<h1>Timing.hpp</h1><a href="Timing_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
-
<a name="l00002"></a>00002
|
19
|
-
<a name="l00003"></a>00003
|
20
|
-
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_TIMING_HPP</span>
|
21
|
-
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_TIMING_HPP</span>
|
22
|
-
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
23
|
-
<a name="l00007"></a>00007 <span class="keyword">namespace </span>Gosu
|
24
|
-
<a name="l00008"></a>00008 {
|
25
|
-
<a name="l00010"></a>00010 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu.html#93f9b0118e9708a760148c8c5da481d2" title="Freezes the current thread for at least the specified time.">sleep</a>(<span class="keywordtype">unsigned</span> <a class="code" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db" title="Incrementing, possibly wrapping millisecond timer.">milliseconds</a>);
|
26
|
-
<a name="l00011"></a>00011
|
27
|
-
<a name="l00013"></a>00013 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db" title="Incrementing, possibly wrapping millisecond timer.">milliseconds</a>();
|
28
|
-
<a name="l00014"></a>00014 }
|
29
|
-
<a name="l00015"></a>00015
|
30
|
-
<a name="l00016"></a>00016 <span class="preprocessor">#endif</span>
|
31
|
-
</pre></div></div>
|
32
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
33
|
-
<a href="http://www.doxygen.org/index.html">
|
34
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
35
|
-
</body>
|
36
|
-
</html>
|
data/reference/Timing_8hpp.html
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: Timing.hpp File Reference</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="contents">
|
19
|
-
<h1>Timing.hpp File Reference</h1>Functions for timing. <a href="#_details">More...</a>
|
20
|
-
<p>
|
21
|
-
|
22
|
-
<p>
|
23
|
-
<a href="Timing_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
-
<tr><td></td></tr>
|
25
|
-
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
-
|
28
|
-
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
29
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#93f9b0118e9708a760148c8c5da481d2">Gosu::sleep</a> (unsigned milliseconds)</td></tr>
|
30
|
-
|
31
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db">Gosu::milliseconds</a> ()</td></tr>
|
32
|
-
|
33
|
-
</table>
|
34
|
-
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
35
|
-
Functions for timing.
|
36
|
-
<p>
|
37
|
-
</div>
|
38
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
39
|
-
<a href="http://www.doxygen.org/index.html">
|
40
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
41
|
-
</body>
|
42
|
-
</html>
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: Utility.hpp Source File</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
<h1>Utility.hpp</h1><a href="Utility_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
-
<a name="l00002"></a>00002
|
19
|
-
<a name="l00003"></a>00003
|
20
|
-
<a name="l00004"></a>00004 <span class="comment">// REDESIGN: Rename to StringConversion.hpp?</span>
|
21
|
-
<a name="l00005"></a>00005
|
22
|
-
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef GOSU_UTILITY_HPP</span>
|
23
|
-
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_UTILITY_HPP</span>
|
24
|
-
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
25
|
-
<a name="l00009"></a>00009 <span class="preprocessor">#include <string></span>
|
26
|
-
<a name="l00010"></a>00010 <span class="preprocessor">#include <vector></span>
|
27
|
-
<a name="l00011"></a>00011
|
28
|
-
<a name="l00012"></a>00012 <span class="keyword">namespace </span>Gosu
|
29
|
-
<a name="l00013"></a>00013 {
|
30
|
-
<a name="l00015"></a>00015 std::wstring <a class="code" href="namespaceGosu.html#21c54ae29c5b4ebc282b87d6dec1f7de" title="Converts an std::string into an std::wstring.">utf8ToWstring</a>(<span class="keyword">const</span> std::string& utf8);
|
31
|
-
<a name="l00017"></a>00017 std::string <a class="code" href="namespaceGosu.html#b6bc6e428b84b2e2ac39133c64b4567e" title="Converts an std::wstring into an std::string.">wstringToUTF8</a>(<span class="keyword">const</span> std::wstring& ws);
|
32
|
-
<a name="l00018"></a>00018
|
33
|
-
<a name="l00020"></a>00020 std::wstring <a class="code" href="namespaceGosu.html#76d73802e9aa00f9133c3f1e099b832e" title="Converts an std::string into an std::wstring using local encoding.">widen</a>(<span class="keyword">const</span> std::string& s);
|
34
|
-
<a name="l00022"></a>00022 std::string <a class="code" href="namespaceGosu.html#66106eac9ffd4e4047e891c20196a5a2" title="Converts an std::wstring into an std::string using local encoding.">narrow</a>(<span class="keyword">const</span> std::wstring& ws);
|
35
|
-
<a name="l00023"></a>00023 }
|
36
|
-
<a name="l00024"></a>00024
|
37
|
-
<a name="l00025"></a>00025 <span class="preprocessor">#endif</span>
|
38
|
-
</pre></div></div>
|
39
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
40
|
-
<a href="http://www.doxygen.org/index.html">
|
41
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
42
|
-
</body>
|
43
|
-
</html>
|
data/reference/Utility_8hpp.html
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: Utility.hpp File Reference</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="contents">
|
19
|
-
<h1>Utility.hpp File Reference</h1>General purpose utility functions. <a href="#_details">More...</a>
|
20
|
-
<p>
|
21
|
-
|
22
|
-
<p>
|
23
|
-
<a href="Utility_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
-
<tr><td></td></tr>
|
25
|
-
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
-
|
28
|
-
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
29
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#21c54ae29c5b4ebc282b87d6dec1f7de">Gosu::utf8ToWstring</a> (const std::string &utf8)</td></tr>
|
30
|
-
|
31
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#b6bc6e428b84b2e2ac39133c64b4567e">Gosu::wstringToUTF8</a> (const std::wstring &ws)</td></tr>
|
32
|
-
|
33
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#76d73802e9aa00f9133c3f1e099b832e">Gosu::widen</a> (const std::string &s)</td></tr>
|
34
|
-
|
35
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#66106eac9ffd4e4047e891c20196a5a2">Gosu::narrow</a> (const std::wstring &ws)</td></tr>
|
36
|
-
|
37
|
-
</table>
|
38
|
-
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
39
|
-
General purpose utility functions.
|
40
|
-
<p>
|
41
|
-
</div>
|
42
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
43
|
-
<a href="http://www.doxygen.org/index.html">
|
44
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
45
|
-
</body>
|
46
|
-
</html>
|
@@ -1,79 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: WinUtility.hpp Source File</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
<h1>WinUtility.hpp</h1><a href="WinUtility_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
-
<a name="l00002"></a>00002
|
19
|
-
<a name="l00003"></a>00003
|
20
|
-
<a name="l00004"></a>00004
|
21
|
-
<a name="l00005"></a>00005
|
22
|
-
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef GOSU_WINUTILITY_HPP</span>
|
23
|
-
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_WINUTILITY_HPP</span>
|
24
|
-
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
25
|
-
<a name="l00009"></a>00009 <span class="preprocessor">#include <windows.h></span>
|
26
|
-
<a name="l00010"></a>00010 <span class="preprocessor">#include <<a class="code" href="Platform_8hpp.html" title="Macros and utility functions to facilitate programming on all of Gosu&#39;s supported...">Gosu/Platform.hpp</a>></span>
|
27
|
-
<a name="l00011"></a>00011 <span class="preprocessor">#include <boost/function.hpp></span>
|
28
|
-
<a name="l00012"></a>00012 <span class="preprocessor">#include <boost/shared_ptr.hpp></span>
|
29
|
-
<a name="l00013"></a>00013 <span class="preprocessor">#include <string></span>
|
30
|
-
<a name="l00014"></a>00014
|
31
|
-
<a name="l00015"></a>00015 <span class="keyword">namespace </span>Gosu
|
32
|
-
<a name="l00016"></a>00016 {
|
33
|
-
<a name="l00018"></a><a class="code" href="namespaceGosu_1_1Win.html">00018</a> <span class="keyword">namespace </span>Win
|
34
|
-
<a name="l00019"></a>00019 {
|
35
|
-
<a name="l00021"></a>00021 HINSTANCE <a class="code" href="namespaceGosu_1_1Win.html#83b6e6b81742595a0e9203484703db1b" title="Returns the instance handle of the application.">instance</a>();
|
36
|
-
<a name="l00022"></a>00022
|
37
|
-
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>();
|
38
|
-
<a name="l00026"></a>00026
|
39
|
-
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#d00342fe1c6ac246a35732e61c814f66" title="Non-blocking function which processes all waiting messages but does not wait for...">processMessages</a>();
|
40
|
-
<a name="l00030"></a>00030
|
41
|
-
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#7d2d60d6682043477b9765af5433a0db" title="Registers a function to be called by handleMessage and processMessages.">registerMessageHook</a>(<span class="keyword">const</span> boost::function<<span class="keywordtype">bool</span> (MSG&)>& hook);
|
42
|
-
<a name="l00035"></a>00035
|
43
|
-
<a name="l00039"></a>00039 GOSU_NORETURN <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#9b691c48faa83e1f04f3c185f4fc88e0" title="Throws an exception according to the error which GetLastError() returns, optionally...">throwLastError</a>(<span class="keyword">const</span> std::string& action = <span class="stringliteral">""</span>);
|
44
|
-
<a name="l00040"></a>00040
|
45
|
-
<a name="l00044"></a>00044 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
46
|
-
<a name="l00045"></a><a class="code" href="namespaceGosu_1_1Win.html#6040740de3117cb7f53d2458e29e0d33">00045</a> <span class="keyword">inline</span> T <a class="code" href="namespaceGosu_1_1Win.html#6040740de3117cb7f53d2458e29e0d33" title="Small helper function that throws an exception whenever the value passed through...">check</a>(T valToCheck, <span class="keyword">const</span> std::string& action = <span class="stringliteral">""</span>)
|
47
|
-
<a name="l00046"></a>00046 {
|
48
|
-
<a name="l00047"></a>00047 <span class="keywordflow">if</span> (!valToCheck)
|
49
|
-
<a name="l00048"></a>00048 <a class="code" href="namespaceGosu_1_1Win.html#9b691c48faa83e1f04f3c185f4fc88e0" title="Throws an exception according to the error which GetLastError() returns, optionally...">throwLastError</a>(action);
|
50
|
-
<a name="l00049"></a>00049 <span class="keywordflow">return</span> valToCheck;
|
51
|
-
<a name="l00050"></a>00050 }
|
52
|
-
<a name="l00051"></a>00051
|
53
|
-
<a name="l00052"></a>00052 <span class="comment">// IMPR: Why can't I use mem_fn for releasing objects even though it is</span>
|
54
|
-
<a name="l00053"></a>00053 <span class="comment">// shown like that in the shared_ptr documentation?</span>
|
55
|
-
<a name="l00054"></a>00054 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
56
|
-
<a name="l00055"></a>00055 <span class="keywordtype">void</span> releaseComPtr(T* ptr)
|
57
|
-
<a name="l00056"></a>00056 {
|
58
|
-
<a name="l00057"></a>00057 ptr->Release();
|
59
|
-
<a name="l00058"></a>00058 }
|
60
|
-
<a name="l00059"></a>00059
|
61
|
-
<a name="l00062"></a>00062 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
62
|
-
<a name="l00063"></a><a class="code" href="namespaceGosu_1_1Win.html#a428c0599282230ad8c8c03a4eb1a054">00063</a> <span class="keyword">inline</span> boost::shared_ptr<T> <a class="code" href="namespaceGosu_1_1Win.html#a428c0599282230ad8c8c03a4eb1a054" title="Small helper function that transfers ownership of a COM interface to a boost::shared_ptr...">shareComPtr</a>(T* ptr)
|
63
|
-
<a name="l00064"></a>00064 {
|
64
|
-
<a name="l00065"></a>00065 <span class="keywordflow">return</span> boost::shared_ptr<T>(ptr, releaseComPtr<T>);
|
65
|
-
<a name="l00066"></a>00066 }
|
66
|
-
<a name="l00067"></a>00067
|
67
|
-
<a name="l00069"></a>00069 std::wstring <a class="code" href="namespaceGosu_1_1Win.html#6a880b46db664c1be2b5115a1090c37b" title="Returns the executable&#39;s filename.">appFilename</a>();
|
68
|
-
<a name="l00070"></a>00070
|
69
|
-
<a name="l00072"></a>00072 std::wstring <a class="code" href="namespaceGosu_1_1Win.html#23f9098ea654c70ae845ec3fe6e9f20c" title="Returns the executable&#39;s containing directory.">appDirectory</a>();
|
70
|
-
<a name="l00073"></a>00073 }
|
71
|
-
<a name="l00074"></a>00074 }
|
72
|
-
<a name="l00075"></a>00075
|
73
|
-
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
|
74
|
-
</pre></div></div>
|
75
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
76
|
-
<a href="http://www.doxygen.org/index.html">
|
77
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
78
|
-
</body>
|
79
|
-
</html>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: WinUtility.hpp File Reference</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="contents">
|
19
|
-
<h1>WinUtility.hpp File Reference</h1>Contains some functions which are used to implement <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> on Windows and might be useful for advanced users who try to integrate <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> in a Win32 application. <a href="#_details">More...</a>
|
20
|
-
<p>
|
21
|
-
|
22
|
-
<p>
|
23
|
-
<a href="WinUtility_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
-
<tr><td></td></tr>
|
25
|
-
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
-
|
28
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html">Gosu::Win</a></td></tr>
|
29
|
-
|
30
|
-
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
31
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">HINSTANCE </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#83b6e6b81742595a0e9203484703db1b">Gosu::Win::instance</a> ()</td></tr>
|
32
|
-
|
33
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#31f2a986954cbda89d833e5c4b6023bc">Gosu::Win::handleMessage</a> ()</td></tr>
|
34
|
-
|
35
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#d00342fe1c6ac246a35732e61c814f66">Gosu::Win::processMessages</a> ()</td></tr>
|
36
|
-
|
37
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#7d2d60d6682043477b9765af5433a0db">Gosu::Win::registerMessageHook</a> (const boost::function< bool(MSG &)> &hook)</td></tr>
|
38
|
-
|
39
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">GOSU_NORETURN void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#9b691c48faa83e1f04f3c185f4fc88e0">Gosu::Win::throwLastError</a> (const std::string &action="")</td></tr>
|
40
|
-
|
41
|
-
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
42
|
-
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#6040740de3117cb7f53d2458e29e0d33">Gosu::Win::check</a> (T valToCheck, const std::string &action="")</td></tr>
|
43
|
-
|
44
|
-
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="a94c44a4738f72711497fe26cb15c8b6"></a><!-- doxytag: member="WinUtility.hpp::releaseComPtr" ref="a94c44a4738f72711497fe26cb15c8b6" args="(T *ptr)" -->
|
45
|
-
template<typename T> </td></tr>
|
46
|
-
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><b>Gosu::Win::releaseComPtr</b> (T *ptr)</td></tr>
|
47
|
-
|
48
|
-
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
49
|
-
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">boost::shared_ptr< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#a428c0599282230ad8c8c03a4eb1a054">Gosu::Win::shareComPtr</a> (T *ptr)</td></tr>
|
50
|
-
|
51
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#6a880b46db664c1be2b5115a1090c37b">Gosu::Win::appFilename</a> ()</td></tr>
|
52
|
-
|
53
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#23f9098ea654c70ae845ec3fe6e9f20c">Gosu::Win::appDirectory</a> ()</td></tr>
|
54
|
-
|
55
|
-
</table>
|
56
|
-
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
57
|
-
Contains some functions which are used to implement <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> on Windows and might be useful for advanced users who try to integrate <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> in a Win32 application.
|
58
|
-
<p>
|
59
|
-
</div>
|
60
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
61
|
-
<a href="http://www.doxygen.org/index.html">
|
62
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
63
|
-
</body>
|
64
|
-
</html>
|
@@ -1,110 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: Window.hpp Source File</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
<h1>Window.hpp</h1><a href="Window_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
-
<a name="l00002"></a>00002
|
19
|
-
<a name="l00003"></a>00003
|
20
|
-
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_WINDOW_HPP</span>
|
21
|
-
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_WINDOW_HPP</span>
|
22
|
-
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
23
|
-
<a name="l00007"></a>00007 <span class="preprocessor">#include <<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&#39;s available classes.">Gosu/Fwd.hpp</a>></span>
|
24
|
-
<a name="l00008"></a>00008 <span class="preprocessor">#include <<a class="code" href="Platform_8hpp.html" title="Macros and utility functions to facilitate programming on all of Gosu&#39;s supported...">Gosu/Platform.hpp</a>></span>
|
25
|
-
<a name="l00009"></a>00009 <span class="preprocessor">#include <<a class="code" href="Input_8hpp.html" title="Interface of the Input class.">Gosu/Input.hpp</a>></span>
|
26
|
-
<a name="l00010"></a>00010 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
27
|
-
<a name="l00011"></a>00011 <span class="preprocessor">#include <boost/shared_ptr.hpp></span>
|
28
|
-
<a name="l00012"></a>00012 <span class="preprocessor">#include <boost/function.hpp></span>
|
29
|
-
<a name="l00013"></a>00013 <span class="preprocessor">#include <string></span>
|
30
|
-
<a name="l00014"></a>00014
|
31
|
-
<a name="l00015"></a>00015 <span class="preprocessor">#ifdef GOSU_IS_WIN</span>
|
32
|
-
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include <windows.h></span>
|
33
|
-
<a name="l00017"></a>00017 <span class="preprocessor">#endif</span>
|
34
|
-
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
35
|
-
<a name="l00019"></a>00019 <span class="keyword">namespace </span>Gosu
|
36
|
-
<a name="l00020"></a>00020 {
|
37
|
-
<a name="l00024"></a><a class="code" href="classGosu_1_1Window.html">00024</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a>
|
38
|
-
<a name="l00025"></a>00025 {
|
39
|
-
<a name="l00026"></a>00026 <span class="keyword">struct </span>Impl;
|
40
|
-
<a name="l00027"></a>00027 boost::scoped_ptr<Impl> pimpl;
|
41
|
-
<a name="l00028"></a>00028
|
42
|
-
<a name="l00029"></a>00029 <span class="keyword">public</span>:
|
43
|
-
<a name="l00033"></a>00033 <a class="code" href="classGosu_1_1Window.html#369461754934c92b9bd0811dbdad8ffa" title="Constructs a Window.">Window</a>(<span class="keywordtype">unsigned</span> width, <span class="keywordtype">unsigned</span> height, <span class="keywordtype">bool</span> fullscreen,
|
44
|
-
<a name="l00034"></a>00034 <span class="keywordtype">double</span> updateInterval = 16.666666);
|
45
|
-
<a name="l00035"></a>00035 <span class="keyword">virtual</span> ~<a class="code" href="classGosu_1_1Window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a>();
|
46
|
-
<a name="l00036"></a>00036
|
47
|
-
<a name="l00037"></a>00037 std::wstring caption() <span class="keyword">const</span>;
|
48
|
-
<a name="l00038"></a>00038 <span class="keywordtype">void</span> setCaption(<span class="keyword">const</span> std::wstring& caption);
|
49
|
-
<a name="l00039"></a>00039
|
50
|
-
<a name="l00040"></a>00040 <span class="keywordtype">double</span> updateInterval() <span class="keyword">const</span>;
|
51
|
-
<a name="l00041"></a>00041
|
52
|
-
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#d4b7c1e5e817d8aaca09f5d19a3a9d93" title="Starts the main event loop.">show</a>();
|
53
|
-
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#ccbd57bf5ea05899e4270e2b20b300a6" title="Closes the window if it is currently shown.">close</a>();
|
54
|
-
<a name="l00046"></a>00046
|
55
|
-
<a name="l00049"></a><a class="code" href="classGosu_1_1Window.html#4c74a15418c916dabec98c2da3ca45ba">00049</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#4c74a15418c916dabec98c2da3ca45ba" title="Called every updateInterval milliseconds while the window is being shown.">update</a>() {}
|
56
|
-
<a name="l00052"></a><a class="code" href="classGosu_1_1Window.html#b3c5da8e60f81c0528a5d8d9495daac8">00052</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#b3c5da8e60f81c0528a5d8d9495daac8" title="Called after every update and when the OS wants the window to repaint itself.">draw</a>() {}
|
57
|
-
<a name="l00053"></a>00053
|
58
|
-
<a name="l00057"></a><a class="code" href="classGosu_1_1Window.html#94fe0b34e44e22a5076edd26f8e76853">00057</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classGosu_1_1Window.html#94fe0b34e44e22a5076edd26f8e76853" title="Gives the game a chance to say no to being redrawn.">needsRedraw</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }
|
59
|
-
<a name="l00058"></a>00058
|
60
|
-
<a name="l00061"></a><a class="code" href="classGosu_1_1Window.html#d4e680daba62ac7fbc8002b2be50a2c5">00061</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#d4e680daba62ac7fbc8002b2be50a2c5" title="Called before update when the user pressed a button while the window had the focus...">buttonDown</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Gosu::Button</a>) {}
|
61
|
-
<a name="l00063"></a><a class="code" href="classGosu_1_1Window.html#41ab0a9bfee1c88d96618308bde584fc">00063</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#41ab0a9bfee1c88d96618308bde584fc" title="Same as buttonDown. Called then the user released a button.">buttonUp</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Gosu::Button</a>) {}
|
62
|
-
<a name="l00064"></a>00064
|
63
|
-
<a name="l00065"></a>00065 <span class="comment">// Ignore when SWIG is wrapping this class for Ruby/Gosu.</span>
|
64
|
-
<a name="l00066"></a>00066 <span class="preprocessor"> #ifndef SWIG</span>
|
65
|
-
<a name="l00067"></a>00067 <span class="preprocessor"></span> <span class="keyword">const</span> <a class="code" href="classGosu_1_1Graphics.html" title="Serves as the target of all drawing and provides basic drawing functionality.">Graphics</a>& graphics() <span class="keyword">const</span>;
|
66
|
-
<a name="l00068"></a>00068 <a class="code" href="classGosu_1_1Graphics.html" title="Serves as the target of all drawing and provides basic drawing functionality.">Graphics</a>& graphics();
|
67
|
-
<a name="l00069"></a>00069
|
68
|
-
<a name="l00070"></a>00070 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>& audio() <span class="keyword">const</span>;
|
69
|
-
<a name="l00071"></a>00071 <a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>& audio();
|
70
|
-
<a name="l00072"></a>00072
|
71
|
-
<a name="l00073"></a>00073 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>& input() <span class="keyword">const</span>;
|
72
|
-
<a name="l00074"></a>00074 <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>& input();
|
73
|
-
<a name="l00075"></a>00075
|
74
|
-
<a name="l00076"></a>00076 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
|
75
|
-
<a name="l00077"></a>00077 <span class="preprocessor"></span> <span class="comment">// Only on Windows, used for integrating with GUI toolkits.</span>
|
76
|
-
<a name="l00078"></a>00078 HWND handle() <span class="keyword">const</span>;
|
77
|
-
<a name="l00079"></a>00079 <span class="keyword">virtual</span> LRESULT <a class="code" href="namespaceGosu_1_1Win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>(UINT message, WPARAM wparam,
|
78
|
-
<a name="l00080"></a>00080 LPARAM lparam);
|
79
|
-
<a name="l00081"></a>00081 <span class="preprocessor"> #endif</span>
|
80
|
-
<a name="l00082"></a>00082 <span class="preprocessor"></span>
|
81
|
-
<a name="l00083"></a>00083 <span class="preprocessor"> #ifdef GOSU_IS_UNIX</span>
|
82
|
-
<a name="l00084"></a>00084 <span class="preprocessor"></span> <span class="comment">// Context for creating shared contexts.</span>
|
83
|
-
<a name="l00085"></a>00085 <span class="comment">// Only on Unices (so far).</span>
|
84
|
-
<a name="l00086"></a>00086 <span class="keyword">typedef</span> boost::shared_ptr<boost::function<void()> > SharedContext;
|
85
|
-
<a name="l00087"></a>00087 SharedContext createSharedContext();
|
86
|
-
<a name="l00088"></a>00088 <span class="preprocessor"> #endif</span>
|
87
|
-
<a name="l00089"></a>00089 <span class="preprocessor"></span>
|
88
|
-
<a name="l00090"></a>00090 <span class="preprocessor"> #ifdef GOSU_IS_IPHONE</span>
|
89
|
-
<a name="l00091"></a>00091 <span class="preprocessor"></span> <span class="comment">// iPhone-only callbacks for touch events.</span>
|
90
|
-
<a name="l00092"></a>00092 <span class="comment">// Note that it does not hurt to override them even if you compile</span>
|
91
|
-
<a name="l00093"></a>00093 <span class="comment">// for another platform; if you don't specify "virtual" the code</span>
|
92
|
-
<a name="l00094"></a>00094 <span class="comment">// should even be stripped away cleanly.</span>
|
93
|
-
<a name="l00095"></a>00095 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesBegan(<span class="keyword">const</span> Touches& touches) {}
|
94
|
-
<a name="l00096"></a>00096 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesMoved(<span class="keyword">const</span> Touches& touches) {}
|
95
|
-
<a name="l00097"></a>00097 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesEnded(<span class="keyword">const</span> Touches& touches) {}
|
96
|
-
<a name="l00098"></a>00098 <span class="comment">// Currently known touches.</span>
|
97
|
-
<a name="l00099"></a>00099 <span class="keyword">const</span> Touches& currentTouches() <span class="keyword">const</span>;
|
98
|
-
<a name="l00100"></a>00100 <span class="preprocessor"> #endif </span>
|
99
|
-
<a name="l00101"></a>00101 <span class="preprocessor"></span>
|
100
|
-
<a name="l00102"></a>00102 <span class="preprocessor"> #endif</span>
|
101
|
-
<a name="l00103"></a>00103 <span class="preprocessor"></span> };
|
102
|
-
<a name="l00104"></a>00104 }
|
103
|
-
<a name="l00105"></a>00105
|
104
|
-
<a name="l00106"></a>00106 <span class="preprocessor">#endif</span>
|
105
|
-
</pre></div></div>
|
106
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
107
|
-
<a href="http://www.doxygen.org/index.html">
|
108
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
109
|
-
</body>
|
110
|
-
</html>
|
data/reference/Window_8hpp.html
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
-
<title>Gosu: Window.hpp File Reference</title>
|
4
|
-
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
-
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
-
</head><body>
|
7
|
-
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
-
<div class="navigation" id="top">
|
9
|
-
<div class="tabs">
|
10
|
-
<ul>
|
11
|
-
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
-
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
-
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="contents">
|
19
|
-
<h1>Window.hpp File Reference</h1>Interface of the Window class. <a href="#_details">More...</a>
|
20
|
-
<p>
|
21
|
-
|
22
|
-
<p>
|
23
|
-
<a href="Window_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
-
<tr><td></td></tr>
|
25
|
-
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
-
|
28
|
-
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
29
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Window.html">Gosu::Window</a></td></tr>
|
30
|
-
|
31
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convenient all-in-one class that serves as the foundation of a standard <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> application. <a href="classGosu_1_1Window.html#_details">More...</a><br></td></tr>
|
32
|
-
</table>
|
33
|
-
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
34
|
-
Interface of the Window class.
|
35
|
-
<p>
|
36
|
-
</div>
|
37
|
-
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by
|
38
|
-
<a href="http://www.doxygen.org/index.html">
|
39
|
-
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
40
|
-
</body>
|
41
|
-
</html>
|