gosu 0.7.14 → 0.7.15
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.txt +1 -2
- data/Gosu/Graphics.hpp +6 -0
- data/Gosu/Image.hpp +4 -0
- data/Gosu/Version.hpp +2 -2
- data/GosuImpl/Audio/ALChannelManagement.hpp +3 -3
- data/GosuImpl/Audio/AudioOpenAL.mm +11 -19
- data/GosuImpl/Audio/AudioToolboxFile.hpp +2 -1
- data/GosuImpl/Graphics/Common.hpp +3 -0
- data/GosuImpl/Graphics/DrawOp.hpp +105 -29
- data/GosuImpl/Graphics/GosuView.hpp +6 -0
- data/GosuImpl/Graphics/GosuView.mm +34 -1
- data/GosuImpl/Graphics/Graphics.cpp +57 -17
- data/GosuImpl/Graphics/Image.cpp +5 -0
- data/GosuImpl/Graphics/LargeImageData.cpp +1 -1
- data/GosuImpl/Graphics/Macro.hpp +79 -0
- data/GosuImpl/Graphics/TexChunk.cpp +3 -3
- data/GosuImpl/Graphics/TexChunk.hpp +2 -2
- data/GosuImpl/Graphics/TextMac.cpp +6 -0
- data/GosuImpl/Graphics/TextTouch.mm +49 -14
- data/GosuImpl/Graphics/Texture.cpp +2 -2
- data/GosuImpl/Graphics/Texture.hpp +3 -2
- data/GosuImpl/InputMac.mm +2 -0
- data/GosuImpl/RubyGosu.swg +15 -4
- data/GosuImpl/RubyGosu_wrap.cxx +85 -6
- data/GosuImpl/Sockets/CommSocket.cpp +304 -304
- data/GosuImpl/Sockets/Socket.cpp +1 -1
- data/GosuImpl/WindowMac.mm +3 -0
- data/GosuImpl/WindowTouch.mm +1 -0
- data/Rakefile +13 -5
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +292 -280
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +46 -48
- data/mac/Gosu.xcodeproj/project.pbxproj +58 -18
- data/reference/cpp/_audio_8hpp-source.html +2 -1
- data/reference/cpp/_audio_8hpp.html +11 -4
- data/reference/cpp/_audio_8hpp_source.html +178 -0
- data/reference/cpp/_auto_link_8hpp-source.html +1 -0
- data/reference/cpp/_auto_link_8hpp.html +5 -4
- data/reference/cpp/_auto_link_8hpp_source.html +85 -0
- data/reference/cpp/_bitmap_8hpp-source.html +9 -8
- data/reference/cpp/_bitmap_8hpp.html +11 -4
- data/reference/cpp/_bitmap_8hpp_source.html +131 -0
- data/reference/cpp/_buttons_mac_8hpp-source.html +124 -123
- data/reference/cpp/_buttons_mac_8hpp.html +10 -3
- data/reference/cpp/_buttons_mac_8hpp_source.html +206 -0
- data/reference/cpp/_color_8hpp-source.html +18 -17
- data/reference/cpp/_color_8hpp.html +16 -4
- data/reference/cpp/_color_8hpp_source.html +216 -0
- data/reference/cpp/_directories_8hpp-source.html +5 -4
- data/reference/cpp/_directories_8hpp.html +11 -4
- data/reference/cpp/_directories_8hpp_source.html +89 -0
- data/reference/cpp/_font_8hpp-source.html +8 -7
- data/reference/cpp/_font_8hpp.html +11 -4
- data/reference/cpp/_font_8hpp_source.html +116 -0
- data/reference/cpp/_fwd_8hpp-source.html +1 -0
- data/reference/cpp/_fwd_8hpp.html +11 -4
- data/reference/cpp/_fwd_8hpp_source.html +99 -0
- data/reference/cpp/_gosu_8hpp-source.html +1 -0
- data/reference/cpp/_gosu_8hpp.html +5 -4
- data/reference/cpp/_gosu_8hpp_source.html +97 -0
- data/reference/cpp/_graphics_8hpp-source.html +7 -6
- data/reference/cpp/_graphics_8hpp.html +11 -4
- data/reference/cpp/_graphics_8hpp_source.html +138 -0
- data/reference/cpp/_graphics_base_8hpp-source.html +22 -21
- data/reference/cpp/_graphics_base_8hpp.html +15 -8
- data/reference/cpp/_graphics_base_8hpp_source.html +116 -0
- data/reference/cpp/_i_o_8hpp-source.html +16 -15
- data/reference/cpp/_i_o_8hpp.html +13 -6
- data/reference/cpp/_i_o_8hpp_source.html +302 -0
- data/reference/cpp/_image_8hpp-source.html +23 -22
- data/reference/cpp/_image_8hpp.html +11 -4
- data/reference/cpp/_image_8hpp_source.html +176 -0
- data/reference/cpp/_image_data_8hpp-source.html +2 -1
- data/reference/cpp/_image_data_8hpp.html +11 -4
- data/reference/cpp/_image_data_8hpp_source.html +109 -0
- data/reference/cpp/_input_8hpp-source.html +6 -5
- data/reference/cpp/_input_8hpp.html +11 -4
- data/reference/cpp/_input_8hpp_source.html +183 -0
- data/reference/cpp/_math_8hpp-source.html +26 -25
- data/reference/cpp/_math_8hpp.html +11 -4
- data/reference/cpp/_math_8hpp_source.html +157 -0
- data/reference/cpp/_platform_8hpp-source.html +5 -4
- data/reference/cpp/_platform_8hpp.html +14 -7
- data/reference/cpp/_platform_8hpp_source.html +134 -0
- data/reference/cpp/_rot_flip_8hpp-source.html +30 -29
- data/reference/cpp/_rot_flip_8hpp.html +12 -5
- data/reference/cpp/_rot_flip_8hpp_source.html +185 -0
- data/reference/cpp/_sockets_8hpp-source.html +25 -24
- data/reference/cpp/_sockets_8hpp.html +14 -7
- data/reference/cpp/_sockets_8hpp_source.html +175 -0
- data/reference/cpp/_text_8hpp-source.html +7 -6
- data/reference/cpp/_text_8hpp.html +11 -4
- data/reference/cpp/_text_8hpp_source.html +103 -0
- data/reference/cpp/_text_input_8hpp-source.html +1 -0
- data/reference/cpp/_text_input_8hpp.html +11 -4
- data/reference/cpp/_text_input_8hpp_source.html +111 -0
- data/reference/cpp/_timing_8hpp-source.html +3 -2
- data/reference/cpp/_timing_8hpp.html +11 -4
- data/reference/cpp/_timing_8hpp_source.html +83 -0
- data/reference/cpp/_utility_8hpp-source.html +5 -4
- data/reference/cpp/_utility_8hpp.html +11 -4
- data/reference/cpp/_utility_8hpp_source.html +90 -0
- data/reference/cpp/_version_8hpp-source.html +1 -0
- data/reference/cpp/_version_8hpp.html +7 -6
- data/reference/cpp/_version_8hpp_source.html +78 -0
- data/reference/cpp/_win_utility_8hpp-source.html +13 -12
- data/reference/cpp/_win_utility_8hpp.html +18 -6
- data/reference/cpp/_win_utility_8hpp_source.html +126 -0
- data/reference/cpp/_window_8hpp-source.html +6 -5
- data/reference/cpp/_window_8hpp.html +12 -5
- data/reference/cpp/_window_8hpp_source.html +158 -0
- data/reference/cpp/annotated.html +3 -2
- data/reference/cpp/class_gosu_1_1_audio-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_audio.html +5 -4
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_bitmap.html +17 -12
- data/reference/cpp/class_gosu_1_1_buffer-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_buffer.html +12 -13
- data/reference/cpp/class_gosu_1_1_button-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_button.html +13 -10
- data/reference/cpp/class_gosu_1_1_color-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_color.html +29 -26
- data/reference/cpp/class_gosu_1_1_comm_socket-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_comm_socket.html +23 -22
- data/reference/cpp/class_gosu_1_1_file-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_file.html +7 -6
- data/reference/cpp/class_gosu_1_1_font-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_font.html +17 -16
- data/reference/cpp/class_gosu_1_1_graphics-members.html +4 -1
- data/reference/cpp/class_gosu_1_1_graphics.html +68 -19
- data/reference/cpp/class_gosu_1_1_image-members.html +3 -1
- data/reference/cpp/class_gosu_1_1_image.html +49 -23
- data/reference/cpp/class_gosu_1_1_image_data-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_image_data.html +9 -8
- data/reference/cpp/class_gosu_1_1_input-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_input.html +7 -6
- data/reference/cpp/class_gosu_1_1_listener_socket-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_listener_socket.html +12 -11
- data/reference/cpp/class_gosu_1_1_message_socket-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_message_socket.html +19 -18
- data/reference/cpp/class_gosu_1_1_reader-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_reader.html +18 -17
- data/reference/cpp/class_gosu_1_1_resource-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_resource.html +10 -9
- data/reference/cpp/class_gosu_1_1_rot_flip-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_rot_flip.html +24 -19
- data/reference/cpp/class_gosu_1_1_sample-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_sample.html +5 -4
- data/reference/cpp/class_gosu_1_1_sample_instance-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_sample_instance.html +5 -4
- data/reference/cpp/class_gosu_1_1_song-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_song.html +6 -5
- data/reference/cpp/class_gosu_1_1_text_input-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_text_input.html +6 -5
- data/reference/cpp/class_gosu_1_1_window-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_window.html +12 -11
- data/reference/cpp/class_gosu_1_1_writer-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_writer.html +15 -14
- data/reference/cpp/classes.html +11 -10
- data/reference/cpp/files.html +28 -27
- data/reference/cpp/functions.html +2 -1
- data/reference/cpp/functions_0x62.html +5 -2
- data/reference/cpp/functions_0x63.html +2 -1
- data/reference/cpp/functions_0x64.html +2 -1
- data/reference/cpp/functions_0x65.html +4 -1
- data/reference/cpp/functions_0x66.html +2 -1
- data/reference/cpp/functions_0x67.html +5 -2
- data/reference/cpp/functions_0x68.html +2 -1
- data/reference/cpp/functions_0x69.html +2 -1
- data/reference/cpp/functions_0x6b.html +2 -1
- data/reference/cpp/functions_0x6c.html +2 -1
- data/reference/cpp/functions_0x6d.html +2 -1
- data/reference/cpp/functions_0x6e.html +2 -1
- data/reference/cpp/functions_0x6f.html +2 -1
- data/reference/cpp/functions_0x70.html +2 -1
- data/reference/cpp/functions_0x72.html +2 -1
- data/reference/cpp/functions_0x73.html +2 -1
- data/reference/cpp/functions_0x74.html +4 -3
- data/reference/cpp/functions_0x75.html +2 -1
- data/reference/cpp/functions_0x76.html +2 -1
- data/reference/cpp/functions_0x77.html +2 -1
- data/reference/cpp/functions_0x78.html +2 -1
- data/reference/cpp/functions_0x79.html +2 -1
- data/reference/cpp/functions_0x7e.html +2 -1
- data/reference/cpp/functions_enum.html +2 -1
- data/reference/cpp/functions_eval.html +2 -1
- data/reference/cpp/functions_func.html +2 -1
- data/reference/cpp/functions_func_0x62.html +5 -2
- data/reference/cpp/functions_func_0x63.html +2 -1
- data/reference/cpp/functions_func_0x64.html +2 -1
- data/reference/cpp/functions_func_0x65.html +4 -1
- data/reference/cpp/functions_func_0x66.html +2 -1
- data/reference/cpp/functions_func_0x67.html +5 -2
- data/reference/cpp/functions_func_0x68.html +2 -1
- data/reference/cpp/functions_func_0x69.html +2 -1
- data/reference/cpp/functions_func_0x6b.html +2 -1
- data/reference/cpp/functions_func_0x6c.html +2 -1
- data/reference/cpp/functions_func_0x6d.html +2 -1
- data/reference/cpp/functions_func_0x6e.html +2 -1
- data/reference/cpp/functions_func_0x6f.html +2 -1
- data/reference/cpp/functions_func_0x70.html +2 -1
- data/reference/cpp/functions_func_0x72.html +2 -1
- data/reference/cpp/functions_func_0x73.html +2 -1
- data/reference/cpp/functions_func_0x74.html +4 -3
- data/reference/cpp/functions_func_0x75.html +2 -1
- data/reference/cpp/functions_func_0x76.html +2 -1
- data/reference/cpp/functions_func_0x77.html +2 -1
- data/reference/cpp/functions_func_0x7e.html +2 -1
- data/reference/cpp/functions_type.html +2 -1
- data/reference/cpp/functions_vars.html +2 -1
- data/reference/cpp/globals.html +2 -1
- data/reference/cpp/globals_defs.html +2 -1
- data/reference/cpp/hierarchy.html +2 -1
- data/reference/cpp/index.html +3 -2
- data/reference/cpp/namespace_gosu.html +3314 -0
- data/reference/cpp/namespace_gosu_1_1_colors.html +274 -0
- data/reference/cpp/namespace_gosu_1_1_win.html +354 -0
- data/reference/cpp/namespacemembers.html +135 -0
- data/reference/cpp/namespacemembers_0x62.html +143 -0
- data/reference/cpp/namespacemembers_0x63.html +125 -0
- data/reference/cpp/namespacemembers_0x64.html +119 -0
- data/reference/cpp/namespacemembers_0x66.html +129 -0
- data/reference/cpp/namespacemembers_0x67.html +165 -0
- data/reference/cpp/namespacemembers_0x68.html +113 -0
- data/reference/cpp/namespacemembers_0x69.html +117 -0
- data/reference/cpp/namespacemembers_0x6b.html +289 -0
- data/reference/cpp/namespacemembers_0x6c.html +119 -0
- data/reference/cpp/namespacemembers_0x6d.html +131 -0
- data/reference/cpp/namespacemembers_0x6e.html +127 -0
- data/reference/cpp/namespacemembers_0x6f.html +121 -0
- data/reference/cpp/namespacemembers_0x70.html +115 -0
- data/reference/cpp/namespacemembers_0x71.html +113 -0
- data/reference/cpp/namespacemembers_0x72.html +165 -0
- data/reference/cpp/namespacemembers_0x73.html +135 -0
- data/reference/cpp/namespacemembers_0x74.html +129 -0
- data/reference/cpp/namespacemembers_0x75.html +117 -0
- data/reference/cpp/namespacemembers_0x77.html +117 -0
- data/reference/cpp/namespacemembers_0x79.html +113 -0
- data/reference/cpp/namespacemembers_0x7a.html +115 -0
- data/reference/cpp/namespacemembers_enum.html +103 -0
- data/reference/cpp/namespacemembers_eval.html +443 -0
- data/reference/cpp/namespacemembers_func.html +269 -0
- data/reference/cpp/namespacemembers_type.html +93 -0
- data/reference/cpp/namespacemembers_vars.html +115 -0
- data/reference/cpp/namespaces.html +76 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +2 -1
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +10 -9
- data/reference/cpp/struct_gosu_1_1_touch-members.html +2 -1
- data/reference/cpp/struct_gosu_1_1_touch.html +8 -7
- data/reference/rdoc/classes/Gosu.html +16 -29
- data/reference/rdoc/classes/Gosu.src/M000003.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000004.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000005.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000006.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000007.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000008.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000009.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000010.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000011.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000012.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.html +16 -17
- data/reference/rdoc/classes/Gosu/Color.src/M000016.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000017.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000018.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000019.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.html +16 -19
- data/reference/rdoc/classes/Gosu/Font.src/M000029.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000030.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000031.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000032.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000033.html +0 -0
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +24 -16
- data/reference/rdoc/classes/Gosu/Image.html +16 -27
- data/reference/rdoc/classes/Gosu/Image.src/M000020.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000021.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000022.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000023.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000024.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000025.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000026.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000027.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000028.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.html +16 -15
- data/reference/rdoc/classes/Gosu/Sample.src/M000013.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000014.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000015.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.html +16 -19
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000051.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000052.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000053.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000054.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000055.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.html +16 -23
- data/reference/rdoc/classes/Gosu/Song.src/M000056.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000057.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000058.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000059.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000060.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000061.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000062.html +0 -0
- data/reference/rdoc/classes/Gosu/TextInput.html +16 -9
- data/reference/rdoc/classes/Gosu/Window.html +16 -51
- data/reference/rdoc/classes/Gosu/Window.src/M000034.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000035.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000036.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000037.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000038.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000039.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000040.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000041.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000042.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000043.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000044.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000045.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000046.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000047.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000048.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000049.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000050.html +0 -0
- data/reference/rdoc/classes/Numeric.html +16 -13
- data/reference/rdoc/classes/Numeric.src/M000001.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000002.html +0 -0
- data/reference/rdoc/created.rid +1 -1
- data/reference/rdoc/files/COPYING_txt.html +17 -12
- data/reference/rdoc/files/README_txt.html +16 -10
- data/reference/rdoc/files/reference/{DeploymentOnOSX_rdoc.html → Deployment on OS X_rdoc.html } +17 -11
- data/reference/rdoc/files/reference/{DeploymentOnWindows_rdoc.html → Deployment on Windows_rdoc.html } +17 -11
- data/reference/rdoc/files/reference/{DrawingWithColors_rdoc.html → Drawing with Colors_rdoc.html } +23 -17
- data/reference/rdoc/files/reference/{OrderOfCorners_rdoc.html → Order of Corners_rdoc.html } +18 -12
- data/reference/rdoc/files/reference/Tileability_rdoc.html +16 -10
- data/reference/rdoc/files/reference/{ZOrdering_rdoc.html → Z Ordering_rdoc.html } +18 -12
- data/reference/rdoc/files/reference/gosu_rb.html +16 -10
- data/reference/rdoc/fr_file_index.html +5 -5
- data/reference/rdoc/index.html +1 -1
- data/reference/rdoc/rdoc-style.css +4 -0
- metadata +129 -9
@@ -51,6 +51,7 @@ window.onload = initDynSections;
|
|
51
51
|
<div class="tabs">
|
52
52
|
<ul>
|
53
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
54
55
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
56
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
57
|
</ul>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
</head>
|
6
6
|
<body>
|
7
7
|
<div class="everything">
|
8
|
-
<!-- Generated by Doxygen 1.5.
|
8
|
+
<!-- Generated by Doxygen 1.5.9 -->
|
9
9
|
<script type="text/javascript">
|
10
10
|
<!--
|
11
11
|
function changeDisplayState (e){
|
@@ -51,6 +51,7 @@ window.onload = initDynSections;
|
|
51
51
|
<div class="tabs">
|
52
52
|
<ul>
|
53
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
54
55
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
56
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
57
|
</ul>
|
@@ -65,7 +66,7 @@ window.onload = initDynSections;
|
|
65
66
|
<div class="contents">
|
66
67
|
<h1>Version.hpp File Reference</h1>
|
67
68
|
<p>
|
68
|
-
<a href="
|
69
|
+
<a href="_version_8hpp_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
69
70
|
<tr><td></td></tr>
|
70
71
|
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
71
72
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_version_8hpp.html#a95368b04561d7027ab25fa2247a6734">GOSU_MAJOR_VERSION</a> 0</td></tr>
|
@@ -91,7 +92,7 @@ window.onload = initDynSections;
|
|
91
92
|
|
92
93
|
<p>
|
93
94
|
|
94
|
-
<p>Definition at line <a class="el" href="
|
95
|
+
<p>Definition at line <a class="el" href="_version_8hpp_source.html#l00004">4</a> of file <a class="el" href="_version_8hpp_source.html">Version.hpp</a>.</p>
|
95
96
|
|
96
97
|
</div>
|
97
98
|
</div><p>
|
@@ -108,7 +109,7 @@ window.onload = initDynSections;
|
|
108
109
|
|
109
110
|
<p>
|
110
111
|
|
111
|
-
<p>Definition at line <a class="el" href="
|
112
|
+
<p>Definition at line <a class="el" href="_version_8hpp_source.html#l00005">5</a> of file <a class="el" href="_version_8hpp_source.html">Version.hpp</a>.</p>
|
112
113
|
|
113
114
|
</div>
|
114
115
|
</div><p>
|
@@ -125,7 +126,7 @@ window.onload = initDynSections;
|
|
125
126
|
|
126
127
|
<p>
|
127
128
|
|
128
|
-
<p>Definition at line <a class="el" href="
|
129
|
+
<p>Definition at line <a class="el" href="_version_8hpp_source.html#l00006">6</a> of file <a class="el" href="_version_8hpp_source.html">Version.hpp</a>.</p>
|
129
130
|
|
130
131
|
</div>
|
131
132
|
</div><p>
|
@@ -142,7 +143,7 @@ window.onload = initDynSections;
|
|
142
143
|
|
143
144
|
<p>
|
144
145
|
|
145
|
-
<p>Definition at line <a class="el" href="
|
146
|
+
<p>Definition at line <a class="el" href="_version_8hpp_source.html#l00007">7</a> of file <a class="el" href="_version_8hpp_source.html">Version.hpp</a>.</p>
|
146
147
|
|
147
148
|
</div>
|
148
149
|
</div><p>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.9 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
55
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
56
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
57
|
+
</ul>
|
58
|
+
</div>
|
59
|
+
<div class="tabs">
|
60
|
+
<ul>
|
61
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
62
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
<h1>Version.hpp</h1><a href="_version_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef GOSU_VERSION_HPP</span>
|
66
|
+
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_VERSION_HPP</span>
|
67
|
+
<a name="l00003"></a>00003 <span class="preprocessor"></span>
|
68
|
+
<a name="l00004"></a><a class="code" href="_version_8hpp.html#a95368b04561d7027ab25fa2247a6734">00004</a> <span class="preprocessor">#define GOSU_MAJOR_VERSION 0</span>
|
69
|
+
<a name="l00005"></a><a class="code" href="_version_8hpp.html#ee9763fb37ec8cb0b519a6068d5bbc08">00005</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_MINOR_VERSION 7</span>
|
70
|
+
<a name="l00006"></a><a class="code" href="_version_8hpp.html#c0ba7d818f01c5b1ab86cfddab85446a">00006</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_POINT_VERSION 14</span>
|
71
|
+
<a name="l00007"></a><a class="code" href="_version_8hpp.html#a1800ac7b8a41bcaf007e342bc928794">00007</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_VERSION "0.7.14"</span>
|
72
|
+
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
73
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#endif</span>
|
74
|
+
</pre></div></div>
|
75
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
76
|
+
</div>
|
77
|
+
</body>
|
78
|
+
</html>
|
@@ -51,6 +51,7 @@ window.onload = initDynSections;
|
|
51
51
|
<div class="tabs">
|
52
52
|
<ul>
|
53
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
54
55
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
56
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
57
|
</ul>
|
@@ -77,43 +78,43 @@ window.onload = initDynSections;
|
|
77
78
|
<a name="l00014"></a>00014
|
78
79
|
<a name="l00015"></a>00015 <span class="keyword">namespace </span>Gosu
|
79
80
|
<a name="l00016"></a>00016 {
|
80
|
-
<a name="l00018"></a>00018 <span class="keyword">namespace </span>Win
|
81
|
+
<a name="l00018"></a><a class="code" href="namespace_gosu_1_1_win.html">00018</a> <span class="keyword">namespace </span>Win
|
81
82
|
<a name="l00019"></a>00019 {
|
82
|
-
<a name="l00021"></a>00021 HINSTANCE instance();
|
83
|
+
<a name="l00021"></a>00021 HINSTANCE <a class="code" href="namespace_gosu_1_1_win.html#83b6e6b81742595a0e9203484703db1b" title="Returns the instance handle of the application.">instance</a>();
|
83
84
|
<a name="l00022"></a>00022
|
84
|
-
<a name="l00025"></a>00025 <span class="keywordtype">void</span> handleMessage();
|
85
|
+
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>();
|
85
86
|
<a name="l00026"></a>00026
|
86
|
-
<a name="l00029"></a>00029 <span class="keywordtype">void</span> processMessages();
|
87
|
+
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.html#d00342fe1c6ac246a35732e61c814f66" title="Non-blocking function which processes all waiting messages but does not wait for...">processMessages</a>();
|
87
88
|
<a name="l00030"></a>00030
|
88
|
-
<a name="l00034"></a>00034 <span class="keywordtype">void</span> registerMessageHook(<span class="keyword">const</span> boost::function<<span class="keywordtype">bool</span> (MSG&)>& hook);
|
89
|
+
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.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);
|
89
90
|
<a name="l00035"></a>00035
|
90
|
-
<a name="l00039"></a>00039 GOSU_NORETURN <span class="keywordtype">void</span> throwLastError(<span class="keyword">const</span> std::string& action = <span class="stringliteral">""</span>);
|
91
|
+
<a name="l00039"></a>00039 GOSU_NORETURN <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.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>);
|
91
92
|
<a name="l00040"></a>00040
|
92
93
|
<a name="l00044"></a>00044 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
93
|
-
<a name="l00045"></a>00045 <span class="keyword">inline</span> T check(T valToCheck, <span class="keyword">const</span> std::string& action = <span class="stringliteral">""</span>)
|
94
|
+
<a name="l00045"></a><a class="code" href="namespace_gosu_1_1_win.html#6040740de3117cb7f53d2458e29e0d33">00045</a> <span class="keyword">inline</span> T <a class="code" href="namespace_gosu_1_1_win.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>)
|
94
95
|
<a name="l00046"></a>00046 {
|
95
96
|
<a name="l00047"></a>00047 <span class="keywordflow">if</span> (!valToCheck)
|
96
|
-
<a name="l00048"></a>00048 throwLastError(action);
|
97
|
+
<a name="l00048"></a>00048 <a class="code" href="namespace_gosu_1_1_win.html#9b691c48faa83e1f04f3c185f4fc88e0" title="Throws an exception according to the error which GetLastError() returns, optionally...">throwLastError</a>(action);
|
97
98
|
<a name="l00049"></a>00049 <span class="keywordflow">return</span> valToCheck;
|
98
99
|
<a name="l00050"></a>00050 }
|
99
100
|
<a name="l00051"></a>00051
|
100
101
|
<a name="l00052"></a>00052 <span class="comment">// IMPR: Why can't I use mem_fn for releasing objects even though it is</span>
|
101
102
|
<a name="l00053"></a>00053 <span class="comment">// shown like that in the shared_ptr documentation?</span>
|
102
103
|
<a name="l00054"></a>00054 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
103
|
-
<a name="l00055"></a>00055 <span class="keywordtype">void</span> releaseComPtr(T* ptr)
|
104
|
+
<a name="l00055"></a><a class="code" href="namespace_gosu_1_1_win.html#a94c44a4738f72711497fe26cb15c8b6">00055</a> <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.html#a94c44a4738f72711497fe26cb15c8b6">releaseComPtr</a>(T* ptr)
|
104
105
|
<a name="l00056"></a>00056 {
|
105
106
|
<a name="l00057"></a>00057 ptr->Release();
|
106
107
|
<a name="l00058"></a>00058 }
|
107
108
|
<a name="l00059"></a>00059
|
108
109
|
<a name="l00062"></a>00062 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
109
|
-
<a name="l00063"></a>00063 <span class="keyword">inline</span> boost::shared_ptr<T> shareComPtr(T* ptr)
|
110
|
+
<a name="l00063"></a><a class="code" href="namespace_gosu_1_1_win.html#a428c0599282230ad8c8c03a4eb1a054">00063</a> <span class="keyword">inline</span> boost::shared_ptr<T> <a class="code" href="namespace_gosu_1_1_win.html#a428c0599282230ad8c8c03a4eb1a054" title="Small helper function that transfers ownership of a COM interface to a boost::shared_ptr...">shareComPtr</a>(T* ptr)
|
110
111
|
<a name="l00064"></a>00064 {
|
111
112
|
<a name="l00065"></a>00065 <span class="keywordflow">return</span> boost::shared_ptr<T>(ptr, releaseComPtr<T>);
|
112
113
|
<a name="l00066"></a>00066 }
|
113
114
|
<a name="l00067"></a>00067
|
114
|
-
<a name="l00069"></a>00069 std::wstring appFilename();
|
115
|
+
<a name="l00069"></a>00069 std::wstring <a class="code" href="namespace_gosu_1_1_win.html#6a880b46db664c1be2b5115a1090c37b" title="Returns the executable&#39;s filename.">appFilename</a>();
|
115
116
|
<a name="l00070"></a>00070
|
116
|
-
<a name="l00072"></a>00072 std::wstring appDirectory();
|
117
|
+
<a name="l00072"></a>00072 std::wstring <a class="code" href="namespace_gosu_1_1_win.html#23f9098ea654c70ae845ec3fe6e9f20c" title="Returns the executable&#39;s containing directory.">appDirectory</a>();
|
117
118
|
<a name="l00073"></a>00073 }
|
118
119
|
<a name="l00074"></a>00074 }
|
119
120
|
<a name="l00075"></a>00075
|
@@ -5,7 +5,7 @@
|
|
5
5
|
</head>
|
6
6
|
<body>
|
7
7
|
<div class="everything">
|
8
|
-
<!-- Generated by Doxygen 1.5.
|
8
|
+
<!-- Generated by Doxygen 1.5.9 -->
|
9
9
|
<script type="text/javascript">
|
10
10
|
<!--
|
11
11
|
function changeDisplayState (e){
|
@@ -51,6 +51,7 @@ window.onload = initDynSections;
|
|
51
51
|
<div class="tabs">
|
52
52
|
<ul>
|
53
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
54
55
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
56
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
57
|
</ul>
|
@@ -63,13 +64,24 @@ window.onload = initDynSections;
|
|
63
64
|
</div>
|
64
65
|
</div>
|
65
66
|
<div class="contents">
|
66
|
-
<h1>WinUtility.hpp File Reference</h1>Contains some functions which are used to implement Gosu on Windows and might be useful for advanced users who try to integrate Gosu in a Win32 application.
|
67
|
+
<h1>WinUtility.hpp File Reference</h1>Contains some functions which are used to implement <a class="el" href="namespace_gosu.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="namespace_gosu.html" title="The library's main namespace.">Gosu</a> in a Win32 application.
|
67
68
|
<a href="#_details">More...</a>
|
68
69
|
<p>
|
69
70
|
|
70
71
|
<p>
|
71
|
-
<a href="
|
72
|
+
<a href="_win_utility_8hpp_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
72
73
|
<tr><td></td></tr>
|
74
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
75
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html">Gosu</a></td></tr>
|
76
|
+
|
77
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">The library's main namespace. <br></td></tr>
|
78
|
+
|
79
|
+
<p>
|
80
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu_1_1_win.html">Gosu::Win</a></td></tr>
|
81
|
+
|
82
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Implementation helpers for the Windows platform. <br></td></tr>
|
83
|
+
|
84
|
+
<p>
|
73
85
|
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
74
86
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">HINSTANCE </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu_1_1_win.html#83b6e6b81742595a0e9203484703db1b">Gosu::Win::instance</a> ()</td></tr>
|
75
87
|
|
@@ -104,11 +116,11 @@ window.onload = initDynSections;
|
|
104
116
|
|
105
117
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the executable's containing directory. <a href="#23f9098ea654c70ae845ec3fe6e9f20c"></a><br></td></tr>
|
106
118
|
</table>
|
107
|
-
<hr><
|
108
|
-
Contains some functions which are used to implement Gosu on Windows and might be useful for advanced users who try to integrate Gosu in a Win32 application.
|
119
|
+
<hr><h2>Detailed Description</h2>
|
120
|
+
Contains some functions which are used to implement <a class="el" href="namespace_gosu.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="namespace_gosu.html" title="The library's main namespace.">Gosu</a> in a Win32 application.
|
109
121
|
<p>
|
110
122
|
|
111
|
-
<p>Definition in file <a class="el" href="
|
123
|
+
<p>Definition in file <a class="el" href="_win_utility_8hpp_source.html">WinUtility.hpp</a>.</p>
|
112
124
|
</div>
|
113
125
|
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
114
126
|
</div>
|
@@ -0,0 +1,126 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.9 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
55
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
56
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
57
|
+
</ul>
|
58
|
+
</div>
|
59
|
+
<div class="tabs">
|
60
|
+
<ul>
|
61
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
62
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
<h1>WinUtility.hpp</h1><a href="_win_utility_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
66
|
+
<a name="l00002"></a>00002
|
67
|
+
<a name="l00003"></a>00003
|
68
|
+
<a name="l00004"></a>00004
|
69
|
+
<a name="l00005"></a>00005
|
70
|
+
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef GOSU_WINUTILITY_HPP</span>
|
71
|
+
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_WINUTILITY_HPP</span>
|
72
|
+
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
73
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <windows.h></span>
|
74
|
+
<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>
|
75
|
+
<a name="l00011"></a>00011 <span class="preprocessor">#include <boost/function.hpp></span>
|
76
|
+
<a name="l00012"></a>00012 <span class="preprocessor">#include <boost/shared_ptr.hpp></span>
|
77
|
+
<a name="l00013"></a>00013 <span class="preprocessor">#include <string></span>
|
78
|
+
<a name="l00014"></a>00014
|
79
|
+
<a name="l00015"></a>00015 <span class="keyword">namespace </span>Gosu
|
80
|
+
<a name="l00016"></a>00016 {
|
81
|
+
<a name="l00018"></a><a class="code" href="namespace_gosu_1_1_win.html">00018</a> <span class="keyword">namespace </span>Win
|
82
|
+
<a name="l00019"></a>00019 {
|
83
|
+
<a name="l00021"></a>00021 HINSTANCE <a class="code" href="namespace_gosu_1_1_win.html#83b6e6b81742595a0e9203484703db1b" title="Returns the instance handle of the application.">instance</a>();
|
84
|
+
<a name="l00022"></a>00022
|
85
|
+
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>();
|
86
|
+
<a name="l00026"></a>00026
|
87
|
+
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.html#d00342fe1c6ac246a35732e61c814f66" title="Non-blocking function which processes all waiting messages but does not wait for...">processMessages</a>();
|
88
|
+
<a name="l00030"></a>00030
|
89
|
+
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.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);
|
90
|
+
<a name="l00035"></a>00035
|
91
|
+
<a name="l00039"></a>00039 GOSU_NORETURN <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.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>);
|
92
|
+
<a name="l00040"></a>00040
|
93
|
+
<a name="l00044"></a>00044 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
94
|
+
<a name="l00045"></a><a class="code" href="namespace_gosu_1_1_win.html#6040740de3117cb7f53d2458e29e0d33">00045</a> <span class="keyword">inline</span> T <a class="code" href="namespace_gosu_1_1_win.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>)
|
95
|
+
<a name="l00046"></a>00046 {
|
96
|
+
<a name="l00047"></a>00047 <span class="keywordflow">if</span> (!valToCheck)
|
97
|
+
<a name="l00048"></a>00048 <a class="code" href="namespace_gosu_1_1_win.html#9b691c48faa83e1f04f3c185f4fc88e0" title="Throws an exception according to the error which GetLastError() returns, optionally...">throwLastError</a>(action);
|
98
|
+
<a name="l00049"></a>00049 <span class="keywordflow">return</span> valToCheck;
|
99
|
+
<a name="l00050"></a>00050 }
|
100
|
+
<a name="l00051"></a>00051
|
101
|
+
<a name="l00052"></a>00052 <span class="comment">// IMPR: Why can't I use mem_fn for releasing objects even though it is</span>
|
102
|
+
<a name="l00053"></a>00053 <span class="comment">// shown like that in the shared_ptr documentation?</span>
|
103
|
+
<a name="l00054"></a>00054 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
104
|
+
<a name="l00055"></a><a class="code" href="namespace_gosu_1_1_win.html#a94c44a4738f72711497fe26cb15c8b6">00055</a> <span class="keywordtype">void</span> <a class="code" href="namespace_gosu_1_1_win.html#a94c44a4738f72711497fe26cb15c8b6">releaseComPtr</a>(T* ptr)
|
105
|
+
<a name="l00056"></a>00056 {
|
106
|
+
<a name="l00057"></a>00057 ptr->Release();
|
107
|
+
<a name="l00058"></a>00058 }
|
108
|
+
<a name="l00059"></a>00059
|
109
|
+
<a name="l00062"></a>00062 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
110
|
+
<a name="l00063"></a><a class="code" href="namespace_gosu_1_1_win.html#a428c0599282230ad8c8c03a4eb1a054">00063</a> <span class="keyword">inline</span> boost::shared_ptr<T> <a class="code" href="namespace_gosu_1_1_win.html#a428c0599282230ad8c8c03a4eb1a054" title="Small helper function that transfers ownership of a COM interface to a boost::shared_ptr...">shareComPtr</a>(T* ptr)
|
111
|
+
<a name="l00064"></a>00064 {
|
112
|
+
<a name="l00065"></a>00065 <span class="keywordflow">return</span> boost::shared_ptr<T>(ptr, releaseComPtr<T>);
|
113
|
+
<a name="l00066"></a>00066 }
|
114
|
+
<a name="l00067"></a>00067
|
115
|
+
<a name="l00069"></a>00069 std::wstring <a class="code" href="namespace_gosu_1_1_win.html#6a880b46db664c1be2b5115a1090c37b" title="Returns the executable&#39;s filename.">appFilename</a>();
|
116
|
+
<a name="l00070"></a>00070
|
117
|
+
<a name="l00072"></a>00072 std::wstring <a class="code" href="namespace_gosu_1_1_win.html#23f9098ea654c70ae845ec3fe6e9f20c" title="Returns the executable&#39;s containing directory.">appDirectory</a>();
|
118
|
+
<a name="l00073"></a>00073 }
|
119
|
+
<a name="l00074"></a>00074 }
|
120
|
+
<a name="l00075"></a>00075
|
121
|
+
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
|
122
|
+
</pre></div></div>
|
123
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
124
|
+
</div>
|
125
|
+
</body>
|
126
|
+
</html>
|
@@ -51,6 +51,7 @@ window.onload = initDynSections;
|
|
51
51
|
<div class="tabs">
|
52
52
|
<ul>
|
53
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
54
55
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
56
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
57
|
</ul>
|
@@ -122,7 +123,7 @@ window.onload = initDynSections;
|
|
122
123
|
<a name="l00080"></a>00080 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
|
123
124
|
<a name="l00081"></a>00081 <span class="preprocessor"></span> <span class="comment">// Only on Windows, used for integrating with GUI toolkits.</span>
|
124
125
|
<a name="l00082"></a>00082 HWND handle() <span class="keyword">const</span>;
|
125
|
-
<a name="l00083"></a>00083 <span class="keyword">virtual</span> LRESULT handleMessage(UINT message, WPARAM wparam,
|
126
|
+
<a name="l00083"></a>00083 <span class="keyword">virtual</span> LRESULT <a class="code" href="namespace_gosu_1_1_win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>(UINT message, WPARAM wparam,
|
126
127
|
<a name="l00084"></a>00084 LPARAM lparam);
|
127
128
|
<a name="l00085"></a>00085 <span class="preprocessor"> #endif</span>
|
128
129
|
<a name="l00086"></a>00086 <span class="preprocessor"></span>
|
@@ -138,11 +139,11 @@ window.onload = initDynSections;
|
|
138
139
|
<a name="l00096"></a>00096 <span class="comment">// Note that it does not hurt to override them even if you compile</span>
|
139
140
|
<a name="l00097"></a>00097 <span class="comment">// for another platform; if you don't specify "virtual" the code</span>
|
140
141
|
<a name="l00098"></a>00098 <span class="comment">// should even be stripped away cleanly.</span>
|
141
|
-
<a name="l00099"></a>00099 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesBegan(<span class="keyword">const</span> Touches
|
142
|
-
<a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesMoved(<span class="keyword">const</span> Touches
|
143
|
-
<a name="l00101"></a>00101 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesEnded(<span class="keyword">const</span> Touches
|
142
|
+
<a name="l00099"></a>00099 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesBegan(<span class="keyword">const</span> <a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Touches</a>& touches) {}
|
143
|
+
<a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesMoved(<span class="keyword">const</span> <a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Touches</a>& touches) {}
|
144
|
+
<a name="l00101"></a>00101 <span class="keyword">virtual</span> <span class="keywordtype">void</span> touchesEnded(<span class="keyword">const</span> <a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Touches</a>& touches) {}
|
144
145
|
<a name="l00102"></a>00102 <span class="comment">// Currently known touches.</span>
|
145
|
-
<a name="l00103"></a>00103 <span class="keyword">const</span> Touches
|
146
|
+
<a name="l00103"></a>00103 <span class="keyword">const</span> <a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Touches</a>& currentTouches() <span class="keyword">const</span>;
|
146
147
|
<a name="l00104"></a>00104 <span class="preprocessor"> #endif </span>
|
147
148
|
<a name="l00105"></a>00105 <span class="preprocessor"></span>
|
148
149
|
<a name="l00106"></a>00106 <span class="preprocessor"> #endif</span>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
</head>
|
6
6
|
<body>
|
7
7
|
<div class="everything">
|
8
|
-
<!-- Generated by Doxygen 1.5.
|
8
|
+
<!-- Generated by Doxygen 1.5.9 -->
|
9
9
|
<script type="text/javascript">
|
10
10
|
<!--
|
11
11
|
function changeDisplayState (e){
|
@@ -51,6 +51,7 @@ window.onload = initDynSections;
|
|
51
51
|
<div class="tabs">
|
52
52
|
<ul>
|
53
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
54
55
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
56
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
57
|
</ul>
|
@@ -68,18 +69,24 @@ window.onload = initDynSections;
|
|
68
69
|
<p>
|
69
70
|
|
70
71
|
<p>
|
71
|
-
<a href="
|
72
|
+
<a href="_window_8hpp_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
72
73
|
<tr><td></td></tr>
|
73
74
|
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
74
75
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td></tr>
|
75
76
|
|
76
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convenient all-in-one class that serves as the foundation of a standard Gosu application. <a href="class_gosu_1_1_window.html#_details">More...</a><br></td></tr>
|
77
|
+
<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="namespace_gosu.html" title="The library's main namespace.">Gosu</a> application. <a href="class_gosu_1_1_window.html#_details">More...</a><br></td></tr>
|
78
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
79
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html">Gosu</a></td></tr>
|
80
|
+
|
81
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">The library's main namespace. <br></td></tr>
|
82
|
+
|
83
|
+
<p>
|
77
84
|
</table>
|
78
|
-
<hr><
|
85
|
+
<hr><h2>Detailed Description</h2>
|
79
86
|
Interface of the Window class.
|
80
87
|
<p>
|
81
88
|
|
82
|
-
<p>Definition in file <a class="el" href="
|
89
|
+
<p>Definition in file <a class="el" href="_window_8hpp_source.html">Window.hpp</a>.</p>
|
83
90
|
</div>
|
84
91
|
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
85
92
|
</div>
|