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 | Stage (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="Stage (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> </TD> |
||
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Stage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/InputListener.html" title="class in com.badlogic.gdx.scenes.scene2d"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.TouchFocus.html" title="class in com.badlogic.gdx.scenes.scene2d"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 75 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 76 | <A HREF="../../../../../index.html?com/badlogic/gdx/scenes/scene2d/Stage.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="Stage.html" target="_top"><B>NO FRAMES</B></A> |
||
| 78 | <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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 95 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 96 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 | Class Stage</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">com.badlogic.gdx.InputAdapter</A> |
||
| 112 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.scenes.scene2d.Stage</B> |
||
| 113 | </PRE> |
||
| 114 | <DL> |
||
| 115 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>, <A HREF="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DD> |
||
| 116 | </DL> |
||
| 117 | <HR> |
||
| 118 | <DL> |
||
| 119 | <DT><PRE>public class <B>Stage</B><DT>extends <A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A><DT>implements <A HREF="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DL> |
||
| 120 | </PRE> |
||
| 121 | |||
| 122 | <P> |
||
| 123 | A 2D scenegraph containing hierarchies of <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d"><CODE>actors</CODE></A>. Stage handles the viewport and distributing input events. |
||
| 124 | <p> |
||
| 125 | A stage fills the whole screen. <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>setViewport(float, float, boolean)</CODE></A> controls the coordinates used within the stage and sets up the camera used |
||
| 126 | to convert between stage coordinates and screen coordinates. * |
||
| 127 | <p> |
||
| 128 | A stage must receive input events so it can distribute them to actors. This is typically done by passing the stage to |
||
| 129 | <A HREF="../../../../../com/badlogic/gdx/Input.html#setInputProcessor(com.badlogic.gdx.InputProcessor)"><CODE>Gdx.input.setInputProcessor</CODE></A>. An <A HREF="../../../../../com/badlogic/gdx/InputMultiplexer.html" title="class in com.badlogic.gdx"><CODE>InputMultiplexer</CODE></A> may be |
||
| 130 | used to handle input events before or after the stage does. If an actor handles an event by returning true from the input |
||
| 131 | method, then the stage's input method will also return true, causing subsequent InputProcessors to not receive the event. |
||
| 132 | <P> |
||
| 133 | |||
| 134 | <P> |
||
| 135 | <DL> |
||
| 136 | <DT><B>Author:</B></DT> |
||
| 137 | <DD>mzechner, Nathan Sweet</DD> |
||
| 138 | </DL> |
||
| 139 | <HR> |
||
| 140 | |||
| 141 | <P> |
||
| 142 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
||
| 143 | |||
| 144 | <A NAME="nested_class_summary"><!-- --></A> |
||
| 145 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 146 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 147 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 148 | <B>Nested Class Summary</B></FONT></TH> |
||
| 149 | </TR> |
||
| 150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 152 | <CODE>static class</CODE></FONT></TD> |
||
| 153 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.TouchFocus.html" title="class in com.badlogic.gdx.scenes.scene2d">Stage.TouchFocus</A></B></CODE> |
||
| 154 | |||
| 155 | <BR> |
||
| 156 | Internal class for managing touch focus.</TD> |
||
| 157 | </TR> |
||
| 158 | </TABLE> |
||
| 159 | |
||
| 160 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 161 | |||
| 162 | <A NAME="constructor_summary"><!-- --></A> |
||
| 163 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 164 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 165 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 166 | <B>Constructor Summary</B></FONT></TH> |
||
| 167 | </TR> |
||
| 168 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 169 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#Stage()">Stage</A></B>()</CODE> |
||
| 170 | |||
| 171 | <BR> |
||
| 172 | Creates a stage with a <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>viewport</CODE></A> equal to the device screen resolution.</TD> |
||
| 173 | </TR> |
||
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 175 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#Stage(float, float, boolean)">Stage</A></B>(float width, |
||
| 176 | float height, |
||
| 177 | boolean keepAspectRatio)</CODE> |
||
| 178 | |||
| 179 | <BR> |
||
| 180 | Creates a stage with the specified <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>viewport</CODE></A>.</TD> |
||
| 181 | </TR> |
||
| 182 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 183 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#Stage(float, float, boolean, com.badlogic.gdx.graphics.g2d.SpriteBatch)">Stage</A></B>(float width, |
||
| 184 | float height, |
||
| 185 | boolean keepAspectRatio, |
||
| 186 | <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch</A> batch)</CODE> |
||
| 187 | |||
| 188 | <BR> |
||
| 189 | Creates a stage with the specified <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>viewport</CODE></A> and <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>SpriteBatch</CODE></A>.</TD> |
||
| 190 | </TR> |
||
| 191 | </TABLE> |
||
| 192 | |
||
| 193 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 194 | |||
| 195 | <A NAME="method_summary"><!-- --></A> |
||
| 196 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 197 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 198 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 199 | <B>Method Summary</B></FONT></TH> |
||
| 200 | </TR> |
||
| 201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 203 | <CODE> void</CODE></FONT></TD> |
||
| 204 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#act()">act</A></B>()</CODE> |
||
| 205 | |||
| 206 | <BR> |
||
| 207 | Calls <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#act(float)"><CODE>act(float)</CODE></A> with <A HREF="../../../../../com/badlogic/gdx/Graphics.html#getDeltaTime()"><CODE>Graphics.getDeltaTime()</CODE></A>.</TD> |
||
| 208 | </TR> |
||
| 209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 211 | <CODE> void</CODE></FONT></TD> |
||
| 212 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#act(float)">act</A></B>(float delta)</CODE> |
||
| 213 | |||
| 214 | <BR> |
||
| 215 | Calls the <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#act(float)"><CODE>Actor.act(float)</CODE></A> method on each actor in the stage.</TD> |
||
| 216 | </TR> |
||
| 217 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 218 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 219 | <CODE> void</CODE></FONT></TD> |
||
| 220 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#addAction(com.badlogic.gdx.scenes.scene2d.Action)">addAction</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action</A> action)</CODE> |
||
| 221 | |||
| 222 | <BR> |
||
| 223 | Adds an action to the root of the stage.</TD> |
||
| 224 | </TR> |
||
| 225 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 226 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 227 | <CODE> void</CODE></FONT></TD> |
||
| 228 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#addActor(com.badlogic.gdx.scenes.scene2d.Actor)">addActor</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</CODE> |
||
| 229 | |||
| 230 | <BR> |
||
| 231 | Adds an actor to the root of the stage.</TD> |
||
| 232 | </TR> |
||
| 233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 235 | <CODE> boolean</CODE></FONT></TD> |
||
| 236 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#addCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">addCaptureListener</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</CODE> |
||
| 237 | |||
| 238 | <BR> |
||
| 239 | Adds a capture listener to the root.</TD> |
||
| 240 | </TR> |
||
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 243 | <CODE> boolean</CODE></FONT></TD> |
||
| 244 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#addListener(com.badlogic.gdx.scenes.scene2d.EventListener)">addListener</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</CODE> |
||
| 245 | |||
| 246 | <BR> |
||
| 247 | Adds a listener to the root.</TD> |
||
| 248 | </TR> |
||
| 249 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 250 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 251 | <CODE> void</CODE></FONT></TD> |
||
| 252 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#addTouchFocus(com.badlogic.gdx.scenes.scene2d.EventListener, com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.scenes.scene2d.Actor, int, int)">addTouchFocus</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener, |
||
| 253 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> listenerActor, |
||
| 254 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> target, |
||
| 255 | int pointer, |
||
| 256 | int button)</CODE> |
||
| 257 | |||
| 258 | <BR> |
||
| 259 | Adds the listener to be notified for all touchDragged and touchUp events for the specified pointer and button.</TD> |
||
| 260 | </TR> |
||
| 261 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 263 | <CODE> void</CODE></FONT></TD> |
||
| 264 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#cancelTouchFocus()">cancelTouchFocus</A></B>()</CODE> |
||
| 265 | |||
| 266 | <BR> |
||
| 267 | Sends a touchUp event to all listeners that are registered to receive touchDragged and touchUp events and removes their |
||
| 268 | touch focus.</TD> |
||
| 269 | </TR> |
||
| 270 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 272 | <CODE> void</CODE></FONT></TD> |
||
| 273 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#cancelTouchFocus(com.badlogic.gdx.scenes.scene2d.EventListener, com.badlogic.gdx.scenes.scene2d.Actor)">cancelTouchFocus</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener, |
||
| 274 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</CODE> |
||
| 275 | |||
| 276 | <BR> |
||
| 277 | Cancels touch focus for all listeners except the specified listener.</TD> |
||
| 278 | </TR> |
||
| 279 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 280 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 281 | <CODE> void</CODE></FONT></TD> |
||
| 282 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#clear()">clear</A></B>()</CODE> |
||
| 283 | |||
| 284 | <BR> |
||
| 285 | Clears the stage, removing all actors.</TD> |
||
| 286 | </TR> |
||
| 287 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 288 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 289 | <CODE> void</CODE></FONT></TD> |
||
| 290 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#dispose()">dispose</A></B>()</CODE> |
||
| 291 | |||
| 292 | <BR> |
||
| 293 | Releases all resources of this object.</TD> |
||
| 294 | </TR> |
||
| 295 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 296 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 297 | <CODE> void</CODE></FONT></TD> |
||
| 298 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#draw()">draw</A></B>()</CODE> |
||
| 299 | |||
| 300 | <BR> |
||
| 301 | </TD> |
||
| 302 | </TR> |
||
| 303 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 304 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 305 | <CODE> <A HREF="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A><<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A>></CODE></FONT></TD> |
||
| 306 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getActors()">getActors</A></B>()</CODE> |
||
| 307 | |||
| 308 | <BR> |
||
| 309 | Returns the root's child actors.</TD> |
||
| 310 | </TR> |
||
| 311 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 312 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 313 | <CODE> <A HREF="../../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A></CODE></FONT></TD> |
||
| 314 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getCamera()">getCamera</A></B>()</CODE> |
||
| 315 | |||
| 316 | <BR> |
||
| 317 | </TD> |
||
| 318 | </TR> |
||
| 319 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 320 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 321 | <CODE> float</CODE></FONT></TD> |
||
| 322 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getGutterHeight()">getGutterHeight</A></B>()</CODE> |
||
| 323 | |||
| 324 | <BR> |
||
| 325 | Half the amount in the y direction that the stage's viewport was lengthened to fill the screen.</TD> |
||
| 326 | </TR> |
||
| 327 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 328 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 329 | <CODE> float</CODE></FONT></TD> |
||
| 330 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getGutterWidth()">getGutterWidth</A></B>()</CODE> |
||
| 331 | |||
| 332 | <BR> |
||
| 333 | Half the amount in the x direction that the stage's viewport was lengthened to fill the screen.</TD> |
||
| 334 | </TR> |
||
| 335 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 336 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 337 | <CODE> float</CODE></FONT></TD> |
||
| 338 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getHeight()">getHeight</A></B>()</CODE> |
||
| 339 | |||
| 340 | <BR> |
||
| 341 | The height of the stage's viewport.</TD> |
||
| 342 | </TR> |
||
| 343 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 344 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 345 | <CODE> <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A></CODE></FONT></TD> |
||
| 346 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getKeyboardFocus()">getKeyboardFocus</A></B>()</CODE> |
||
| 347 | |||
| 348 | <BR> |
||
| 349 | Gets the actor that will receive key events.</TD> |
||
| 350 | </TR> |
||
| 351 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 352 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 353 | <CODE> <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group</A></CODE></FONT></TD> |
||
| 354 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getRoot()">getRoot</A></B>()</CODE> |
||
| 355 | |||
| 356 | <BR> |
||
| 357 | Returns the root group which holds all actors in the stage.</TD> |
||
| 358 | </TR> |
||
| 359 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 360 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 361 | <CODE> <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A></CODE></FONT></TD> |
||
| 362 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getScrollFocus()">getScrollFocus</A></B>()</CODE> |
||
| 363 | |||
| 364 | <BR> |
||
| 365 | Gets the actor that will receive scroll events.</TD> |
||
| 366 | </TR> |
||
| 367 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 368 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 369 | <CODE> <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch</A></CODE></FONT></TD> |
||
| 370 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getSpriteBatch()">getSpriteBatch</A></B>()</CODE> |
||
| 371 | |||
| 372 | <BR> |
||
| 373 | </TD> |
||
| 374 | </TR> |
||
| 375 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 376 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 377 | <CODE> float</CODE></FONT></TD> |
||
| 378 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getWidth()">getWidth</A></B>()</CODE> |
||
| 379 | |||
| 380 | <BR> |
||
| 381 | The width of the stage's viewport.</TD> |
||
| 382 | </TR> |
||
| 383 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 384 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 385 | <CODE> <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A></CODE></FONT></TD> |
||
| 386 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#hit(float, float, boolean)">hit</A></B>(float stageX, |
||
| 387 | float stageY, |
||
| 388 | boolean touchable)</CODE> |
||
| 389 | |||
| 390 | <BR> |
||
| 391 | Returns the <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d"><CODE>Actor</CODE></A> at the specified location in stage coordinates.</TD> |
||
| 392 | </TR> |
||
| 393 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 394 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 395 | <CODE> boolean</CODE></FONT></TD> |
||
| 396 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#keyDown(int)">keyDown</A></B>(int keyCode)</CODE> |
||
| 397 | |||
| 398 | <BR> |
||
| 399 | Applies a key down event to the actor that has <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>keyboard focus</CODE></A>, if any, and returns |
||
| 400 | true if the event was <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A>.</TD> |
||
| 401 | </TR> |
||
| 402 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 403 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 404 | <CODE> boolean</CODE></FONT></TD> |
||
| 405 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#keyTyped(char)">keyTyped</A></B>(char character)</CODE> |
||
| 406 | |||
| 407 | <BR> |
||
| 408 | Applies a key typed event to the actor that has <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>keyboard focus</CODE></A>, if any, and returns |
||
| 409 | true if the event was <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A>.</TD> |
||
| 410 | </TR> |
||
| 411 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 412 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 413 | <CODE> boolean</CODE></FONT></TD> |
||
| 414 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#keyUp(int)">keyUp</A></B>(int keyCode)</CODE> |
||
| 415 | |||
| 416 | <BR> |
||
| 417 | Applies a key up event to the actor that has <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>keyboard focus</CODE></A>, if any, and returns true |
||
| 418 | if the event was <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A>.</TD> |
||
| 419 | </TR> |
||
| 420 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 421 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 422 | <CODE> boolean</CODE></FONT></TD> |
||
| 423 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#mouseMoved(int, int)">mouseMoved</A></B>(int screenX, |
||
| 424 | int screenY)</CODE> |
||
| 425 | |||
| 426 | <BR> |
||
| 427 | Applies a mouse moved event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event.</TD> |
||
| 428 | </TR> |
||
| 429 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 430 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 431 | <CODE> boolean</CODE></FONT></TD> |
||
| 432 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#removeCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">removeCaptureListener</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</CODE> |
||
| 433 | |||
| 434 | <BR> |
||
| 435 | Removes a listener from the root.</TD> |
||
| 436 | </TR> |
||
| 437 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 438 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 439 | <CODE> boolean</CODE></FONT></TD> |
||
| 440 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#removeListener(com.badlogic.gdx.scenes.scene2d.EventListener)">removeListener</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</CODE> |
||
| 441 | |||
| 442 | <BR> |
||
| 443 | Removes a listener from the root.</TD> |
||
| 444 | </TR> |
||
| 445 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 446 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 447 | <CODE> void</CODE></FONT></TD> |
||
| 448 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#removeTouchFocus(com.badlogic.gdx.scenes.scene2d.EventListener, com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.scenes.scene2d.Actor, int, int)">removeTouchFocus</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener, |
||
| 449 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> listenerActor, |
||
| 450 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> target, |
||
| 451 | int pointer, |
||
| 452 | int button)</CODE> |
||
| 453 | |||
| 454 | <BR> |
||
| 455 | Removes the listener from being notified for all touchDragged and touchUp events for the specified pointer and button.</TD> |
||
| 456 | </TR> |
||
| 457 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 458 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 459 | <CODE> <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 460 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#screenToStageCoordinates(com.badlogic.gdx.math.Vector2)">screenToStageCoordinates</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> screenCoords)</CODE> |
||
| 461 | |||
| 462 | <BR> |
||
| 463 | Transforms the screen coordinates to stage coordinates.</TD> |
||
| 464 | </TR> |
||
| 465 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 466 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 467 | <CODE> boolean</CODE></FONT></TD> |
||
| 468 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#scrolled(int)">scrolled</A></B>(int amount)</CODE> |
||
| 469 | |||
| 470 | <BR> |
||
| 471 | Applies a mouse scroll event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the |
||
| 472 | event.</TD> |
||
| 473 | </TR> |
||
| 474 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 475 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 476 | <CODE> void</CODE></FONT></TD> |
||
| 477 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setCamera(com.badlogic.gdx.graphics.Camera)">setCamera</A></B>(<A HREF="../../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A> camera)</CODE> |
||
| 478 | |||
| 479 | <BR> |
||
| 480 | Sets the stage's camera.</TD> |
||
| 481 | </TR> |
||
| 482 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 483 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 484 | <CODE> void</CODE></FONT></TD> |
||
| 485 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)">setKeyboardFocus</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</CODE> |
||
| 486 | |||
| 487 | <BR> |
||
| 488 | Sets the actor that will receive key events.</TD> |
||
| 489 | </TR> |
||
| 490 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 491 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 492 | <CODE> void</CODE></FONT></TD> |
||
| 493 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setScrollFocus(com.badlogic.gdx.scenes.scene2d.Actor)">setScrollFocus</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</CODE> |
||
| 494 | |||
| 495 | <BR> |
||
| 496 | Sets the actor that will receive scroll events.</TD> |
||
| 497 | </TR> |
||
| 498 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 499 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 500 | <CODE> void</CODE></FONT></TD> |
||
| 501 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)">setViewport</A></B>(float width, |
||
| 502 | float height, |
||
| 503 | boolean keepAspectRatio)</CODE> |
||
| 504 | |||
| 505 | <BR> |
||
| 506 | Sets the dimensions of the stage's viewport.</TD> |
||
| 507 | </TR> |
||
| 508 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 509 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 510 | <CODE> <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 511 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#stageToScreenCoordinates(com.badlogic.gdx.math.Vector2)">stageToScreenCoordinates</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> stageCoords)</CODE> |
||
| 512 | |||
| 513 | <BR> |
||
| 514 | Transforms the stage coordinates to screen coordinates.</TD> |
||
| 515 | </TR> |
||
| 516 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 517 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 518 | <CODE> <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 519 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#toScreenCoordinates(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Matrix4)">toScreenCoordinates</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> coords, |
||
| 520 | <A HREF="../../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</A> transformMatrix)</CODE> |
||
| 521 | |||
| 522 | <BR> |
||
| 523 | Transforms the coordinates to screen coordinates.</TD> |
||
| 524 | </TR> |
||
| 525 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 526 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 527 | <CODE> boolean</CODE></FONT></TD> |
||
| 528 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#touchDown(int, int, int, int)">touchDown</A></B>(int screenX, |
||
| 529 | int screenY, |
||
| 530 | int pointer, |
||
| 531 | int button)</CODE> |
||
| 532 | |||
| 533 | <BR> |
||
| 534 | Applies a touch down event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event.</TD> |
||
| 535 | </TR> |
||
| 536 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 537 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 538 | <CODE> boolean</CODE></FONT></TD> |
||
| 539 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#touchDragged(int, int, int)">touchDragged</A></B>(int screenX, |
||
| 540 | int screenY, |
||
| 541 | int pointer)</CODE> |
||
| 542 | |||
| 543 | <BR> |
||
| 544 | Applies a touch moved event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event.</TD> |
||
| 545 | </TR> |
||
| 546 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 547 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 548 | <CODE> boolean</CODE></FONT></TD> |
||
| 549 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#touchUp(int, int, int, int)">touchUp</A></B>(int screenX, |
||
| 550 | int screenY, |
||
| 551 | int pointer, |
||
| 552 | int button)</CODE> |
||
| 553 | |||
| 554 | <BR> |
||
| 555 | Applies a touch up event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event.</TD> |
||
| 556 | </TR> |
||
| 557 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 558 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 559 | <CODE> void</CODE></FONT></TD> |
||
| 560 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#unfocus(com.badlogic.gdx.scenes.scene2d.Actor)">unfocus</A></B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</CODE> |
||
| 561 | |||
| 562 | <BR> |
||
| 563 | Removes the touch, keyboard, and scroll focus for the specified actor and any descendants.</TD> |
||
| 564 | </TR> |
||
| 565 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 566 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 567 | <CODE> void</CODE></FONT></TD> |
||
| 568 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#unfocusAll()">unfocusAll</A></B>()</CODE> |
||
| 569 | |||
| 570 | <BR> |
||
| 571 | Removes the touch, keyboard, and scroll focused actors.</TD> |
||
| 572 | </TR> |
||
| 573 | </TABLE> |
||
| 574 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 575 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 576 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 577 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 578 | </TR> |
||
| 579 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 580 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
| 581 | </TR> |
||
| 582 | </TABLE> |
||
| 583 | |
||
| 584 | <P> |
||
| 585 | |||
| 586 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 587 | |||
| 588 | <A NAME="constructor_detail"><!-- --></A> |
||
| 589 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 590 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 591 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 592 | <B>Constructor Detail</B></FONT></TH> |
||
| 593 | </TR> |
||
| 594 | </TABLE> |
||
| 595 | |||
| 596 | <A NAME="Stage()"><!-- --></A><H3> |
||
| 597 | Stage</H3> |
||
| 598 | <PRE> |
||
| 599 | public <B>Stage</B>()</PRE> |
||
| 600 | <DL> |
||
| 601 | <DD>Creates a stage with a <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>viewport</CODE></A> equal to the device screen resolution. The stage |
||
| 602 | will use its own <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>SpriteBatch</CODE></A>. |
||
| 603 | <P> |
||
| 604 | </DL> |
||
| 605 | <HR> |
||
| 606 | |||
| 607 | <A NAME="Stage(float, float, boolean)"><!-- --></A><H3> |
||
| 608 | Stage</H3> |
||
| 609 | <PRE> |
||
| 610 | public <B>Stage</B>(float width, |
||
| 611 | float height, |
||
| 612 | boolean keepAspectRatio)</PRE> |
||
| 613 | <DL> |
||
| 614 | <DD>Creates a stage with the specified <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>viewport</CODE></A>. The stage will use its own |
||
| 615 | <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>SpriteBatch</CODE></A>, which will be disposed when the stage is disposed. |
||
| 616 | <P> |
||
| 617 | </DL> |
||
| 618 | <HR> |
||
| 619 | |||
| 620 | <A NAME="Stage(float, float, boolean, com.badlogic.gdx.graphics.g2d.SpriteBatch)"><!-- --></A><H3> |
||
| 621 | Stage</H3> |
||
| 622 | <PRE> |
||
| 623 | public <B>Stage</B>(float width, |
||
| 624 | float height, |
||
| 625 | boolean keepAspectRatio, |
||
| 626 | <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch</A> batch)</PRE> |
||
| 627 | <DL> |
||
| 628 | <DD>Creates a stage with the specified <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>viewport</CODE></A> and <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>SpriteBatch</CODE></A>. This can be |
||
| 629 | used to avoid creating a new SpriteBatch (which can be somewhat slow) if multiple stages are used during an applications |
||
| 630 | life time. |
||
| 631 | <P> |
||
| 632 | <DL> |
||
| 633 | <DT><B>Parameters:</B><DD><CODE>batch</CODE> - Will not be disposed if <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#dispose()"><CODE>dispose()</CODE></A> is called. Handle disposal yourself.</DL> |
||
| 634 | </DL> |
||
| 635 | |||
| 636 | <!-- ============ METHOD DETAIL ========== --> |
||
| 637 | |||
| 638 | <A NAME="method_detail"><!-- --></A> |
||
| 639 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 640 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 641 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 642 | <B>Method Detail</B></FONT></TH> |
||
| 643 | </TR> |
||
| 644 | </TABLE> |
||
| 645 | |||
| 646 | <A NAME="setViewport(float, float, boolean)"><!-- --></A><H3> |
||
| 647 | setViewport</H3> |
||
| 648 | <PRE> |
||
| 649 | public void <B>setViewport</B>(float width, |
||
| 650 | float height, |
||
| 651 | boolean keepAspectRatio)</PRE> |
||
| 652 | <DL> |
||
| 653 | <DD>Sets the dimensions of the stage's viewport. The viewport covers the entire screen. If keepAspectRatio is false, the |
||
| 654 | viewport is simply stretched to the screen resolution, which may distort the aspect ratio. If keepAspectRatio is true, the |
||
| 655 | viewport is first scaled to fit then the shorter dimension is lengthened to fill the screen, which keeps the aspect ratio |
||
| 656 | from changing. The <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getGutterWidth()"><CODE>getGutterWidth()</CODE></A> and <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#getGutterHeight()"><CODE>getGutterHeight()</CODE></A> provide access to the amount that was |
||
| 657 | lengthened. |
||
| 658 | <P> |
||
| 659 | <DD><DL> |
||
| 660 | </DL> |
||
| 661 | </DD> |
||
| 662 | <DD><DL> |
||
| 663 | </DL> |
||
| 664 | </DD> |
||
| 665 | </DL> |
||
| 666 | <HR> |
||
| 667 | |||
| 668 | <A NAME="draw()"><!-- --></A><H3> |
||
| 669 | draw</H3> |
||
| 670 | <PRE> |
||
| 671 | public void <B>draw</B>()</PRE> |
||
| 672 | <DL> |
||
| 673 | <DD><DL> |
||
| 674 | </DL> |
||
| 675 | </DD> |
||
| 676 | <DD><DL> |
||
| 677 | </DL> |
||
| 678 | </DD> |
||
| 679 | </DL> |
||
| 680 | <HR> |
||
| 681 | |||
| 682 | <A NAME="act()"><!-- --></A><H3> |
||
| 683 | act</H3> |
||
| 684 | <PRE> |
||
| 685 | public void <B>act</B>()</PRE> |
||
| 686 | <DL> |
||
| 687 | <DD>Calls <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#act(float)"><CODE>act(float)</CODE></A> with <A HREF="../../../../../com/badlogic/gdx/Graphics.html#getDeltaTime()"><CODE>Graphics.getDeltaTime()</CODE></A>. |
||
| 688 | <P> |
||
| 689 | <DD><DL> |
||
| 690 | </DL> |
||
| 691 | </DD> |
||
| 692 | <DD><DL> |
||
| 693 | </DL> |
||
| 694 | </DD> |
||
| 695 | </DL> |
||
| 696 | <HR> |
||
| 697 | |||
| 698 | <A NAME="act(float)"><!-- --></A><H3> |
||
| 699 | act</H3> |
||
| 700 | <PRE> |
||
| 701 | public void <B>act</B>(float delta)</PRE> |
||
| 702 | <DL> |
||
| 703 | <DD>Calls the <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#act(float)"><CODE>Actor.act(float)</CODE></A> method on each actor in the stage. Typically called each frame. This method also fires |
||
| 704 | enter and exit events. |
||
| 705 | <P> |
||
| 706 | <DD><DL> |
||
| 707 | </DL> |
||
| 708 | </DD> |
||
| 709 | <DD><DL> |
||
| 710 | <DT><B>Parameters:</B><DD><CODE>delta</CODE> - Time in seconds since the last frame.</DL> |
||
| 711 | </DD> |
||
| 712 | </DL> |
||
| 713 | <HR> |
||
| 714 | |||
| 715 | <A NAME="touchDown(int, int, int, int)"><!-- --></A><H3> |
||
| 716 | touchDown</H3> |
||
| 717 | <PRE> |
||
| 718 | public boolean <B>touchDown</B>(int screenX, |
||
| 719 | int screenY, |
||
| 720 | int pointer, |
||
| 721 | int button)</PRE> |
||
| 722 | <DL> |
||
| 723 | <DD>Applies a touch down event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event. |
||
| 724 | <P> |
||
| 725 | <DD><DL> |
||
| 726 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#touchDown(int, int, int, int)">touchDown</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#touchDown(int, int, int, int)">touchDown</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 727 | </DD> |
||
| 728 | <DD><DL> |
||
| 729 | <DT><B>Parameters:</B><DD><CODE>screenX</CODE> - The x coordinate, origin is in the upper left corner<DD><CODE>screenY</CODE> - The y coordinate, origin is in the upper left corner<DD><CODE>pointer</CODE> - the pointer for the event.<DD><CODE>button</CODE> - the button |
||
| 730 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 731 | </DD> |
||
| 732 | </DL> |
||
| 733 | <HR> |
||
| 734 | |||
| 735 | <A NAME="touchDragged(int, int, int)"><!-- --></A><H3> |
||
| 736 | touchDragged</H3> |
||
| 737 | <PRE> |
||
| 738 | public boolean <B>touchDragged</B>(int screenX, |
||
| 739 | int screenY, |
||
| 740 | int pointer)</PRE> |
||
| 741 | <DL> |
||
| 742 | <DD>Applies a touch moved event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event. |
||
| 743 | Only <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/InputListener.html" title="class in com.badlogic.gdx.scenes.scene2d"><CODE>listeners</CODE></A> that returned true for touchDown will receive this event. |
||
| 744 | <P> |
||
| 745 | <DD><DL> |
||
| 746 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#touchDragged(int, int, int)">touchDragged</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#touchDragged(int, int, int)">touchDragged</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 747 | </DD> |
||
| 748 | <DD><DL> |
||
| 749 | <DD><CODE>pointer</CODE> - the pointer for the event. |
||
| 750 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 751 | </DD> |
||
| 752 | </DL> |
||
| 753 | <HR> |
||
| 754 | |||
| 755 | <A NAME="touchUp(int, int, int, int)"><!-- --></A><H3> |
||
| 756 | touchUp</H3> |
||
| 757 | <PRE> |
||
| 758 | public boolean <B>touchUp</B>(int screenX, |
||
| 759 | int screenY, |
||
| 760 | int pointer, |
||
| 761 | int button)</PRE> |
||
| 762 | <DL> |
||
| 763 | <DD>Applies a touch up event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event. |
||
| 764 | Only <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/InputListener.html" title="class in com.badlogic.gdx.scenes.scene2d"><CODE>listeners</CODE></A> that returned true for touchDown will receive this event. |
||
| 765 | <P> |
||
| 766 | <DD><DL> |
||
| 767 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#touchUp(int, int, int, int)">touchUp</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#touchUp(int, int, int, int)">touchUp</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 768 | </DD> |
||
| 769 | <DD><DL> |
||
| 770 | <DD><CODE>pointer</CODE> - the pointer for the event.<DD><CODE>button</CODE> - the button |
||
| 771 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 772 | </DD> |
||
| 773 | </DL> |
||
| 774 | <HR> |
||
| 775 | |||
| 776 | <A NAME="mouseMoved(int, int)"><!-- --></A><H3> |
||
| 777 | mouseMoved</H3> |
||
| 778 | <PRE> |
||
| 779 | public boolean <B>mouseMoved</B>(int screenX, |
||
| 780 | int screenY)</PRE> |
||
| 781 | <DL> |
||
| 782 | <DD>Applies a mouse moved event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the event. |
||
| 783 | This event only occurs on the desktop. |
||
| 784 | <P> |
||
| 785 | <DD><DL> |
||
| 786 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#mouseMoved(int, int)">mouseMoved</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#mouseMoved(int, int)">mouseMoved</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 787 | </DD> |
||
| 788 | <DD><DL> |
||
| 789 | |||
| 790 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 791 | </DD> |
||
| 792 | </DL> |
||
| 793 | <HR> |
||
| 794 | |||
| 795 | <A NAME="scrolled(int)"><!-- --></A><H3> |
||
| 796 | scrolled</H3> |
||
| 797 | <PRE> |
||
| 798 | public boolean <B>scrolled</B>(int amount)</PRE> |
||
| 799 | <DL> |
||
| 800 | <DD>Applies a mouse scroll event to the stage and returns true if an actor in the scene <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A> the |
||
| 801 | event. This event only occurs on the desktop. |
||
| 802 | <P> |
||
| 803 | <DD><DL> |
||
| 804 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#scrolled(int)">scrolled</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#scrolled(int)">scrolled</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 805 | </DD> |
||
| 806 | <DD><DL> |
||
| 807 | <DT><B>Parameters:</B><DD><CODE>amount</CODE> - the scroll amount, -1 or 1 depending on the direction the wheel was scrolled. |
||
| 808 | <DT><B>Returns:</B><DD>whether the input was processed.</DL> |
||
| 809 | </DD> |
||
| 810 | </DL> |
||
| 811 | <HR> |
||
| 812 | |||
| 813 | <A NAME="keyDown(int)"><!-- --></A><H3> |
||
| 814 | keyDown</H3> |
||
| 815 | <PRE> |
||
| 816 | public boolean <B>keyDown</B>(int keyCode)</PRE> |
||
| 817 | <DL> |
||
| 818 | <DD>Applies a key down event to the actor that has <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>keyboard focus</CODE></A>, if any, and returns |
||
| 819 | true if the event was <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A>. |
||
| 820 | <P> |
||
| 821 | <DD><DL> |
||
| 822 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#keyDown(int)">keyDown</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#keyDown(int)">keyDown</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 823 | </DD> |
||
| 824 | <DD><DL> |
||
| 825 | <DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - one of the constants in <A HREF="../../../../../com/badlogic/gdx/Input.Keys.html" title="class in com.badlogic.gdx"><CODE>Input.Keys</CODE></A> |
||
| 826 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 827 | </DD> |
||
| 828 | </DL> |
||
| 829 | <HR> |
||
| 830 | |||
| 831 | <A NAME="keyUp(int)"><!-- --></A><H3> |
||
| 832 | keyUp</H3> |
||
| 833 | <PRE> |
||
| 834 | public boolean <B>keyUp</B>(int keyCode)</PRE> |
||
| 835 | <DL> |
||
| 836 | <DD>Applies a key up event to the actor that has <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>keyboard focus</CODE></A>, if any, and returns true |
||
| 837 | if the event was <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A>. |
||
| 838 | <P> |
||
| 839 | <DD><DL> |
||
| 840 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#keyUp(int)">keyUp</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#keyUp(int)">keyUp</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 841 | </DD> |
||
| 842 | <DD><DL> |
||
| 843 | <DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - one of the constants in <A HREF="../../../../../com/badlogic/gdx/Input.Keys.html" title="class in com.badlogic.gdx"><CODE>Input.Keys</CODE></A> |
||
| 844 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 845 | </DD> |
||
| 846 | </DL> |
||
| 847 | <HR> |
||
| 848 | |||
| 849 | <A NAME="keyTyped(char)"><!-- --></A><H3> |
||
| 850 | keyTyped</H3> |
||
| 851 | <PRE> |
||
| 852 | public boolean <B>keyTyped</B>(char character)</PRE> |
||
| 853 | <DL> |
||
| 854 | <DD>Applies a key typed event to the actor that has <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>keyboard focus</CODE></A>, if any, and returns |
||
| 855 | true if the event was <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#handle()"><CODE>handled</CODE></A>. |
||
| 856 | <P> |
||
| 857 | <DD><DL> |
||
| 858 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html#keyTyped(char)">keyTyped</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html#keyTyped(char)">keyTyped</A></CODE> in class <CODE><A HREF="../../../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx">InputAdapter</A></CODE></DL> |
||
| 859 | </DD> |
||
| 860 | <DD><DL> |
||
| 861 | <DT><B>Parameters:</B><DD><CODE>character</CODE> - The character |
||
| 862 | <DT><B>Returns:</B><DD>whether the input was processed</DL> |
||
| 863 | </DD> |
||
| 864 | </DL> |
||
| 865 | <HR> |
||
| 866 | |||
| 867 | <A NAME="addTouchFocus(com.badlogic.gdx.scenes.scene2d.EventListener, com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.scenes.scene2d.Actor, int, int)"><!-- --></A><H3> |
||
| 868 | addTouchFocus</H3> |
||
| 869 | <PRE> |
||
| 870 | public void <B>addTouchFocus</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener, |
||
| 871 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> listenerActor, |
||
| 872 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> target, |
||
| 873 | int pointer, |
||
| 874 | int button)</PRE> |
||
| 875 | <DL> |
||
| 876 | <DD>Adds the listener to be notified for all touchDragged and touchUp events for the specified pointer and button. The actor |
||
| 877 | will be used as the <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#getListenerActor()"><CODE>listener actor</CODE></A> and <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#getTarget()"><CODE>target</CODE></A>. |
||
| 878 | <P> |
||
| 879 | <DD><DL> |
||
| 880 | </DL> |
||
| 881 | </DD> |
||
| 882 | <DD><DL> |
||
| 883 | </DL> |
||
| 884 | </DD> |
||
| 885 | </DL> |
||
| 886 | <HR> |
||
| 887 | |||
| 888 | <A NAME="removeTouchFocus(com.badlogic.gdx.scenes.scene2d.EventListener, com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.scenes.scene2d.Actor, int, int)"><!-- --></A><H3> |
||
| 889 | removeTouchFocus</H3> |
||
| 890 | <PRE> |
||
| 891 | public void <B>removeTouchFocus</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener, |
||
| 892 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> listenerActor, |
||
| 893 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> target, |
||
| 894 | int pointer, |
||
| 895 | int button)</PRE> |
||
| 896 | <DL> |
||
| 897 | <DD>Removes the listener from being notified for all touchDragged and touchUp events for the specified pointer and button. Note |
||
| 898 | the listener may never receive a touchUp event if this method is used. |
||
| 899 | <P> |
||
| 900 | <DD><DL> |
||
| 901 | </DL> |
||
| 902 | </DD> |
||
| 903 | <DD><DL> |
||
| 904 | </DL> |
||
| 905 | </DD> |
||
| 906 | </DL> |
||
| 907 | <HR> |
||
| 908 | |||
| 909 | <A NAME="cancelTouchFocus()"><!-- --></A><H3> |
||
| 910 | cancelTouchFocus</H3> |
||
| 911 | <PRE> |
||
| 912 | public void <B>cancelTouchFocus</B>()</PRE> |
||
| 913 | <DL> |
||
| 914 | <DD>Sends a touchUp event to all listeners that are registered to receive touchDragged and touchUp events and removes their |
||
| 915 | touch focus. The location of the touchUp is <CODE>Integer.MIN_VALUE</CODE>. This method removes all touch focus listeners, but |
||
| 916 | sends a touchUp event so that the state of the listeners remains consistent (listeners typically expect to receive touchUp |
||
| 917 | eventually). |
||
| 918 | <P> |
||
| 919 | <DD><DL> |
||
| 920 | </DL> |
||
| 921 | </DD> |
||
| 922 | <DD><DL> |
||
| 923 | </DL> |
||
| 924 | </DD> |
||
| 925 | </DL> |
||
| 926 | <HR> |
||
| 927 | |||
| 928 | <A NAME="cancelTouchFocus(com.badlogic.gdx.scenes.scene2d.EventListener, com.badlogic.gdx.scenes.scene2d.Actor)"><!-- --></A><H3> |
||
| 929 | cancelTouchFocus</H3> |
||
| 930 | <PRE> |
||
| 931 | public void <B>cancelTouchFocus</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener, |
||
| 932 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</PRE> |
||
| 933 | <DL> |
||
| 934 | <DD>Cancels touch focus for all listeners except the specified listener. |
||
| 935 | <P> |
||
| 936 | <DD><DL> |
||
| 937 | </DL> |
||
| 938 | </DD> |
||
| 939 | <DD><DL> |
||
| 940 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#cancelTouchFocus()"><CODE>cancelTouchFocus()</CODE></A></DL> |
||
| 941 | </DD> |
||
| 942 | </DL> |
||
| 943 | <HR> |
||
| 944 | |||
| 945 | <A NAME="addActor(com.badlogic.gdx.scenes.scene2d.Actor)"><!-- --></A><H3> |
||
| 946 | addActor</H3> |
||
| 947 | <PRE> |
||
| 948 | public void <B>addActor</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</PRE> |
||
| 949 | <DL> |
||
| 950 | <DD>Adds an actor to the root of the stage. |
||
| 951 | <P> |
||
| 952 | <DD><DL> |
||
| 953 | </DL> |
||
| 954 | </DD> |
||
| 955 | <DD><DL> |
||
| 956 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html#addActor(com.badlogic.gdx.scenes.scene2d.Actor)"><CODE>Group.addActor(Actor)</CODE></A>, |
||
| 957 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#remove()"><CODE>Actor.remove()</CODE></A></DL> |
||
| 958 | </DD> |
||
| 959 | </DL> |
||
| 960 | <HR> |
||
| 961 | |||
| 962 | <A NAME="addAction(com.badlogic.gdx.scenes.scene2d.Action)"><!-- --></A><H3> |
||
| 963 | addAction</H3> |
||
| 964 | <PRE> |
||
| 965 | public void <B>addAction</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action</A> action)</PRE> |
||
| 966 | <DL> |
||
| 967 | <DD>Adds an action to the root of the stage. |
||
| 968 | <P> |
||
| 969 | <DD><DL> |
||
| 970 | </DL> |
||
| 971 | </DD> |
||
| 972 | <DD><DL> |
||
| 973 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addAction(com.badlogic.gdx.scenes.scene2d.Action)"><CODE>Actor.addAction(Action)</CODE></A></DL> |
||
| 974 | </DD> |
||
| 975 | </DL> |
||
| 976 | <HR> |
||
| 977 | |||
| 978 | <A NAME="getActors()"><!-- --></A><H3> |
||
| 979 | getActors</H3> |
||
| 980 | <PRE> |
||
| 981 | public <A HREF="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A><<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A>> <B>getActors</B>()</PRE> |
||
| 982 | <DL> |
||
| 983 | <DD>Returns the root's child actors. |
||
| 984 | <P> |
||
| 985 | <DD><DL> |
||
| 986 | </DL> |
||
| 987 | </DD> |
||
| 988 | <DD><DL> |
||
| 989 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html#getChildren()"><CODE>Group.getChildren()</CODE></A></DL> |
||
| 990 | </DD> |
||
| 991 | </DL> |
||
| 992 | <HR> |
||
| 993 | |||
| 994 | <A NAME="addListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><!-- --></A><H3> |
||
| 995 | addListener</H3> |
||
| 996 | <PRE> |
||
| 997 | public boolean <B>addListener</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</PRE> |
||
| 998 | <DL> |
||
| 999 | <DD>Adds a listener to the root. |
||
| 1000 | <P> |
||
| 1001 | <DD><DL> |
||
| 1002 | </DL> |
||
| 1003 | </DD> |
||
| 1004 | <DD><DL> |
||
| 1005 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><CODE>Actor.addListener(EventListener)</CODE></A></DL> |
||
| 1006 | </DD> |
||
| 1007 | </DL> |
||
| 1008 | <HR> |
||
| 1009 | |||
| 1010 | <A NAME="removeListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><!-- --></A><H3> |
||
| 1011 | removeListener</H3> |
||
| 1012 | <PRE> |
||
| 1013 | public boolean <B>removeListener</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</PRE> |
||
| 1014 | <DL> |
||
| 1015 | <DD>Removes a listener from the root. |
||
| 1016 | <P> |
||
| 1017 | <DD><DL> |
||
| 1018 | </DL> |
||
| 1019 | </DD> |
||
| 1020 | <DD><DL> |
||
| 1021 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><CODE>Actor.removeListener(EventListener)</CODE></A></DL> |
||
| 1022 | </DD> |
||
| 1023 | </DL> |
||
| 1024 | <HR> |
||
| 1025 | |||
| 1026 | <A NAME="addCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><!-- --></A><H3> |
||
| 1027 | addCaptureListener</H3> |
||
| 1028 | <PRE> |
||
| 1029 | public boolean <B>addCaptureListener</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</PRE> |
||
| 1030 | <DL> |
||
| 1031 | <DD>Adds a capture listener to the root. |
||
| 1032 | <P> |
||
| 1033 | <DD><DL> |
||
| 1034 | </DL> |
||
| 1035 | </DD> |
||
| 1036 | <DD><DL> |
||
| 1037 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><CODE>Actor.addCaptureListener(EventListener)</CODE></A></DL> |
||
| 1038 | </DD> |
||
| 1039 | </DL> |
||
| 1040 | <HR> |
||
| 1041 | |||
| 1042 | <A NAME="removeCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><!-- --></A><H3> |
||
| 1043 | removeCaptureListener</H3> |
||
| 1044 | <PRE> |
||
| 1045 | public boolean <B>removeCaptureListener</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener</A> listener)</PRE> |
||
| 1046 | <DL> |
||
| 1047 | <DD>Removes a listener from the root. |
||
| 1048 | <P> |
||
| 1049 | <DD><DL> |
||
| 1050 | </DL> |
||
| 1051 | </DD> |
||
| 1052 | <DD><DL> |
||
| 1053 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)"><CODE>Actor.removeCaptureListener(EventListener)</CODE></A></DL> |
||
| 1054 | </DD> |
||
| 1055 | </DL> |
||
| 1056 | <HR> |
||
| 1057 | |||
| 1058 | <A NAME="clear()"><!-- --></A><H3> |
||
| 1059 | clear</H3> |
||
| 1060 | <PRE> |
||
| 1061 | public void <B>clear</B>()</PRE> |
||
| 1062 | <DL> |
||
| 1063 | <DD>Clears the stage, removing all actors. |
||
| 1064 | <P> |
||
| 1065 | <DD><DL> |
||
| 1066 | </DL> |
||
| 1067 | </DD> |
||
| 1068 | <DD><DL> |
||
| 1069 | </DL> |
||
| 1070 | </DD> |
||
| 1071 | </DL> |
||
| 1072 | <HR> |
||
| 1073 | |||
| 1074 | <A NAME="unfocusAll()"><!-- --></A><H3> |
||
| 1075 | unfocusAll</H3> |
||
| 1076 | <PRE> |
||
| 1077 | public void <B>unfocusAll</B>()</PRE> |
||
| 1078 | <DL> |
||
| 1079 | <DD>Removes the touch, keyboard, and scroll focused actors. |
||
| 1080 | <P> |
||
| 1081 | <DD><DL> |
||
| 1082 | </DL> |
||
| 1083 | </DD> |
||
| 1084 | <DD><DL> |
||
| 1085 | </DL> |
||
| 1086 | </DD> |
||
| 1087 | </DL> |
||
| 1088 | <HR> |
||
| 1089 | |||
| 1090 | <A NAME="unfocus(com.badlogic.gdx.scenes.scene2d.Actor)"><!-- --></A><H3> |
||
| 1091 | unfocus</H3> |
||
| 1092 | <PRE> |
||
| 1093 | public void <B>unfocus</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</PRE> |
||
| 1094 | <DL> |
||
| 1095 | <DD>Removes the touch, keyboard, and scroll focus for the specified actor and any descendants. |
||
| 1096 | <P> |
||
| 1097 | <DD><DL> |
||
| 1098 | </DL> |
||
| 1099 | </DD> |
||
| 1100 | <DD><DL> |
||
| 1101 | </DL> |
||
| 1102 | </DD> |
||
| 1103 | </DL> |
||
| 1104 | <HR> |
||
| 1105 | |||
| 1106 | <A NAME="setKeyboardFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><!-- --></A><H3> |
||
| 1107 | setKeyboardFocus</H3> |
||
| 1108 | <PRE> |
||
| 1109 | public void <B>setKeyboardFocus</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</PRE> |
||
| 1110 | <DL> |
||
| 1111 | <DD>Sets the actor that will receive key events. |
||
| 1112 | <P> |
||
| 1113 | <DD><DL> |
||
| 1114 | </DL> |
||
| 1115 | </DD> |
||
| 1116 | <DD><DL> |
||
| 1117 | <DT><B>Parameters:</B><DD><CODE>actor</CODE> - May be null.</DL> |
||
| 1118 | </DD> |
||
| 1119 | </DL> |
||
| 1120 | <HR> |
||
| 1121 | |||
| 1122 | <A NAME="getKeyboardFocus()"><!-- --></A><H3> |
||
| 1123 | getKeyboardFocus</H3> |
||
| 1124 | <PRE> |
||
| 1125 | public <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> <B>getKeyboardFocus</B>()</PRE> |
||
| 1126 | <DL> |
||
| 1127 | <DD>Gets the actor that will receive key events. |
||
| 1128 | <P> |
||
| 1129 | <DD><DL> |
||
| 1130 | </DL> |
||
| 1131 | </DD> |
||
| 1132 | <DD><DL> |
||
| 1133 | |||
| 1134 | <DT><B>Returns:</B><DD>May be null.</DL> |
||
| 1135 | </DD> |
||
| 1136 | </DL> |
||
| 1137 | <HR> |
||
| 1138 | |||
| 1139 | <A NAME="setScrollFocus(com.badlogic.gdx.scenes.scene2d.Actor)"><!-- --></A><H3> |
||
| 1140 | setScrollFocus</H3> |
||
| 1141 | <PRE> |
||
| 1142 | public void <B>setScrollFocus</B>(<A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> actor)</PRE> |
||
| 1143 | <DL> |
||
| 1144 | <DD>Sets the actor that will receive scroll events. |
||
| 1145 | <P> |
||
| 1146 | <DD><DL> |
||
| 1147 | </DL> |
||
| 1148 | </DD> |
||
| 1149 | <DD><DL> |
||
| 1150 | <DT><B>Parameters:</B><DD><CODE>actor</CODE> - May be null.</DL> |
||
| 1151 | </DD> |
||
| 1152 | </DL> |
||
| 1153 | <HR> |
||
| 1154 | |||
| 1155 | <A NAME="getScrollFocus()"><!-- --></A><H3> |
||
| 1156 | getScrollFocus</H3> |
||
| 1157 | <PRE> |
||
| 1158 | public <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> <B>getScrollFocus</B>()</PRE> |
||
| 1159 | <DL> |
||
| 1160 | <DD>Gets the actor that will receive scroll events. |
||
| 1161 | <P> |
||
| 1162 | <DD><DL> |
||
| 1163 | </DL> |
||
| 1164 | </DD> |
||
| 1165 | <DD><DL> |
||
| 1166 | |||
| 1167 | <DT><B>Returns:</B><DD>May be null.</DL> |
||
| 1168 | </DD> |
||
| 1169 | </DL> |
||
| 1170 | <HR> |
||
| 1171 | |||
| 1172 | <A NAME="getWidth()"><!-- --></A><H3> |
||
| 1173 | getWidth</H3> |
||
| 1174 | <PRE> |
||
| 1175 | public float <B>getWidth</B>()</PRE> |
||
| 1176 | <DL> |
||
| 1177 | <DD>The width of the stage's viewport. |
||
| 1178 | <P> |
||
| 1179 | <DD><DL> |
||
| 1180 | </DL> |
||
| 1181 | </DD> |
||
| 1182 | <DD><DL> |
||
| 1183 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>setViewport(float, float, boolean)</CODE></A></DL> |
||
| 1184 | </DD> |
||
| 1185 | </DL> |
||
| 1186 | <HR> |
||
| 1187 | |||
| 1188 | <A NAME="getHeight()"><!-- --></A><H3> |
||
| 1189 | getHeight</H3> |
||
| 1190 | <PRE> |
||
| 1191 | public float <B>getHeight</B>()</PRE> |
||
| 1192 | <DL> |
||
| 1193 | <DD>The height of the stage's viewport. |
||
| 1194 | <P> |
||
| 1195 | <DD><DL> |
||
| 1196 | </DL> |
||
| 1197 | </DD> |
||
| 1198 | <DD><DL> |
||
| 1199 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>setViewport(float, float, boolean)</CODE></A></DL> |
||
| 1200 | </DD> |
||
| 1201 | </DL> |
||
| 1202 | <HR> |
||
| 1203 | |||
| 1204 | <A NAME="getGutterWidth()"><!-- --></A><H3> |
||
| 1205 | getGutterWidth</H3> |
||
| 1206 | <PRE> |
||
| 1207 | public float <B>getGutterWidth</B>()</PRE> |
||
| 1208 | <DL> |
||
| 1209 | <DD>Half the amount in the x direction that the stage's viewport was lengthened to fill the screen. |
||
| 1210 | <P> |
||
| 1211 | <DD><DL> |
||
| 1212 | </DL> |
||
| 1213 | </DD> |
||
| 1214 | <DD><DL> |
||
| 1215 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>setViewport(float, float, boolean)</CODE></A></DL> |
||
| 1216 | </DD> |
||
| 1217 | </DL> |
||
| 1218 | <HR> |
||
| 1219 | |||
| 1220 | <A NAME="getGutterHeight()"><!-- --></A><H3> |
||
| 1221 | getGutterHeight</H3> |
||
| 1222 | <PRE> |
||
| 1223 | public float <B>getGutterHeight</B>()</PRE> |
||
| 1224 | <DL> |
||
| 1225 | <DD>Half the amount in the y direction that the stage's viewport was lengthened to fill the screen. |
||
| 1226 | <P> |
||
| 1227 | <DD><DL> |
||
| 1228 | </DL> |
||
| 1229 | </DD> |
||
| 1230 | <DD><DL> |
||
| 1231 | <DT><B>See Also:</B><DD><A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>setViewport(float, float, boolean)</CODE></A></DL> |
||
| 1232 | </DD> |
||
| 1233 | </DL> |
||
| 1234 | <HR> |
||
| 1235 | |||
| 1236 | <A NAME="getSpriteBatch()"><!-- --></A><H3> |
||
| 1237 | getSpriteBatch</H3> |
||
| 1238 | <PRE> |
||
| 1239 | public <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch</A> <B>getSpriteBatch</B>()</PRE> |
||
| 1240 | <DL> |
||
| 1241 | <DD><DL> |
||
| 1242 | </DL> |
||
| 1243 | </DD> |
||
| 1244 | <DD><DL> |
||
| 1245 | </DL> |
||
| 1246 | </DD> |
||
| 1247 | </DL> |
||
| 1248 | <HR> |
||
| 1249 | |||
| 1250 | <A NAME="getCamera()"><!-- --></A><H3> |
||
| 1251 | getCamera</H3> |
||
| 1252 | <PRE> |
||
| 1253 | public <A HREF="../../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A> <B>getCamera</B>()</PRE> |
||
| 1254 | <DL> |
||
| 1255 | <DD><DL> |
||
| 1256 | </DL> |
||
| 1257 | </DD> |
||
| 1258 | <DD><DL> |
||
| 1259 | </DL> |
||
| 1260 | </DD> |
||
| 1261 | </DL> |
||
| 1262 | <HR> |
||
| 1263 | |||
| 1264 | <A NAME="setCamera(com.badlogic.gdx.graphics.Camera)"><!-- --></A><H3> |
||
| 1265 | setCamera</H3> |
||
| 1266 | <PRE> |
||
| 1267 | public void <B>setCamera</B>(<A HREF="../../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A> camera)</PRE> |
||
| 1268 | <DL> |
||
| 1269 | <DD>Sets the stage's camera. The camera must be configured properly or <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#setViewport(float, float, boolean)"><CODE>setViewport(float, float, boolean)</CODE></A> can be called |
||
| 1270 | after the camera is set. <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#draw()"><CODE>draw()</CODE></A> will call <A HREF="../../../../../com/badlogic/gdx/graphics/Camera.html#update()"><CODE>Camera.update()</CODE></A> and use the <A HREF="../../../../../com/badlogic/gdx/graphics/Camera.html#combined"><CODE>Camera.combined</CODE></A> matrix |
||
| 1271 | for the SpriteBatch <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html#setProjectionMatrix(com.badlogic.gdx.math.Matrix4)"><CODE>projection matrix</CODE></A>. |
||
| 1272 | <P> |
||
| 1273 | <DD><DL> |
||
| 1274 | </DL> |
||
| 1275 | </DD> |
||
| 1276 | <DD><DL> |
||
| 1277 | </DL> |
||
| 1278 | </DD> |
||
| 1279 | </DL> |
||
| 1280 | <HR> |
||
| 1281 | |||
| 1282 | <A NAME="getRoot()"><!-- --></A><H3> |
||
| 1283 | getRoot</H3> |
||
| 1284 | <PRE> |
||
| 1285 | public <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group</A> <B>getRoot</B>()</PRE> |
||
| 1286 | <DL> |
||
| 1287 | <DD>Returns the root group which holds all actors in the stage. |
||
| 1288 | <P> |
||
| 1289 | <DD><DL> |
||
| 1290 | </DL> |
||
| 1291 | </DD> |
||
| 1292 | <DD><DL> |
||
| 1293 | </DL> |
||
| 1294 | </DD> |
||
| 1295 | </DL> |
||
| 1296 | <HR> |
||
| 1297 | |||
| 1298 | <A NAME="hit(float, float, boolean)"><!-- --></A><H3> |
||
| 1299 | hit</H3> |
||
| 1300 | <PRE> |
||
| 1301 | public <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A> <B>hit</B>(float stageX, |
||
| 1302 | float stageY, |
||
| 1303 | boolean touchable)</PRE> |
||
| 1304 | <DL> |
||
| 1305 | <DD>Returns the <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d"><CODE>Actor</CODE></A> at the specified location in stage coordinates. Hit testing is performed in the order the actors |
||
| 1306 | were inserted into the stage, last inserted actors being tested first. To get stage coordinates from screen coordinates, use |
||
| 1307 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#screenToStageCoordinates(com.badlogic.gdx.math.Vector2)"><CODE>screenToStageCoordinates(Vector2)</CODE></A>. |
||
| 1308 | <P> |
||
| 1309 | <DD><DL> |
||
| 1310 | </DL> |
||
| 1311 | </DD> |
||
| 1312 | <DD><DL> |
||
| 1313 | <DT><B>Parameters:</B><DD><CODE>touchable</CODE> - If true, the hit detection will respect the <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setTouchable(com.badlogic.gdx.scenes.scene2d.Touchable)"><CODE>touchability</CODE></A>. |
||
| 1314 | <DT><B>Returns:</B><DD>May be null if no actor was hit.</DL> |
||
| 1315 | </DD> |
||
| 1316 | </DL> |
||
| 1317 | <HR> |
||
| 1318 | |||
| 1319 | <A NAME="screenToStageCoordinates(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 1320 | screenToStageCoordinates</H3> |
||
| 1321 | <PRE> |
||
| 1322 | public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>screenToStageCoordinates</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> screenCoords)</PRE> |
||
| 1323 | <DL> |
||
| 1324 | <DD>Transforms the screen coordinates to stage coordinates. |
||
| 1325 | <P> |
||
| 1326 | <DD><DL> |
||
| 1327 | </DL> |
||
| 1328 | </DD> |
||
| 1329 | <DD><DL> |
||
| 1330 | <DT><B>Parameters:</B><DD><CODE>screenCoords</CODE> - Stores the result.</DL> |
||
| 1331 | </DD> |
||
| 1332 | </DL> |
||
| 1333 | <HR> |
||
| 1334 | |||
| 1335 | <A NAME="stageToScreenCoordinates(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 1336 | stageToScreenCoordinates</H3> |
||
| 1337 | <PRE> |
||
| 1338 | public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>stageToScreenCoordinates</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> stageCoords)</PRE> |
||
| 1339 | <DL> |
||
| 1340 | <DD>Transforms the stage coordinates to screen coordinates. |
||
| 1341 | <P> |
||
| 1342 | <DD><DL> |
||
| 1343 | </DL> |
||
| 1344 | </DD> |
||
| 1345 | <DD><DL> |
||
| 1346 | </DL> |
||
| 1347 | </DD> |
||
| 1348 | </DL> |
||
| 1349 | <HR> |
||
| 1350 | |||
| 1351 | <A NAME="toScreenCoordinates(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Matrix4)"><!-- --></A><H3> |
||
| 1352 | toScreenCoordinates</H3> |
||
| 1353 | <PRE> |
||
| 1354 | public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>toScreenCoordinates</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> coords, |
||
| 1355 | <A HREF="../../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</A> transformMatrix)</PRE> |
||
| 1356 | <DL> |
||
| 1357 | <DD>Transforms the coordinates to screen coordinates. The coordinates can be anywhere in the stage since the transform matrix |
||
| 1358 | describes how to convert them. The transform matrix is typically obtained from <A HREF="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html#getTransformMatrix()"><CODE>SpriteBatch.getTransformMatrix()</CODE></A>. |
||
| 1359 | <P> |
||
| 1360 | <DD><DL> |
||
| 1361 | </DL> |
||
| 1362 | </DD> |
||
| 1363 | <DD><DL> |
||
| 1364 | </DL> |
||
| 1365 | </DD> |
||
| 1366 | </DL> |
||
| 1367 | <HR> |
||
| 1368 | |||
| 1369 | <A NAME="dispose()"><!-- --></A><H3> |
||
| 1370 | dispose</H3> |
||
| 1371 | <PRE> |
||
| 1372 | public void <B>dispose</B>()</PRE> |
||
| 1373 | <DL> |
||
| 1374 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">Disposable</A></CODE></B></DD> |
||
| 1375 | <DD>Releases all resources of this object. |
||
| 1376 | <P> |
||
| 1377 | <DD><DL> |
||
| 1378 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose</A></CODE> in interface <CODE><A HREF="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></CODE></DL> |
||
| 1379 | </DD> |
||
| 1380 | <DD><DL> |
||
| 1381 | </DL> |
||
| 1382 | </DD> |
||
| 1383 | </DL> |
||
| 1384 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 1385 | <HR> |
||
| 1386 | |||
| 1387 | |||
| 1388 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 1389 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 1390 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 1391 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 1392 | <TR> |
||
| 1393 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 1394 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 1395 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 1396 | <TR ALIGN="center" VALIGN="top"> |
||
| 1397 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 1398 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 1399 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 1400 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Stage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 1401 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 1402 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 1403 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 1404 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 1405 | </TR> |
||
| 1406 | </TABLE> |
||
| 1407 | </TD> |
||
| 1408 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 1409 | libgdx API</EM> |
||
| 1410 | </TD> |
||
| 1411 | </TR> |
||
| 1412 | |||
| 1413 | <TR> |
||
| 1414 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 1415 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/InputListener.html" title="class in com.badlogic.gdx.scenes.scene2d"><B>PREV CLASS</B></A> |
||
| 1416 | <A HREF="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.TouchFocus.html" title="class in com.badlogic.gdx.scenes.scene2d"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 1417 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 1418 | <A HREF="../../../../../index.html?com/badlogic/gdx/scenes/scene2d/Stage.html" target="_top"><B>FRAMES</B></A> |
||
| 1419 | <A HREF="Stage.html" target="_top"><B>NO FRAMES</B></A> |
||
| 1420 | <SCRIPT type="text/javascript"> |
||
| 1421 | <!-- |
||
| 1422 | if(window==top) { |
||
| 1423 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 1424 | } |
||
| 1425 | //--> |
||
| 1426 | </SCRIPT> |
||
| 1427 | <NOSCRIPT> |
||
| 1428 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 1429 | </NOSCRIPT> |
||
| 1430 | |||
| 1431 | |||
| 1432 | </FONT></TD> |
||
| 1433 | </TR> |
||
| 1434 | <TR> |
||
| 1435 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 1436 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 1437 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 1438 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 1439 | </TR> |
||
| 1440 | </TABLE> |
||
| 1441 | <A NAME="skip-navbar_bottom"></A> |
||
| 1442 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 1443 | |||
| 1444 | <HR> |
||
| 1445 | |||
| 1446 | <div style="font-size:9pt"><i> |
||
| 1447 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 1448 | </i></div> |
||
| 1449 | |||
| 1450 | </BODY> |
||
| 1451 | </HTML> |