libgdx API

com.badlogic.gdx.scenes.scene2d.actors
Class FastImage

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.Actor
      extended by com.badlogic.gdx.scenes.scene2d.actors.FastImage

public class FastImage
extends Actor


Field Summary
 TextureRegion region
           
 
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Actor
actions, color, height, name, originX, originY, parent, rotation, scaleX, scaleY, touchable, width, x, y
 
Constructor Summary
FastImage(java.lang.String name)
           
FastImage(java.lang.String name, Texture texture)
           
FastImage(java.lang.String name, TextureRegion region)
           
 
Method Summary
protected  void draw(SpriteBatch batch, float parentAlpha)
          Draws the Actor.
 Actor hit(float x, float y)
           
protected  boolean touchDown(float x, float y, int pointer)
           
protected  boolean touchDragged(float x, float y, int pointer)
           
protected  boolean touchUp(float x, float y, int pointer)
           
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
act, action, clearActions, isMarkedToRemove, keyDown, keyTyped, keyUp, markToRemove, remove, scrolled, toLocalCoordinates, toString, touchMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

region

public final TextureRegion region
Constructor Detail

FastImage

public FastImage(java.lang.String name)

FastImage

public FastImage(java.lang.String name,
                 Texture texture)

FastImage

public FastImage(java.lang.String name,
                 TextureRegion region)
Method Detail

draw

protected void draw(SpriteBatch batch,
                    float parentAlpha)
Description copied from class: Actor
Draws the Actor. The spriteBatch is configured so that the Actor can draw in its parents coordinate system. The parent's alpha is passed to the method in order for the Actor to multiply it with its own alpha. This will allow FadeIn and other Actions to have an effect even if they are only set on the parent of the Actor.

Specified by:
draw in class Actor
Parameters:
batch - the spritebatch to render with
parentAlpha - the parent's alpha value.

touchDown

protected boolean touchDown(float x,
                            float y,
                            int pointer)
Specified by:
touchDown in class Actor

touchUp

protected boolean touchUp(float x,
                          float y,
                          int pointer)
Specified by:
touchUp in class Actor

touchDragged

protected boolean touchDragged(float x,
                               float y,
                               int pointer)
Specified by:
touchDragged in class Actor

hit

public Actor hit(float x,
                 float y)
Specified by:
hit in class Actor

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)