Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:07 CET 2013 -->
6
<TITLE>
7
Touchable (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Touchable (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Touchable.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.TouchFocus.html" title="class in com.badlogic.gdx.scenes.scene2d"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;NEXT CLASS</FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../../index.html?com/badlogic/gdx/scenes/scene2d/Touchable.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Touchable.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.scenes.scene2d</FONT>
107
<BR>
108
Enum Touchable</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">java.lang.Enum&lt;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A>&gt;
112
      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.scenes.scene2d.Touchable</B>
113
</PRE>
114
<DL>
115
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Comparable&lt;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A>&gt;</DD>
116
</DL>
117
<HR>
118
<DL>
119
<DT><PRE>public enum <B>Touchable</B><DT>extends java.lang.Enum&lt;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A>&gt;</DL>
120
</PRE>
121
 
122
<P>
123
Determines how touch input events are distributed to an actor and any children.
124
<P>
125
 
126
<P>
127
<DL>
128
<DT><B>Author:</B></DT>
129
  <DD>Nathan Sweet</DD>
130
</DL>
131
<HR>
132
 
133
<P>
134
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
135
 
136
<A NAME="enum_constant_summary"><!-- --></A>
137
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
138
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
139
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
140
<B>Enum Constant Summary</B></FONT></TH>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html#childrenOnly">childrenOnly</A></B></CODE>
144
 
145
<BR>
146
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No touch input events will be received by the actor, but children will still receive events.</TD>
147
</TR>
148
<TR BGCOLOR="white" CLASS="TableRowColor">
149
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html#disabled">disabled</A></B></CODE>
150
 
151
<BR>
152
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No touch input events will be received by the actor or any children.</TD>
153
</TR>
154
<TR BGCOLOR="white" CLASS="TableRowColor">
155
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html#enabled">enabled</A></B></CODE>
156
 
157
<BR>
158
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All touch input events will be received by the actor and any children.</TD>
159
</TR>
160
</TABLE>
161
&nbsp;
162
<!-- ========== METHOD SUMMARY =========== -->
163
 
164
<A NAME="method_summary"><!-- --></A>
165
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
166
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
167
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
168
<B>Method Summary</B></FONT></TH>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172
<CODE>static&nbsp;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A></CODE></FONT></TD>
173
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html#valueOf(java.lang.String)">valueOf</A></B>(java.lang.String&nbsp;name)</CODE>
174
 
175
<BR>
176
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the enum constant of this type with the specified name.</TD>
177
</TR>
178
<TR BGCOLOR="white" CLASS="TableRowColor">
179
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180
<CODE>static&nbsp;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A>[]</CODE></FONT></TD>
181
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html#values()">values</A></B>()</CODE>
182
 
183
<BR>
184
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array containing the constants of this enum type, in
185
the order they are declared.</TD>
186
</TR>
187
</TABLE>
188
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Enum"><!-- --></A>
189
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
190
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
191
<TH ALIGN="left"><B>Methods inherited from class java.lang.Enum</B></TH>
192
</TR>
193
<TR BGCOLOR="white" CLASS="TableRowColor">
194
<TD><CODE>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf</CODE></TD>
195
</TR>
196
</TABLE>
197
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
198
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
199
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
200
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
201
</TR>
202
<TR BGCOLOR="white" CLASS="TableRowColor">
203
<TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
204
</TR>
205
</TABLE>
206
&nbsp;
207
<P>
208
 
209
<!-- ============ ENUM CONSTANT DETAIL =========== -->
210
 
211
<A NAME="enum_constant_detail"><!-- --></A>
212
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
214
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
215
<B>Enum Constant Detail</B></FONT></TH>
216
</TR>
217
</TABLE>
218
 
219
<A NAME="enabled"><!-- --></A><H3>
220
enabled</H3>
221
<PRE>
222
public static final <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A> <B>enabled</B></PRE>
223
<DL>
224
<DD>All touch input events will be received by the actor and any children.
225
<P>
226
<DL>
227
</DL>
228
</DL>
229
<HR>
230
 
231
<A NAME="disabled"><!-- --></A><H3>
232
disabled</H3>
233
<PRE>
234
public static final <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A> <B>disabled</B></PRE>
235
<DL>
236
<DD>No touch input events will be received by the actor or any children.
237
<P>
238
<DL>
239
</DL>
240
</DL>
241
<HR>
242
 
243
<A NAME="childrenOnly"><!-- --></A><H3>
244
childrenOnly</H3>
245
<PRE>
246
public static final <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A> <B>childrenOnly</B></PRE>
247
<DL>
248
<DD>No touch input events will be received by the actor, but children will still receive events. Note that events on the
249
 children will still bubble to the parent.
250
<P>
251
<DL>
252
</DL>
253
</DL>
254
 
255
<!-- ============ METHOD DETAIL ========== -->
256
 
257
<A NAME="method_detail"><!-- --></A>
258
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
259
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
260
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
261
<B>Method Detail</B></FONT></TH>
262
</TR>
263
</TABLE>
264
 
265
<A NAME="values()"><!-- --></A><H3>
266
values</H3>
267
<PRE>
268
public static <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A>[] <B>values</B>()</PRE>
269
<DL>
270
<DD>Returns an array containing the constants of this enum type, in
271
the order they are declared.  This method may be used to iterate
272
over the constants as follows:
273
<pre>
274
for (Touchable c : Touchable.values())
275
&nbsp;   System.out.println(c);
276
</pre>
277
<P>
278
<DD><DL>
279
 
280
<DT><B>Returns:</B><DD>an array containing the constants of this enum type, in
281
the order they are declared</DL>
282
</DD>
283
</DL>
284
<HR>
285
 
286
<A NAME="valueOf(java.lang.String)"><!-- --></A><H3>
287
valueOf</H3>
288
<PRE>
289
public static <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable</A> <B>valueOf</B>(java.lang.String&nbsp;name)</PRE>
290
<DL>
291
<DD>Returns the enum constant of this type with the specified name.
292
The string must match <I>exactly</I> an identifier used to declare an
293
enum constant in this type.  (Extraneous whitespace characters are
294
not permitted.)
295
<P>
296
<DD><DL>
297
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned.
298
<DT><B>Returns:</B><DD>the enum constant with the specified name
299
<DT><B>Throws:</B>
300
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if this enum type has no constant
301
with the specified name
302
<DD><CODE>java.lang.NullPointerException</CODE> - if the argument is null</DL>
303
</DD>
304
</DL>
305
<!-- ========= END OF CLASS DATA ========= -->
306
<HR>
307
 
308
 
309
<!-- ======= START OF BOTTOM NAVBAR ====== -->
310
<A NAME="navbar_bottom"><!-- --></A>
311
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
312
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
313
<TR>
314
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
315
<A NAME="navbar_bottom_firstrow"><!-- --></A>
316
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
317
  <TR ALIGN="center" VALIGN="top">
318
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
319
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
320
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
321
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Touchable.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
322
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
323
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
324
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
325
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
326
  </TR>
327
</TABLE>
328
</TD>
329
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
330
libgdx API</EM>
331
</TD>
332
</TR>
333
 
334
<TR>
335
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
336
&nbsp;<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.TouchFocus.html" title="class in com.badlogic.gdx.scenes.scene2d"><B>PREV CLASS</B></A>&nbsp;
337
&nbsp;NEXT CLASS</FONT></TD>
338
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
339
  <A HREF="../../../../../index.html?com/badlogic/gdx/scenes/scene2d/Touchable.html" target="_top"><B>FRAMES</B></A>  &nbsp;
340
&nbsp;<A HREF="Touchable.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
341
&nbsp;<SCRIPT type="text/javascript">
342
  <!--
343
  if(window==top) {
344
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
345
  }
346
  //-->
347
</SCRIPT>
348
<NOSCRIPT>
349
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
350
</NOSCRIPT>
351
 
352
 
353
</FONT></TD>
354
</TR>
355
<TR>
356
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
357
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
358
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
359
DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
360
</TR>
361
</TABLE>
362
<A NAME="skip-navbar_bottom"></A>
363
<!-- ======== END OF BOTTOM NAVBAR ======= -->
364
 
365
<HR>
366
 
367
                                <div style="font-size:9pt"><i>
368
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
369
                                </i></div>
370
 
371
</BODY>
372
</HTML>