gosu 0.7.19 → 0.7.20
Sign up to get free protection for your applications and to get access to all the features.
- data/Gosu/Input.hpp +12 -8
- data/Gosu/Math.hpp +13 -0
- data/Gosu/TextInput.hpp +5 -0
- data/Gosu/Version.hpp +2 -2
- data/GosuImpl/Graphics/TextUnix.cpp +253 -0
- data/GosuImpl/InputMac.mm +4 -4
- data/GosuImpl/InputWin.cpp +4 -4
- data/GosuImpl/InputX.cpp +15 -15
- data/GosuImpl/Math.cpp +28 -4
- data/GosuImpl/RubyGosu.swg +14 -3
- data/GosuImpl/RubyGosuStub.mm +8 -15
- data/GosuImpl/RubyGosu_wrap.cxx +113 -6
- data/GosuImpl/TextInputMac.mm +10 -1
- data/GosuImpl/TextInputWin.cpp +10 -0
- data/GosuImpl/TextInputX.cpp +10 -0
- data/GosuImpl/WindowMac.mm +15 -4
- data/GosuImpl/WindowWin.cpp +16 -7
- data/examples/TextInput.rb +15 -0
- data/lib/gosu.rb +5 -8
- data/linux/extconf.rb +34 -9
- metadata +13 -272
- data/GosuImpl/Graphics/TextPangoFT.cpp +0 -186
- data/Rakefile +0 -314
- data/examples/TextInput.cpp +0 -192
- data/examples/Tutorial.cpp +0 -215
- data/linux/Makefile.in +0 -99
- data/linux/configure +0 -5850
- data/linux/configure.ac +0 -110
- data/reference/cpp/_audio_8hpp-source.html +0 -178
- data/reference/cpp/_audio_8hpp.html +0 -100
- data/reference/cpp/_audio_8hpp_source.html +0 -170
- data/reference/cpp/_auto_link_8hpp-source.html +0 -85
- data/reference/cpp/_auto_link_8hpp.html +0 -84
- data/reference/cpp/_auto_link_8hpp_source.html +0 -85
- data/reference/cpp/_bitmap_8hpp-source.html +0 -131
- data/reference/cpp/_bitmap_8hpp.html +0 -114
- data/reference/cpp/_bitmap_8hpp_source.html +0 -131
- data/reference/cpp/_buttons_mac_8hpp-source.html +0 -206
- data/reference/cpp/_buttons_mac_8hpp.html +0 -240
- data/reference/cpp/_buttons_mac_8hpp_source.html +0 -206
- data/reference/cpp/_color_8hpp-source.html +0 -216
- data/reference/cpp/_color_8hpp.html +0 -130
- data/reference/cpp/_color_8hpp_source.html +0 -232
- data/reference/cpp/_directories_8hpp-source.html +0 -89
- data/reference/cpp/_directories_8hpp.html +0 -103
- data/reference/cpp/_directories_8hpp_source.html +0 -89
- data/reference/cpp/_font_8hpp-source.html +0 -116
- data/reference/cpp/_font_8hpp.html +0 -94
- data/reference/cpp/_font_8hpp_source.html +0 -116
- data/reference/cpp/_fwd_8hpp-source.html +0 -99
- data/reference/cpp/_fwd_8hpp.html +0 -90
- data/reference/cpp/_fwd_8hpp_source.html +0 -99
- data/reference/cpp/_gosu_8hpp-source.html +0 -97
- data/reference/cpp/_gosu_8hpp.html +0 -84
- data/reference/cpp/_gosu_8hpp_source.html +0 -97
- data/reference/cpp/_graphics_8hpp-source.html +0 -135
- data/reference/cpp/_graphics_8hpp.html +0 -101
- data/reference/cpp/_graphics_8hpp_source.html +0 -144
- data/reference/cpp/_graphics_base_8hpp-source.html +0 -116
- data/reference/cpp/_graphics_base_8hpp.html +0 -128
- data/reference/cpp/_graphics_base_8hpp_source.html +0 -117
- data/reference/cpp/_i_o_8hpp-source.html +0 -302
- data/reference/cpp/_i_o_8hpp.html +0 -129
- data/reference/cpp/_i_o_8hpp_source.html +0 -295
- data/reference/cpp/_image_8hpp-source.html +0 -173
- data/reference/cpp/_image_8hpp.html +0 -103
- data/reference/cpp/_image_8hpp_source.html +0 -176
- data/reference/cpp/_image_data_8hpp-source.html +0 -109
- data/reference/cpp/_image_data_8hpp.html +0 -97
- data/reference/cpp/_image_data_8hpp_source.html +0 -109
- data/reference/cpp/_input_8hpp-source.html +0 -183
- data/reference/cpp/_input_8hpp.html +0 -109
- data/reference/cpp/_input_8hpp_source.html +0 -183
- data/reference/cpp/_math_8hpp-source.html +0 -157
- data/reference/cpp/_math_8hpp.html +0 -152
- data/reference/cpp/_math_8hpp_source.html +0 -157
- data/reference/cpp/_platform_8hpp-source.html +0 -134
- data/reference/cpp/_platform_8hpp.html +0 -162
- data/reference/cpp/_platform_8hpp_source.html +0 -134
- data/reference/cpp/_rot_flip_8hpp-source.html +0 -185
- data/reference/cpp/_rot_flip_8hpp.html +0 -130
- data/reference/cpp/_rot_flip_8hpp_source.html +0 -185
- data/reference/cpp/_sockets_8hpp-source.html +0 -175
- data/reference/cpp/_sockets_8hpp.html +0 -124
- data/reference/cpp/_sockets_8hpp_source.html +0 -175
- data/reference/cpp/_text_8hpp-source.html +0 -103
- data/reference/cpp/_text_8hpp.html +0 -106
- data/reference/cpp/_text_8hpp_source.html +0 -103
- data/reference/cpp/_text_input_8hpp-source.html +0 -111
- data/reference/cpp/_text_input_8hpp.html +0 -94
- data/reference/cpp/_text_input_8hpp_source.html +0 -116
- data/reference/cpp/_timing_8hpp-source.html +0 -83
- data/reference/cpp/_timing_8hpp.html +0 -97
- data/reference/cpp/_timing_8hpp_source.html +0 -83
- data/reference/cpp/_utility_8hpp-source.html +0 -90
- data/reference/cpp/_utility_8hpp.html +0 -103
- data/reference/cpp/_utility_8hpp_source.html +0 -90
- data/reference/cpp/_version_8hpp-source.html +0 -78
- data/reference/cpp/_version_8hpp.html +0 -154
- data/reference/cpp/_version_8hpp_source.html +0 -78
- data/reference/cpp/_win_utility_8hpp-source.html +0 -126
- data/reference/cpp/_win_utility_8hpp.html +0 -128
- data/reference/cpp/_win_utility_8hpp_source.html +0 -126
- data/reference/cpp/_window_8hpp-source.html +0 -158
- data/reference/cpp/_window_8hpp.html +0 -94
- data/reference/cpp/_window_8hpp_source.html +0 -159
- data/reference/cpp/annotated.html +0 -98
- data/reference/cpp/class_gosu_1_1_audio-members.html +0 -76
- data/reference/cpp/class_gosu_1_1_audio.html +0 -155
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +0 -86
- data/reference/cpp/class_gosu_1_1_bitmap.html +0 -506
- data/reference/cpp/class_gosu_1_1_buffer-members.html +0 -85
- data/reference/cpp/class_gosu_1_1_buffer.html +0 -341
- data/reference/cpp/class_gosu_1_1_buffer.png +0 -0
- data/reference/cpp/class_gosu_1_1_button-members.html +0 -77
- data/reference/cpp/class_gosu_1_1_button.html +0 -198
- data/reference/cpp/class_gosu_1_1_color-members.html +0 -108
- data/reference/cpp/class_gosu_1_1_color.html +0 -972
- data/reference/cpp/class_gosu_1_1_comm_socket-members.html +0 -91
- data/reference/cpp/class_gosu_1_1_comm_socket.html +0 -506
- data/reference/cpp/class_gosu_1_1_file-members.html +0 -82
- data/reference/cpp/class_gosu_1_1_file.html +0 -276
- data/reference/cpp/class_gosu_1_1_file.png +0 -0
- data/reference/cpp/class_gosu_1_1_font-members.html +0 -82
- data/reference/cpp/class_gosu_1_1_font.html +0 -506
- data/reference/cpp/class_gosu_1_1_graphics-members.html +0 -93
- data/reference/cpp/class_gosu_1_1_graphics.html +0 -817
- data/reference/cpp/class_gosu_1_1_image-members.html +0 -87
- data/reference/cpp/class_gosu_1_1_image.html +0 -797
- data/reference/cpp/class_gosu_1_1_image_data-members.html +0 -78
- data/reference/cpp/class_gosu_1_1_image_data.html +0 -282
- data/reference/cpp/class_gosu_1_1_input-members.html +0 -86
- data/reference/cpp/class_gosu_1_1_input.html +0 -418
- data/reference/cpp/class_gosu_1_1_listener_socket-members.html +0 -79
- data/reference/cpp/class_gosu_1_1_listener_socket.html +0 -222
- data/reference/cpp/class_gosu_1_1_message_socket-members.html +0 -81
- data/reference/cpp/class_gosu_1_1_message_socket.html +0 -306
- data/reference/cpp/class_gosu_1_1_reader-members.html +0 -81
- data/reference/cpp/class_gosu_1_1_reader.html +0 -323
- data/reference/cpp/class_gosu_1_1_resource-members.html +0 -80
- data/reference/cpp/class_gosu_1_1_resource.html +0 -306
- data/reference/cpp/class_gosu_1_1_resource.png +0 -0
- data/reference/cpp/class_gosu_1_1_rot_flip-members.html +0 -84
- data/reference/cpp/class_gosu_1_1_rot_flip.html +0 -352
- data/reference/cpp/class_gosu_1_1_sample-members.html +0 -80
- data/reference/cpp/class_gosu_1_1_sample.html +0 -324
- data/reference/cpp/class_gosu_1_1_sample_instance-members.html +0 -82
- data/reference/cpp/class_gosu_1_1_sample_instance.html +0 -318
- data/reference/cpp/class_gosu_1_1_song-members.html +0 -90
- data/reference/cpp/class_gosu_1_1_song.html +0 -493
- data/reference/cpp/class_gosu_1_1_text_input-members.html +0 -80
- data/reference/cpp/class_gosu_1_1_text_input.html +0 -255
- data/reference/cpp/class_gosu_1_1_window-members.html +0 -91
- data/reference/cpp/class_gosu_1_1_window.html +0 -534
- data/reference/cpp/class_gosu_1_1_writer-members.html +0 -80
- data/reference/cpp/class_gosu_1_1_writer.html +0 -293
- data/reference/cpp/classes.html +0 -86
- data/reference/cpp/closed.gif +0 -0
- data/reference/cpp/cpp.css +0 -155
- data/reference/cpp/doxygen.png +0 -0
- data/reference/cpp/files.html +0 -99
- data/reference/cpp/functions.html +0 -128
- data/reference/cpp/functions_0x62.html +0 -144
- data/reference/cpp/functions_0x63.html +0 -143
- data/reference/cpp/functions_0x64.html +0 -143
- data/reference/cpp/functions_0x65.html +0 -122
- data/reference/cpp/functions_0x66.html +0 -144
- data/reference/cpp/functions_0x67.html +0 -136
- data/reference/cpp/functions_0x68.html +0 -122
- data/reference/cpp/functions_0x69.html +0 -124
- data/reference/cpp/functions_0x6b.html +0 -116
- data/reference/cpp/functions_0x6c.html +0 -118
- data/reference/cpp/functions_0x6d.html +0 -126
- data/reference/cpp/functions_0x6e.html +0 -121
- data/reference/cpp/functions_0x6f.html +0 -127
- data/reference/cpp/functions_0x70.html +0 -137
- data/reference/cpp/functions_0x72.html +0 -157
- data/reference/cpp/functions_0x73.html +0 -180
- data/reference/cpp/functions_0x74.html +0 -128
- data/reference/cpp/functions_0x75.html +0 -123
- data/reference/cpp/functions_0x76.html +0 -118
- data/reference/cpp/functions_0x77.html +0 -132
- data/reference/cpp/functions_0x78.html +0 -116
- data/reference/cpp/functions_0x79.html +0 -118
- data/reference/cpp/functions_0x7e.html +0 -142
- data/reference/cpp/functions_enum.html +0 -88
- data/reference/cpp/functions_eval.html +0 -90
- data/reference/cpp/functions_func.html +0 -124
- data/reference/cpp/functions_func_0x62.html +0 -136
- data/reference/cpp/functions_func_0x63.html +0 -137
- data/reference/cpp/functions_func_0x64.html +0 -141
- data/reference/cpp/functions_func_0x65.html +0 -120
- data/reference/cpp/functions_func_0x66.html +0 -140
- data/reference/cpp/functions_func_0x67.html +0 -130
- data/reference/cpp/functions_func_0x68.html +0 -120
- data/reference/cpp/functions_func_0x69.html +0 -120
- data/reference/cpp/functions_func_0x6b.html +0 -114
- data/reference/cpp/functions_func_0x6c.html +0 -114
- data/reference/cpp/functions_func_0x6d.html +0 -124
- data/reference/cpp/functions_func_0x6e.html +0 -117
- data/reference/cpp/functions_func_0x6f.html +0 -114
- data/reference/cpp/functions_func_0x70.html +0 -135
- data/reference/cpp/functions_func_0x72.html +0 -151
- data/reference/cpp/functions_func_0x73.html +0 -174
- data/reference/cpp/functions_func_0x74.html +0 -120
- data/reference/cpp/functions_func_0x75.html +0 -121
- data/reference/cpp/functions_func_0x76.html +0 -116
- data/reference/cpp/functions_func_0x77.html +0 -128
- data/reference/cpp/functions_func_0x7e.html +0 -140
- data/reference/cpp/functions_type.html +0 -88
- data/reference/cpp/functions_vars.html +0 -135
- data/reference/cpp/globals.html +0 -95
- data/reference/cpp/globals_defs.html +0 -95
- data/reference/cpp/hierarchy.html +0 -100
- data/reference/cpp/index.html +0 -67
- data/reference/cpp/namespace_gosu.html +0 -3311
- data/reference/cpp/namespace_gosu_1_1_colors.html +0 -287
- data/reference/cpp/namespace_gosu_1_1_win.html +0 -354
- data/reference/cpp/namespacemembers.html +0 -139
- data/reference/cpp/namespacemembers_0x62.html +0 -143
- data/reference/cpp/namespacemembers_0x63.html +0 -125
- data/reference/cpp/namespacemembers_0x64.html +0 -121
- data/reference/cpp/namespacemembers_0x66.html +0 -129
- data/reference/cpp/namespacemembers_0x67.html +0 -163
- data/reference/cpp/namespacemembers_0x68.html +0 -113
- data/reference/cpp/namespacemembers_0x69.html +0 -117
- data/reference/cpp/namespacemembers_0x6b.html +0 -289
- data/reference/cpp/namespacemembers_0x6c.html +0 -119
- data/reference/cpp/namespacemembers_0x6d.html +0 -131
- data/reference/cpp/namespacemembers_0x6e.html +0 -127
- data/reference/cpp/namespacemembers_0x6f.html +0 -121
- data/reference/cpp/namespacemembers_0x70.html +0 -115
- data/reference/cpp/namespacemembers_0x71.html +0 -113
- data/reference/cpp/namespacemembers_0x72.html +0 -165
- data/reference/cpp/namespacemembers_0x73.html +0 -135
- data/reference/cpp/namespacemembers_0x74.html +0 -129
- data/reference/cpp/namespacemembers_0x75.html +0 -117
- data/reference/cpp/namespacemembers_0x77.html +0 -117
- data/reference/cpp/namespacemembers_0x79.html +0 -113
- data/reference/cpp/namespacemembers_0x7a.html +0 -115
- data/reference/cpp/namespacemembers_enum.html +0 -103
- data/reference/cpp/namespacemembers_eval.html +0 -445
- data/reference/cpp/namespacemembers_func.html +0 -269
- data/reference/cpp/namespacemembers_type.html +0 -93
- data/reference/cpp/namespacemembers_vars.html +0 -117
- data/reference/cpp/namespaces.html +0 -76
- data/reference/cpp/open.gif +0 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +0 -78
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +0 -186
- data/reference/cpp/struct_gosu_1_1_touch-members.html +0 -76
- data/reference/cpp/struct_gosu_1_1_touch.html +0 -154
- data/reference/cpp/tab_b.gif +0 -0
- data/reference/cpp/tab_l.gif +0 -0
- data/reference/cpp/tab_r.gif +0 -0
- data/reference/cpp/tabs.css +0 -105
- data/reference/rdoc/classes/Gosu.html +0 -1546
- data/reference/rdoc/classes/Gosu/Color.html +0 -660
- data/reference/rdoc/classes/Gosu/Font.html +0 -545
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +0 -412
- data/reference/rdoc/classes/Gosu/Image.html +0 -706
- data/reference/rdoc/classes/Gosu/Sample.html +0 -476
- data/reference/rdoc/classes/Gosu/SampleInstance.html +0 -523
- data/reference/rdoc/classes/Gosu/Song.html +0 -568
- data/reference/rdoc/classes/Gosu/TextInput.html +0 -444
- data/reference/rdoc/classes/Gosu/Window.html +0 -911
- data/reference/rdoc/classes/Numeric.html +0 -479
- data/reference/rdoc/created.rid +0 -1
- data/reference/rdoc/files/COPYING_txt.html +0 -391
- data/reference/rdoc/files/README_txt.html +0 -387
- data/reference/rdoc/files/reference/Deployment on OS X_rdoc.html +0 -381
- data/reference/rdoc/files/reference/Deployment on Windows_rdoc.html +0 -385
- data/reference/rdoc/files/reference/Drawing with Colors_rdoc.html +0 -363
- data/reference/rdoc/files/reference/Order of Corners_rdoc.html +0 -358
- data/reference/rdoc/files/reference/Tileability_rdoc.html +0 -374
- data/reference/rdoc/files/reference/Z Ordering_rdoc.html +0 -361
- data/reference/rdoc/files/reference/gosu_rb.html +0 -348
- data/reference/rdoc/fr_class_index.html +0 -12
- data/reference/rdoc/fr_file_index.html +0 -10
- data/reference/rdoc/fr_method_index.html +0 -66
- data/reference/rdoc/index.html +0 -1
- data/reference/rdoc/rdoc-style.css +0 -320
@@ -1,109 +0,0 @@
|
|
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>ImageData.hpp</h1><a href="_image_data_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 <span class="preprocessor">#ifndef GOSU_IMAGEDATA_HPP</span>
|
69
|
-
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_IMAGEDATA_HPP</span>
|
70
|
-
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
71
|
-
<a name="l00007"></a>00007 <span class="preprocessor">#include <<a class="code" href="_color_8hpp.html" title="Interface of the Color class.">Gosu/Color.hpp</a>></span>
|
72
|
-
<a name="l00008"></a>00008 <span class="preprocessor">#include <<a class="code" href="_graphics_base_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>></span>
|
73
|
-
<a name="l00009"></a>00009 <span class="preprocessor">#include <boost/optional.hpp></span>
|
74
|
-
<a name="l00010"></a>00010 <span class="preprocessor">#include <boost/utility.hpp></span>
|
75
|
-
<a name="l00011"></a>00011
|
76
|
-
<a name="l00012"></a>00012 <span class="keyword">namespace </span>Gosu
|
77
|
-
<a name="l00013"></a>00013 {
|
78
|
-
<a name="l00017"></a><a class="code" href="struct_gosu_1_1_g_l_tex_info.html">00017</a> <span class="keyword">struct </span><a class="code" href="struct_gosu_1_1_g_l_tex_info.html" title="Contains information about the underlying OpenGL texture and the u/v space used for...">GLTexInfo</a>
|
79
|
-
<a name="l00018"></a>00018 {
|
80
|
-
<a name="l00019"></a><a class="code" href="struct_gosu_1_1_g_l_tex_info.html#648c5f3e307c6851514290c5e5978533">00019</a> <span class="keywordtype">int</span> <a class="code" href="struct_gosu_1_1_g_l_tex_info.html#648c5f3e307c6851514290c5e5978533">texName</a>;
|
81
|
-
<a name="l00020"></a><a class="code" href="struct_gosu_1_1_g_l_tex_info.html#f78ee5e1430ece3adeb855fdd1edc73a">00020</a> <span class="keywordtype">double</span> <a class="code" href="struct_gosu_1_1_g_l_tex_info.html#daaa57079a47831a89611640cdc7c4b0">left</a>, <a class="code" href="struct_gosu_1_1_g_l_tex_info.html#00c8d79a355ade39710abfe68b3f8de2">right</a>, <a class="code" href="struct_gosu_1_1_g_l_tex_info.html#f78ee5e1430ece3adeb855fdd1edc73a">top</a>, <a class="code" href="struct_gosu_1_1_g_l_tex_info.html#ca58b2219ae910bfe465678f01d6bdf3">bottom</a>;
|
82
|
-
<a name="l00021"></a>00021 };
|
83
|
-
<a name="l00022"></a>00022
|
84
|
-
<a name="l00028"></a><a class="code" href="class_gosu_1_1_image_data.html">00028</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_image_data.html" title="The ImageData class is an abstract base class for drawable images.">ImageData</a> : boost::noncopyable
|
85
|
-
<a name="l00029"></a>00029 {
|
86
|
-
<a name="l00030"></a>00030 <span class="keyword">public</span>:
|
87
|
-
<a name="l00031"></a><a class="code" href="class_gosu_1_1_image_data.html#8bc105f4bf822770692df6717d0f15ea">00031</a> <span class="keyword">virtual</span> <a class="code" href="class_gosu_1_1_image_data.html#8bc105f4bf822770692df6717d0f15ea">~ImageData</a>()
|
88
|
-
<a name="l00032"></a>00032 {
|
89
|
-
<a name="l00033"></a>00033 }
|
90
|
-
<a name="l00034"></a>00034
|
91
|
-
<a name="l00035"></a>00035 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_image_data.html#e841d572afc6b096fcda052296acd297">width</a>() <span class="keyword">const</span> = 0;
|
92
|
-
<a name="l00036"></a>00036 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_image_data.html#792312627eab901702e7236b91a1f2a8">height</a>() <span class="keyword">const</span> = 0;
|
93
|
-
<a name="l00037"></a>00037
|
94
|
-
<a name="l00038"></a>00038 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_image_data.html#23f7dce3f5474b07a0a7b76e7dcb6d89">draw</a>(<span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> y1, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c1,
|
95
|
-
<a name="l00039"></a>00039 <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> y2, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c2,
|
96
|
-
<a name="l00040"></a>00040 <span class="keywordtype">double</span> x3, <span class="keywordtype">double</span> y3, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c3,
|
97
|
-
<a name="l00041"></a>00041 <span class="keywordtype">double</span> x4, <span class="keywordtype">double</span> y4, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c4,
|
98
|
-
<a name="l00042"></a>00042 <a class="code" href="namespace_gosu.html#a2fd8fe9574c0ad3fd52557cb160be49" title="Represents the Z position of something drawn with Gosu&#39;s graphics system.">ZPos</a> z, <a class="code" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9" title="Determines the way colors are combined when one is drawn onto another.">AlphaMode</a> mode) <span class="keyword">const</span> = 0;
|
99
|
-
<a name="l00043"></a>00043
|
100
|
-
<a name="l00044"></a>00044 <span class="keyword">virtual</span> boost::optional<GLTexInfo> <a class="code" href="class_gosu_1_1_image_data.html#7c267460374172a2edf46480100d497d">glTexInfo</a>() <span class="keyword">const</span> = 0;
|
101
|
-
<a name="l00045"></a>00045 };
|
102
|
-
<a name="l00046"></a>00046 }
|
103
|
-
<a name="l00047"></a>00047
|
104
|
-
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
|
105
|
-
</pre></div></div>
|
106
|
-
<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>
|
107
|
-
</div>
|
108
|
-
</body>
|
109
|
-
</html>
|
@@ -1,183 +0,0 @@
|
|
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.8 -->
|
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>Input.hpp</h1><a href="_input_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 <span class="preprocessor">#ifndef GOSU_INPUT_HPP</span>
|
69
|
-
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_INPUT_HPP</span>
|
70
|
-
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
71
|
-
<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>
|
72
|
-
<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>
|
73
|
-
<a name="l00009"></a>00009
|
74
|
-
<a name="l00010"></a>00010 <span class="preprocessor">#ifdef GOSU_IS_WIN</span>
|
75
|
-
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#include <Gosu/ButtonsWin.hpp></span>
|
76
|
-
<a name="l00012"></a>00012 <span class="preprocessor">#include <windows.h></span>
|
77
|
-
<a name="l00013"></a>00013 <span class="preprocessor">#endif</span>
|
78
|
-
<a name="l00014"></a>00014 <span class="preprocessor"></span>
|
79
|
-
<a name="l00015"></a>00015 <span class="preprocessor">#ifdef GOSU_IS_MAC</span>
|
80
|
-
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="_buttons_mac_8hpp.html">Gosu/ButtonsMac.hpp</a>></span>
|
81
|
-
<a name="l00017"></a>00017 <span class="preprocessor">#endif</span>
|
82
|
-
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
83
|
-
<a name="l00019"></a>00019 <span class="preprocessor">#ifdef GOSU_IS_X</span>
|
84
|
-
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include <X11/Xlib.h></span>
|
85
|
-
<a name="l00021"></a>00021 <span class="preprocessor">#include <X11/Xutil.h></span>
|
86
|
-
<a name="l00022"></a>00022 <span class="preprocessor">#include <X11/keysym.h></span>
|
87
|
-
<a name="l00023"></a>00023 <span class="preprocessor">#include <Gosu/ButtonsX.hpp></span>
|
88
|
-
<a name="l00024"></a>00024 <span class="preprocessor">#endif</span>
|
89
|
-
<a name="l00025"></a>00025 <span class="preprocessor"></span>
|
90
|
-
<a name="l00026"></a>00026 <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>
|
91
|
-
<a name="l00027"></a>00027 <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>
|
92
|
-
<a name="l00028"></a>00028 <span class="preprocessor">#include <boost/function.hpp></span>
|
93
|
-
<a name="l00029"></a>00029 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
94
|
-
<a name="l00030"></a>00030 <span class="preprocessor">#include <vector></span>
|
95
|
-
<a name="l00031"></a>00031
|
96
|
-
<a name="l00032"></a>00032 <span class="keyword">namespace </span>Gosu
|
97
|
-
<a name="l00033"></a>00033 {
|
98
|
-
<a name="l00035"></a><a class="code" href="class_gosu_1_1_button.html">00035</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a>
|
99
|
-
<a name="l00036"></a>00036 {
|
100
|
-
<a name="l00037"></a>00037 <span class="keywordtype">unsigned</span> id;
|
101
|
-
<a name="l00038"></a>00038
|
102
|
-
<a name="l00039"></a>00039 <span class="keyword">public</span>:
|
103
|
-
<a name="l00041"></a><a class="code" href="class_gosu_1_1_button.html#e32f254fdf87bd98cfaa2c1be62e5600">00041</a> <span class="keyword">explicit</span> <a class="code" href="class_gosu_1_1_button.html#e32f254fdf87bd98cfaa2c1be62e5600" title="For internal use.">Button</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">id</span>) : id(id) {}
|
104
|
-
<a name="l00043"></a><a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2">00043</a> <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
|
105
|
-
<a name="l00044"></a>00044
|
106
|
-
<a name="l00046"></a><a class="code" href="class_gosu_1_1_button.html#0277cb92caff494eb2b568101ada4254">00046</a> <a class="code" href="class_gosu_1_1_button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>() : id(<a class="code" href="namespace_gosu.html#b085b2dbdd533b49dadaf217dbcf83687e7d91259dc080b212aecc4514e053ee">noButton</a>) {}
|
107
|
-
<a name="l00047"></a>00047
|
108
|
-
<a name="l00049"></a><a class="code" href="class_gosu_1_1_button.html#b0d53d357fa263d676d803c6c6baf843">00049</a> <a class="code" href="class_gosu_1_1_button.html#b0d53d357fa263d676d803c6c6baf843" title="Conversion from ButtonName constants.">Button</a>(<a class="code" href="namespace_gosu.html#b085b2dbdd533b49dadaf217dbcf8368" title="List of all the button ids that can be used with Gosu::Input.">ButtonName</a> name) : id(name) {}
|
109
|
-
<a name="l00050"></a>00050 };
|
110
|
-
<a name="l00051"></a>00051
|
111
|
-
<a name="l00052"></a>00052 <span class="comment">// Available even on non-iPhone platforms to make it easier to compile the</span>
|
112
|
-
<a name="l00053"></a>00053 <span class="comment">// same source for multiple platforms.</span>
|
113
|
-
<a name="l00054"></a>00054
|
114
|
-
<a name="l00057"></a><a class="code" href="struct_gosu_1_1_touch.html">00057</a> <span class="keyword">struct </span><a class="code" href="struct_gosu_1_1_touch.html" title="Struct that saves information about a touch on the surface of a multi- touch device...">Touch</a>
|
115
|
-
<a name="l00058"></a>00058 {
|
116
|
-
<a name="l00060"></a><a class="code" href="struct_gosu_1_1_touch.html#26d3515809552a27b27568cb91916f05">00060</a> <span class="keywordtype">void</span>* <a class="code" href="struct_gosu_1_1_touch.html#26d3515809552a27b27568cb91916f05" title="Allows for identification of a touch across calls.">id</a>;
|
117
|
-
<a name="l00062"></a><a class="code" href="struct_gosu_1_1_touch.html#77b6f4feb4bf9f44f72f3d78607e2ffd">00062</a> <span class="keywordtype">double</span> <a class="code" href="struct_gosu_1_1_touch.html#e25c8be1e21a6fb2c5b50e84d635731b" title="Position of a touch on the touch screen.">x</a>, <a class="code" href="struct_gosu_1_1_touch.html#77b6f4feb4bf9f44f72f3d78607e2ffd">y</a>;
|
118
|
-
<a name="l00063"></a>00063 };
|
119
|
-
<a name="l00064"></a><a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">00064</a> <span class="keyword">typedef</span> std::vector<Touch> <a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Touches</a>;
|
120
|
-
<a name="l00065"></a>00065
|
121
|
-
<a name="l00067"></a><a class="code" href="namespace_gosu.html#8abc916db977614382f04aef415c21c3">00067</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_gosu.html#6198974ec645118e54cf8e3fc3b827cb">operator==</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> lhs, <a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> rhs)
|
122
|
-
<a name="l00068"></a>00068 {
|
123
|
-
<a name="l00069"></a>00069 <span class="keywordflow">return</span> lhs.<a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>() == rhs.<a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>();
|
124
|
-
<a name="l00070"></a>00070 }
|
125
|
-
<a name="l00071"></a><a class="code" href="namespace_gosu.html#d6ebc33043d3f495cf4bfbea2184e6d6">00071</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_gosu.html#12095af239f1cecbcba59a22ffb1af93">operator!=</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> lhs, <a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> rhs)
|
126
|
-
<a name="l00072"></a>00072 {
|
127
|
-
<a name="l00073"></a>00073 <span class="keywordflow">return</span> !(lhs == rhs);
|
128
|
-
<a name="l00074"></a>00074 }
|
129
|
-
<a name="l00075"></a>00075
|
130
|
-
<a name="l00078"></a><a class="code" href="class_gosu_1_1_input.html">00078</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>
|
131
|
-
<a name="l00079"></a>00079 {
|
132
|
-
<a name="l00080"></a>00080 <span class="keyword">struct </span>Impl;
|
133
|
-
<a name="l00081"></a>00081 boost::scoped_ptr<Impl> pimpl;
|
134
|
-
<a name="l00082"></a>00082
|
135
|
-
<a name="l00083"></a>00083 <span class="keyword">public</span>:
|
136
|
-
<a name="l00084"></a>00084 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
|
137
|
-
<a name="l00085"></a>00085 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>(HWND window);
|
138
|
-
<a name="l00086"></a>00086 <span class="preprocessor"> #endif</span>
|
139
|
-
<a name="l00087"></a>00087 <span class="preprocessor"></span>
|
140
|
-
<a name="l00088"></a>00088 <span class="preprocessor"> #ifdef GOSU_IS_MAC</span>
|
141
|
-
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor"> #ifdef GOSU_IS_IPHONE</span>
|
142
|
-
<a name="l00090"></a>00090 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>();
|
143
|
-
<a name="l00091"></a>00091 <span class="preprocessor"> #else</span>
|
144
|
-
<a name="l00092"></a>00092 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>(<span class="keywordtype">void</span>* nswindow);
|
145
|
-
<a name="l00093"></a>00093 <span class="keywordtype">bool</span> feedNSEvent(<span class="keywordtype">void</span>* event);
|
146
|
-
<a name="l00094"></a>00094 <span class="preprocessor"> #endif</span>
|
147
|
-
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
|
148
|
-
<a name="l00096"></a>00096 <span class="preprocessor"></span>
|
149
|
-
<a name="l00097"></a>00097 <span class="preprocessor"> #ifdef GOSU_IS_X</span>
|
150
|
-
<a name="l00098"></a>00098 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>(::Display* display, ::<a class="code" href="class_gosu_1_1_window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a> window);
|
151
|
-
<a name="l00099"></a>00099 <span class="keywordtype">bool</span> feedXEvent(::XEvent& event);
|
152
|
-
<a name="l00100"></a>00100 <span class="preprocessor"> #endif</span>
|
153
|
-
<a name="l00101"></a>00101 <span class="preprocessor"></span>
|
154
|
-
<a name="l00102"></a>00102 <a class="code" href="class_gosu_1_1_input.html#377648a97961ab71084c29d72c3d9b87">~Input</a>();
|
155
|
-
<a name="l00103"></a>00103
|
156
|
-
<a name="l00105"></a>00105 <span class="keyword">static</span> <span class="keywordtype">wchar_t</span> <a class="code" href="class_gosu_1_1_input.html#fc9e732c19055c9f80afb147eac8414b" title="Returns the character a button usually produces, or 0.">idToChar</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn);
|
157
|
-
<a name="l00108"></a>00108 <span class="keyword">static</span> <a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> <a class="code" href="class_gosu_1_1_input.html#1cb42fd48c134fac5c2c8496b1e9f05a" title="Returns the button that has to be pressed to produce the given character, or noButton...">charToId</a>(<span class="keywordtype">wchar_t</span> ch);
|
158
|
-
<a name="l00109"></a>00109
|
159
|
-
<a name="l00112"></a>00112 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_input.html#b4645c1bf26bceea7f8cfc43680667f1" title="Returns true if a button is currently pressed.">down</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn) <span class="keyword">const</span>;
|
160
|
-
<a name="l00113"></a>00113
|
161
|
-
<a name="l00116"></a>00116 <span class="keywordtype">double</span> <a class="code" href="class_gosu_1_1_input.html#6849d640adfe2d576431ab2551c105c1" title="Returns the horizontal position of the mouse relative to the top left corner of the...">mouseX</a>() <span class="keyword">const</span>;
|
162
|
-
<a name="l00118"></a>00118 <span class="keywordtype">double</span> <a class="code" href="class_gosu_1_1_input.html#5bedd5d599dfe530043b3b0f6e3bf2a4" title="See mouseX.">mouseY</a>() <span class="keyword">const</span>;
|
163
|
-
<a name="l00119"></a>00119
|
164
|
-
<a name="l00123"></a>00123 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#df5d807bd1cbac95bd4bd86dc5588dea" title="Immediately moves the mouse as far towards the desired position as possible.">setMousePosition</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
|
165
|
-
<a name="l00124"></a>00124
|
166
|
-
<a name="l00125"></a>00125 <span class="comment">// Undocumented for the moment.</span>
|
167
|
-
<a name="l00126"></a>00126 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#26a8d3c2c0d46628bfd17183ac266ea3">setMouseFactors</a>(<span class="keywordtype">double</span> factorX, <span class="keywordtype">double</span> factorY);
|
168
|
-
<a name="l00127"></a>00127
|
169
|
-
<a name="l00130"></a>00130 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#904cd360ad96838a61b408d5aa6729aa" title="Collects new information about which buttons are pressed, where the mouse is and...">update</a>();
|
170
|
-
<a name="l00131"></a>00131
|
171
|
-
<a name="l00134"></a><a class="code" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">00134</a> boost::function<void (Button)> <a class="code" href="class_gosu_1_1_input.html#b8ea5dbbd08d812cb8d5efa399750e77" title="Assignable events that are called by update.">onButtonDown</a>, <a class="code" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">onButtonUp</a>;
|
172
|
-
<a name="l00135"></a>00135
|
173
|
-
<a name="l00137"></a>00137 <a class="code" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* <a class="code" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884" title="Returns the currently active TextInput instance, or 0.">textInput</a>() <span class="keyword">const</span>;
|
174
|
-
<a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#2bc699256125f13779e9bebc8e4a4b57" title="Sets the currently active TextInput, or clears it (input = 0).">setTextInput</a>(<a class="code" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* input);
|
175
|
-
<a name="l00140"></a>00140 };
|
176
|
-
<a name="l00141"></a>00141 }
|
177
|
-
<a name="l00142"></a>00142
|
178
|
-
<a name="l00143"></a>00143 <span class="preprocessor">#endif</span>
|
179
|
-
</pre></div></div>
|
180
|
-
<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>
|
181
|
-
</div>
|
182
|
-
</body>
|
183
|
-
</html>
|
@@ -1,109 +0,0 @@
|
|
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
|
-
</div>
|
66
|
-
<div class="contents">
|
67
|
-
<h1>Input.hpp File Reference</h1>Interface of the Input class.
|
68
|
-
<a href="#_details">More...</a>
|
69
|
-
<p>
|
70
|
-
|
71
|
-
<p>
|
72
|
-
<a href="_input_8hpp_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
73
|
-
<tr><td></td></tr>
|
74
|
-
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
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_button.html">Gosu::Button</a></td></tr>
|
76
|
-
|
77
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Very lightweight class that identifies a button (keyboard, mouse or other device). <a href="class_gosu_1_1_button.html#_details">More...</a><br></td></tr>
|
78
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_gosu_1_1_touch.html">Gosu::Touch</a></td></tr>
|
79
|
-
|
80
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Struct that saves information about a touch on the surface of a multi- touch device. <a href="struct_gosu_1_1_touch.html#_details">More...</a><br></td></tr>
|
81
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td></tr>
|
82
|
-
|
83
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Manages initialization and shutdown of the input system. <a href="class_gosu_1_1_input.html#_details">More...</a><br></td></tr>
|
84
|
-
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
85
|
-
<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>
|
86
|
-
|
87
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">The library's main namespace. <br></td></tr>
|
88
|
-
|
89
|
-
<p>
|
90
|
-
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
|
91
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector< Touch > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Gosu::Touches</a></td></tr>
|
92
|
-
|
93
|
-
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
94
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#8abc916db977614382f04aef415c21c3">Gosu::operator==</a> (Button lhs, Button rhs)</td></tr>
|
95
|
-
|
96
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Tests whether two Buttons identify the same physical button. <a href="#8abc916db977614382f04aef415c21c3"></a><br></td></tr>
|
97
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#d6ebc33043d3f495cf4bfbea2184e6d6">Gosu::operator!=</a> (Button lhs, Button rhs)</td></tr>
|
98
|
-
|
99
|
-
</table>
|
100
|
-
<hr><h2>Detailed Description</h2>
|
101
|
-
Interface of the Input class.
|
102
|
-
<p>
|
103
|
-
|
104
|
-
<p>Definition in file <a class="el" href="_input_8hpp_source.html">Input.hpp</a>.</p>
|
105
|
-
</div>
|
106
|
-
<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>
|
107
|
-
</div>
|
108
|
-
</body>
|
109
|
-
</html>
|
@@ -1,183 +0,0 @@
|
|
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>Input.hpp</h1><a href="_input_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 <span class="preprocessor">#ifndef GOSU_INPUT_HPP</span>
|
69
|
-
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_INPUT_HPP</span>
|
70
|
-
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
71
|
-
<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>
|
72
|
-
<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>
|
73
|
-
<a name="l00009"></a>00009
|
74
|
-
<a name="l00010"></a>00010 <span class="preprocessor">#ifdef GOSU_IS_WIN</span>
|
75
|
-
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#include <Gosu/ButtonsWin.hpp></span>
|
76
|
-
<a name="l00012"></a>00012 <span class="preprocessor">#include <windows.h></span>
|
77
|
-
<a name="l00013"></a>00013 <span class="preprocessor">#endif</span>
|
78
|
-
<a name="l00014"></a>00014 <span class="preprocessor"></span>
|
79
|
-
<a name="l00015"></a>00015 <span class="preprocessor">#ifdef GOSU_IS_MAC</span>
|
80
|
-
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="_buttons_mac_8hpp.html">Gosu/ButtonsMac.hpp</a>></span>
|
81
|
-
<a name="l00017"></a>00017 <span class="preprocessor">#endif</span>
|
82
|
-
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
83
|
-
<a name="l00019"></a>00019 <span class="preprocessor">#ifdef GOSU_IS_X</span>
|
84
|
-
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include <X11/Xlib.h></span>
|
85
|
-
<a name="l00021"></a>00021 <span class="preprocessor">#include <X11/Xutil.h></span>
|
86
|
-
<a name="l00022"></a>00022 <span class="preprocessor">#include <X11/keysym.h></span>
|
87
|
-
<a name="l00023"></a>00023 <span class="preprocessor">#include <Gosu/ButtonsX.hpp></span>
|
88
|
-
<a name="l00024"></a>00024 <span class="preprocessor">#endif</span>
|
89
|
-
<a name="l00025"></a>00025 <span class="preprocessor"></span>
|
90
|
-
<a name="l00026"></a>00026 <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>
|
91
|
-
<a name="l00027"></a>00027 <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>
|
92
|
-
<a name="l00028"></a>00028 <span class="preprocessor">#include <boost/function.hpp></span>
|
93
|
-
<a name="l00029"></a>00029 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
94
|
-
<a name="l00030"></a>00030 <span class="preprocessor">#include <vector></span>
|
95
|
-
<a name="l00031"></a>00031
|
96
|
-
<a name="l00032"></a>00032 <span class="keyword">namespace </span>Gosu
|
97
|
-
<a name="l00033"></a>00033 {
|
98
|
-
<a name="l00035"></a><a class="code" href="class_gosu_1_1_button.html">00035</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a>
|
99
|
-
<a name="l00036"></a>00036 {
|
100
|
-
<a name="l00037"></a>00037 <span class="keywordtype">unsigned</span> id;
|
101
|
-
<a name="l00038"></a>00038
|
102
|
-
<a name="l00039"></a>00039 <span class="keyword">public</span>:
|
103
|
-
<a name="l00041"></a><a class="code" href="class_gosu_1_1_button.html#e32f254fdf87bd98cfaa2c1be62e5600">00041</a> <span class="keyword">explicit</span> <a class="code" href="class_gosu_1_1_button.html#e32f254fdf87bd98cfaa2c1be62e5600" title="For internal use.">Button</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">id</span>) : id(id) {}
|
104
|
-
<a name="l00043"></a><a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2">00043</a> <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
|
105
|
-
<a name="l00044"></a>00044
|
106
|
-
<a name="l00046"></a><a class="code" href="class_gosu_1_1_button.html#0277cb92caff494eb2b568101ada4254">00046</a> <a class="code" href="class_gosu_1_1_button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>() : id(<a class="code" href="namespace_gosu.html#b085b2dbdd533b49dadaf217dbcf83687e7d91259dc080b212aecc4514e053ee">noButton</a>) {}
|
107
|
-
<a name="l00047"></a>00047
|
108
|
-
<a name="l00049"></a><a class="code" href="class_gosu_1_1_button.html#b0d53d357fa263d676d803c6c6baf843">00049</a> <a class="code" href="class_gosu_1_1_button.html#b0d53d357fa263d676d803c6c6baf843" title="Conversion from ButtonName constants.">Button</a>(<a class="code" href="namespace_gosu.html#b085b2dbdd533b49dadaf217dbcf8368" title="List of all the button ids that can be used with Gosu::Input.">ButtonName</a> name) : id(name) {}
|
109
|
-
<a name="l00050"></a>00050 };
|
110
|
-
<a name="l00051"></a>00051
|
111
|
-
<a name="l00052"></a>00052 <span class="comment">// Available even on non-iPhone platforms to make it easier to compile the</span>
|
112
|
-
<a name="l00053"></a>00053 <span class="comment">// same source for multiple platforms.</span>
|
113
|
-
<a name="l00054"></a>00054
|
114
|
-
<a name="l00057"></a><a class="code" href="struct_gosu_1_1_touch.html">00057</a> <span class="keyword">struct </span><a class="code" href="struct_gosu_1_1_touch.html" title="Struct that saves information about a touch on the surface of a multi- touch device...">Touch</a>
|
115
|
-
<a name="l00058"></a>00058 {
|
116
|
-
<a name="l00060"></a><a class="code" href="struct_gosu_1_1_touch.html#26d3515809552a27b27568cb91916f05">00060</a> <span class="keywordtype">void</span>* <a class="code" href="struct_gosu_1_1_touch.html#26d3515809552a27b27568cb91916f05" title="Allows for identification of a touch across calls.">id</a>;
|
117
|
-
<a name="l00062"></a><a class="code" href="struct_gosu_1_1_touch.html#77b6f4feb4bf9f44f72f3d78607e2ffd">00062</a> <span class="keywordtype">double</span> <a class="code" href="struct_gosu_1_1_touch.html#e25c8be1e21a6fb2c5b50e84d635731b" title="Position of a touch on the touch screen.">x</a>, <a class="code" href="struct_gosu_1_1_touch.html#77b6f4feb4bf9f44f72f3d78607e2ffd">y</a>;
|
118
|
-
<a name="l00063"></a>00063 };
|
119
|
-
<a name="l00064"></a><a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">00064</a> <span class="keyword">typedef</span> std::vector<Touch> <a class="code" href="namespace_gosu.html#fb6633385bb7471380c0e621bfe605fb">Touches</a>;
|
120
|
-
<a name="l00065"></a>00065
|
121
|
-
<a name="l00067"></a><a class="code" href="namespace_gosu.html#8abc916db977614382f04aef415c21c3">00067</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_gosu.html#6198974ec645118e54cf8e3fc3b827cb">operator==</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> lhs, <a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> rhs)
|
122
|
-
<a name="l00068"></a>00068 {
|
123
|
-
<a name="l00069"></a>00069 <span class="keywordflow">return</span> lhs.<a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>() == rhs.<a class="code" href="class_gosu_1_1_button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>();
|
124
|
-
<a name="l00070"></a>00070 }
|
125
|
-
<a name="l00071"></a><a class="code" href="namespace_gosu.html#d6ebc33043d3f495cf4bfbea2184e6d6">00071</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_gosu.html#12095af239f1cecbcba59a22ffb1af93">operator!=</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> lhs, <a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> rhs)
|
126
|
-
<a name="l00072"></a>00072 {
|
127
|
-
<a name="l00073"></a>00073 <span class="keywordflow">return</span> !(lhs == rhs);
|
128
|
-
<a name="l00074"></a>00074 }
|
129
|
-
<a name="l00075"></a>00075
|
130
|
-
<a name="l00078"></a><a class="code" href="class_gosu_1_1_input.html">00078</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>
|
131
|
-
<a name="l00079"></a>00079 {
|
132
|
-
<a name="l00080"></a>00080 <span class="keyword">struct </span>Impl;
|
133
|
-
<a name="l00081"></a>00081 boost::scoped_ptr<Impl> pimpl;
|
134
|
-
<a name="l00082"></a>00082
|
135
|
-
<a name="l00083"></a>00083 <span class="keyword">public</span>:
|
136
|
-
<a name="l00084"></a>00084 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
|
137
|
-
<a name="l00085"></a>00085 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>(HWND window);
|
138
|
-
<a name="l00086"></a>00086 <span class="preprocessor"> #endif</span>
|
139
|
-
<a name="l00087"></a>00087 <span class="preprocessor"></span>
|
140
|
-
<a name="l00088"></a>00088 <span class="preprocessor"> #ifdef GOSU_IS_MAC</span>
|
141
|
-
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor"> #ifdef GOSU_IS_IPHONE</span>
|
142
|
-
<a name="l00090"></a>00090 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>();
|
143
|
-
<a name="l00091"></a>00091 <span class="preprocessor"> #else</span>
|
144
|
-
<a name="l00092"></a>00092 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>(<span class="keywordtype">void</span>* nswindow);
|
145
|
-
<a name="l00093"></a>00093 <span class="keywordtype">bool</span> feedNSEvent(<span class="keywordtype">void</span>* event);
|
146
|
-
<a name="l00094"></a>00094 <span class="preprocessor"> #endif</span>
|
147
|
-
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
|
148
|
-
<a name="l00096"></a>00096 <span class="preprocessor"></span>
|
149
|
-
<a name="l00097"></a>00097 <span class="preprocessor"> #ifdef GOSU_IS_X</span>
|
150
|
-
<a name="l00098"></a>00098 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a>(::Display* display, ::<a class="code" href="class_gosu_1_1_window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a> window);
|
151
|
-
<a name="l00099"></a>00099 <span class="keywordtype">bool</span> feedXEvent(::XEvent& event);
|
152
|
-
<a name="l00100"></a>00100 <span class="preprocessor"> #endif</span>
|
153
|
-
<a name="l00101"></a>00101 <span class="preprocessor"></span>
|
154
|
-
<a name="l00102"></a>00102 <a class="code" href="class_gosu_1_1_input.html#377648a97961ab71084c29d72c3d9b87">~Input</a>();
|
155
|
-
<a name="l00103"></a>00103
|
156
|
-
<a name="l00105"></a>00105 <span class="keyword">static</span> <span class="keywordtype">wchar_t</span> <a class="code" href="class_gosu_1_1_input.html#fc9e732c19055c9f80afb147eac8414b" title="Returns the character a button usually produces, or 0.">idToChar</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn);
|
157
|
-
<a name="l00108"></a>00108 <span class="keyword">static</span> <a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> <a class="code" href="class_gosu_1_1_input.html#1cb42fd48c134fac5c2c8496b1e9f05a" title="Returns the button that has to be pressed to produce the given character, or noButton...">charToId</a>(<span class="keywordtype">wchar_t</span> ch);
|
158
|
-
<a name="l00109"></a>00109
|
159
|
-
<a name="l00112"></a>00112 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_input.html#b4645c1bf26bceea7f8cfc43680667f1" title="Returns true if a button is currently pressed.">down</a>(<a class="code" href="class_gosu_1_1_button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn) <span class="keyword">const</span>;
|
160
|
-
<a name="l00113"></a>00113
|
161
|
-
<a name="l00116"></a>00116 <span class="keywordtype">double</span> <a class="code" href="class_gosu_1_1_input.html#6849d640adfe2d576431ab2551c105c1" title="Returns the horizontal position of the mouse relative to the top left corner of the...">mouseX</a>() <span class="keyword">const</span>;
|
162
|
-
<a name="l00118"></a>00118 <span class="keywordtype">double</span> <a class="code" href="class_gosu_1_1_input.html#5bedd5d599dfe530043b3b0f6e3bf2a4" title="See mouseX.">mouseY</a>() <span class="keyword">const</span>;
|
163
|
-
<a name="l00119"></a>00119
|
164
|
-
<a name="l00123"></a>00123 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#df5d807bd1cbac95bd4bd86dc5588dea" title="Immediately moves the mouse as far towards the desired position as possible.">setMousePosition</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
|
165
|
-
<a name="l00124"></a>00124
|
166
|
-
<a name="l00125"></a>00125 <span class="comment">// Undocumented for the moment.</span>
|
167
|
-
<a name="l00126"></a>00126 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#26a8d3c2c0d46628bfd17183ac266ea3">setMouseFactors</a>(<span class="keywordtype">double</span> factorX, <span class="keywordtype">double</span> factorY);
|
168
|
-
<a name="l00127"></a>00127
|
169
|
-
<a name="l00130"></a>00130 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#904cd360ad96838a61b408d5aa6729aa" title="Collects new information about which buttons are pressed, where the mouse is and...">update</a>();
|
170
|
-
<a name="l00131"></a>00131
|
171
|
-
<a name="l00134"></a><a class="code" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">00134</a> boost::function<void (Button)> <a class="code" href="class_gosu_1_1_input.html#b8ea5dbbd08d812cb8d5efa399750e77" title="Assignable events that are called by update.">onButtonDown</a>, <a class="code" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">onButtonUp</a>;
|
172
|
-
<a name="l00135"></a>00135
|
173
|
-
<a name="l00137"></a>00137 <a class="code" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* <a class="code" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884" title="Returns the currently active TextInput instance, or 0.">textInput</a>() <span class="keyword">const</span>;
|
174
|
-
<a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_input.html#2bc699256125f13779e9bebc8e4a4b57" title="Sets the currently active TextInput, or clears it (input = 0).">setTextInput</a>(<a class="code" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* input);
|
175
|
-
<a name="l00140"></a>00140 };
|
176
|
-
<a name="l00141"></a>00141 }
|
177
|
-
<a name="l00142"></a>00142
|
178
|
-
<a name="l00143"></a>00143 <span class="preprocessor">#endif</span>
|
179
|
-
</pre></div></div>
|
180
|
-
<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>
|
181
|
-
</div>
|
182
|
-
</body>
|
183
|
-
</html>
|